Loading component…
Loading component…
Where the work of people's AI agents collides – every agent a chip, every open conflict a badge with a curve to each agent involved, ranked by how urgent it is
To reuse this local React demo, copy all files from the Code tab into the same folder, then import AgentOverlapMap from ./agent-overlap-map.
import { AgentOverlapMap, type OverlapConflict, type OverlapPerson } from "@/components/ui/agent-overlap-map";
const people: OverlapPerson[] = [
{ id: "priya", name: "Priya Nair", note: "Pricing page and plan limits" },
{ id: "lena", name: "Lena Vogel", note: "Billing emails" },
{ id: "jonas", name: "Jonas Weber", note: "Onboarding flow" },
];
const conflicts: OverlapConflict[] = [
{
id: "c1",
label: "Contradicts",
title: "Priya’s agent raises the Pro limit to 50 seats while Lena’s keeps 25 in the emails",
severity: "high",
sides: [
{ personId: "priya", agentName: "Claude Code", harness: "claude-code" },
{ personId: "lena", agentName: "Codex", harness: "codex" },
],
},
];
const harnesses = {
"claude-code": { name: "Claude Code", logo: <ClaudeLogo /> },
codex: { name: "Codex", logo: <OpenAILogo /> },
};
export function Overlaps() {
return <AgentOverlapMap people={people} conflicts={conflicts} harnesses={harnesses} />;
}| Name | Type | Default | Description |
|---|---|---|---|
| people | OverlapPerson[] | Everyone on the team – { id, name, note? }; the note is what they work on, shown in their agent's card. People in no conflict are listed as in sync | |
| conflicts | OverlapConflict[] | The open conflicts – { id, label, title, severity, sides }; label is the short badge, title the full sentence | |
| severity | "high" \| "medium" \| "low" | Red needs a decision, amber is a heads-up, a grey dashed curve is minor | |
| sides | { personId, agentName, harness? }[] | Whose agent is involved – each person and agent name becomes one agent on the map, so someone working with two agents shows twice | |
| harnesses | Record<string, { name?, logo? }> | The company logo per harness key, shown before the agent's name – an agent without one shows just its name | |
| selectedConflictId | string \| null | The conflict whose card is open – leave out to let the map keep its own | |
| selectedPersonId | string \| null | The person whose agent card is open – leave out to let the map keep its own | |
| highlightedConflictId | string \| null | The conflict pointed at – its curves come up to full color while the rest fades back | |
| onSelectConflict / onSelectPerson / onHighlightConflict | (id: string \| null) => void | Called when a card opens or closes, and as the pointer or focus moves over conflicts | |
| height | number | Smallest height of the map in px – it grows with the number of agents and conflicts | |
| title | string | The heading – "Agent overlaps" – and the section's accessible name | |
| className | string | Extra class on the root – set the color variables on it |
Fills its container's width – agents on the left and the right, the badges in the middle
Below 560px all agents move to the left and the badges line up on the right edge; each agent shows its person and its logo, the agent's name is in its card
The map grows with the number of agents and conflicts, and is sorted so the curves cross as little as possible
Long names, agent names and labels end in …; the full text is in the card
A card opens below what you clicked if it fits, otherwise above – and never leaves the map's width; long labels in it end in …
First names are the first word with a letter in it – "🦊 Kit Fox" shows as Kit; Arabic, Japanese and other scripts read in their own direction
Sides naming someone who isn't in people are left out, the same agent twice in one conflict counts once, and a conflict with nobody left isn't shown
No conflicts at all reads No overlaps right now – everyone’s agents are in sync, without the legend
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"