# How do I stop two AI agents duplicating work in one repo?

Canonical: [How do I stop two AI agents duplicating work in one repo?](https://contextingo.com/answers/how-to-stop-two-ai-agents-duplicating-work)

Locale: en

Purpose: Git finds conflicting lines, not conflicting intent. Give each issue one owner, make every agent read the same decisions and failed attempts before it edits, and have a person accept the result. Contextingo does this with the Team board, shared records and review.

Content updated: 2026-10-29

Source revision: content.ts 2026-10-29

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/answers.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

**Short answer.** Git finds conflicting lines, not conflicting intent. Give each issue one owner, make every agent read the same decisions and failed attempts before it edits, and have a person accept the result. Contextingo does this with the Team board, shared records and review.

## Why it happens

Two agents solve the same problem from different angles when nobody owns the issue, and one retries what the other already ruled out. Worktrees isolate files, but they do not decide who works on what.

## What helps

- One owner per issue: assigning an issue is a work offer to that person’s AI, and the card shows who is working.
- The same brief for every AI: requirements first, then decisions and findings with their status.
- Failed attempts shown first when an AI is about to edit a file they cite.
- Small, scoped issues and a person who accepts before merge.

Contextingo does not lock files or stop two agents from editing at once. It makes sure both know what was decided and tried.

## Go deeper

- [Git worktrees: how to run several coding agents in parallel without conflicts](https://contextingo.com/blog/git-worktrees-parallel-coding-agents)
- [Why small pull requests matter even more when a coding agent writes the code](https://contextingo.com/blog/small-pull-requests-for-agent-work)

## Questions

### Does it lock files?

No. It shares knowledge and ownership of issues; it does not block edits.
