Parallel agents on branches, one row per file and one column per agent: who is writing what, which edits collide, and a short pick between their approaches. Merge turns on once nobody is writing and every conflict is settled.
Examples
Installation
Installation is part of Pro
Pro components install from a licensed registry. The live preview stays open to everyone.
Props
- agents
ConflictAgent[]- { id, name, model?, branch }. One column each; the model picks the logo, colours follow Branch Graph's lanes.
- touches
FileTouch[]- { file, agent, state: writing | changed | kept, lines? }. Update them as the agents work.
- files
string[]- Default
first touch order - Row order.
- approaches
Record<"file#agent", string>- One sentence per agent and file, offered when their edits collide.
- conflicts
Conflict[]- Default
detected - Your own conflicts (controlled). Without them, finished edits whose line ranges overlap become conflicts.
- onChoose / onMerge / merged
(conflictId, agentId) => void / () => void / boolean- Picking an approach settles a conflict: the winner shows Kept, the other Not used. Merge turns on when nobody is writing and nothing is open.
| Prop | Type | Default | Description |
|---|---|---|---|
| agents | ConflictAgent[] | - | { id, name, model?, branch }. One column each; the model picks the logo, colours follow Branch Graph's lanes. |
| touches | FileTouch[] | - | { file, agent, state: writing | changed | kept, lines? }. Update them as the agents work. |
| files | string[] | first touch order | Row order. |
| approaches | Record<"file#agent", string> | - | One sentence per agent and file, offered when their edits collide. |
| conflicts | Conflict[] | detected | Your own conflicts (controlled). Without them, finished edits whose line ranges overlap become conflicts. |
| onChoose / onMerge / merged | (conflictId, agentId) => void / () => void / boolean | - | Picking an approach settles a conflict: the winner shows Kept, the other Not used. Merge turns on when nobody is writing and nothing is open. |
Accessibility
- The matrix is a table: files are row headers and agents are column headers, and every cell is named, e.g. “Coder: Conflict, L30-58”.
- Each conflict is a radio group of approaches; the header status is announced as it changes.
- With reduced motion the writing pulse is still.
When to use
When to use
- Several agents changing one codebase on their own branches, before their work is merged.
- Letting a person pick between two agents' approaches where their edits collide.
When not to use
- The commit history of one branch: use Branch Graph.
- Reviewing one file's change line by line: use Inline Diff.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Branch Conflicts to my app and wire it to my own data.
- I need several agents changing one codebase on their own branches, before their work is merged. Set that up with the Knowns UI Branch Conflicts.
- Which Branch Conflicts props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "branch-conflicts" }) and search_docs({ query: "branch conflicts" }). Pro props, full examples and source come back once your license key is in the MCP config.