Use casesUpdated

What do file claims solve when coding agents share a repository?

Use visible file claims to catch overlapping agent plans early, then check checkout isolation, actual edits, and the final integrated diff.

On this page

Two agents can build different features and still reach for the same config or component file. Canopy shows file claims so the overlap is visible early. A claim is a coordination signal; the checkout is the editing boundary, and the diff and running behavior are the final truth.

Canopy agent file claims showing which session is working on project files
Canopy agent file claims showing which session is working on project files

Name the work before assigning files

Start with two outcomes, not two file lists. In a checkout flow, Agent A owns the declined-card UI state while Agent B investigates a payment API timeout without editing. One person owns the API contract and acceptance checks. A claim helps when a task starts touching checkout.ts or a shared fixture: the owner sees a second session entering. It doesn't decide whether two behaviors fit. The brief should still name the branch, edit authority, and stop point.

Don't mistake a claim for a worktree

Canopy shows file claims so overlapping edits are visible before they happen. Git worktrees solve a different problem: each is its own directory and branch, so uncommitted files in one don't overwrite the other. A claim is not an operating-system lock, and a CLI won't necessarily refuse to write a claimed file. Agents in separate worktrees can still edit the same path and conflict later. Trial claims in a disposable repository before building a team process on them.

Four signals in one parallel-agent task.
SignalAnswersStill requires
Task ownerWho should decide the behavior?Written acceptance and escalation rule
File claimWhich session has declared or surfaced work on this path?Verify delivery, freshness, and actual edits
Worktree and branchWhere can uncommitted changes live independently?Check current directory and integration
Git diff and PRWhat code actually changed?Review combined behavior and tests

Pause when the overlap matters

Say Agent A claims the checkout component, and Agent B finds it must change to handle timeout retries. Don't let both keep writing while you guess which patch survives. Ask B for a read-only finding with the failing path and expected behavior. Give one implementer authority, or separate branches with a named integration owner. If both already changed the file, compare intent before resolving conflicts; a clean merge doesn't prove both behaviors survived.

Check claims against the current state

Start two CLI sessions on a disposable repository with distinct tasks, and have both name a harmless shared file. Watch whether Canopy shows the claim, which session it credits, and whether the other sees an overlap warning. Record versions and each terminal's checkout, then inspect Git status and the diff in every worktree. Attribution differs by CLI, so a missing or stale claim means inspect, not assume. Don't race writes to important code to test the UI.

Finish with one integration decision

When work stops, clear claims and confirm no agent has a pending edit. Compare each branch with the acceptance criteria, merge through your PR flow, and run the combined success and failure paths. Record who contributed what and who accepted it. A claim earns its place by catching overlap early. It doesn't replace isolated checkouts, diff review, or a shared design decision.

Copyable resources

Two-agent overlap card

Use before assigning the second edit and after any claim conflict.

Shared outcome and acceptance checks: [ ]
Agent A task, checkout, branch, and allowed edit area: [ ]
Agent B task, checkout, branch, and read-only/edit scope: [ ]
Shared files or contract likely to be touched: [ ]
Canopy claim seen, by whom, and when: [ ]
Actual git status/diff in each checkout: [ ]
Overlap decision and single integration owner: [ ]
Final combined tests, preview behavior, and PR decision: [ ]

Frequently asked questions

Does a Canopy file claim lock a file against another agent?

Don't assume so. The product page promises visibility of overlapping work, not a lock. Use separate worktrees for file isolation.

Why use file claims if agents have separate worktrees?

Worktrees keep uncommitted files from overwriting each other, but agents can still make incompatible changes to the same path or API contract. Claims surface that early.

What if a claim is missing but Git shows an edit?

Git and the working tree are the authority for actual changes. Attribution differs by CLI; inspect the session, checkout, and latest diff before assigning ownership.

More questions and answers →

Sources and further reading