Coordination Layer for Coding Agents

twing-cli currently documents Claude Code only, with other agents planned. Cursor is not a supported client in the README, even where older copy uses Cursor as the example.
Coordination Layer for Coding Agents is Twing-dev's open-source project for coordinating AI agents working in the same repository. Two agents can quietly build overlapping work, or make incompatible design choices, before a human reviewer sees the diff. Coordination should become visible earlier than pull request review, especially when a team runs multiple agents against one codebase. The twing-cli README says the hook currently supports Claude Code today, with other coding agents planned, so this piece treats Claude Code as the working example even though the underlying idea matters for Cursor users too.
A coordination layer is shared repo-level state that helps coding agents see each other's active work, planned changes, and likely conflicts. It is not a smarter model. It is the traffic signal between models.
See what Twing is trying to coordinate
Twing showed up as a Show HN project on August 28, 2026, with a plain pitch: an open-sourced coordination layer for AI agents working on the same repository. The interesting part is not that another coding-agent tool exists. It is that the project focuses on the space between agents.
Most agentic coding tools are built around a single worker: give an agent a task, feed it repo context, let it edit files, then review the result. Cursor makes that loop feel natural with Agent in the IDE. But once two or three agents touch nearby files, the hard problem moves from generation to coordination.
Picture a React app with one agent refactoring src/auth/session.ts, another adding role-based access checks in src/auth/permissions.ts, and a third updating middleware. Each agent can be locally reasonable. Together, they can create a design fork: one assumes sessions own roles, another assumes permissions own roles, and review becomes archaeology.
That is the gap Twing is pointing at. The project is less about replacing the coding agent and more about giving concurrent agents enough shared awareness to avoid stepping on the same tile.
Catch conflicts before review becomes archaeology
The failure mode is familiar. Parallel work is useful until the merge conflict is not just textual, but conceptual.
A text conflict says two branches edited the same line. A design conflict says two branches edited different files while making incompatible assumptions. Coding agents are good at producing plausible local changes, so those design conflicts can hide until a reviewer asks why the new billing policy is enforced in two different layers.
This is where early duplication detection matters. If one agent starts building a FeatureFlagService while another starts a flag-client.ts abstraction for the same job, the cheapest moment to notice is before either one has produced 800 lines of confident code.
Don't treat coordination as a magic safety boundary. It is not. A coordination layer can surface overlap and conflict signals, but it does not replace tests, review, permissions, or a human decision about architecture.
That distinction also matters for the broader agentic coding governance conversation. The useful version is concrete: fewer invisible collisions, clearer review receipts, and better repo rules. The useless version is paperwork around agents that still cannot see each other's work.
Put it beside the agent, not inside every prompt
The best mental model is to keep Twing beside the normal coding workflow. Let Claude Code do the editing. Let repo rules and review checklists define local expectations. Let the coordination layer make parallel work visible.
A small example helps. In a monorepo, you might have repo rules for package boundaries, an AGENTS.md file for durable repo conventions, and a reviewer checklist for risky areas like auth, billing, migrations, and background jobs. Twing fits next to that stack by asking: is someone already doing nearby work, or making a design choice this task should know about?
Model Context Protocol (MCP), introduced by Anthropic is an open protocol for connecting AI applications to tools and data sources. MCP is relevant because coordination state eventually needs to meet the places agents already work: GitHub, issue trackers, docs, Slack, and IDE context. The Twing story is a reminder that the integration surface is just as important as the model prompt.
Avoid the prompt-hoarding trap. Do not paste every active task, architectural note, and warning into every agent chat. Durable rules belong in repo files. Live coordination belongs in a system that can change as work changes.
Here is a tiny rule file stub that keeps the boundary clear:
# Coordination boundary
Before starting work, check whether another agent is editing the same package, API boundary, migration, or auth path.
If you find overlap, stop and write a short note with:
- files you planned to edit
- design assumption you were about to make
- safest next question for the human reviewer
Do not resolve cross-agent design conflicts by inventing a new abstraction without review.
That rule does not pretend the agent is autonomous. It teaches the agent when to pause.
Try it safely on one messy repo
Try Twing when you already have parallel agent work, not when you are still proving that one agent can make a good patch. The project is most interesting for repositories where duplicated work is expensive: monorepos, shared service layers, platform packages, SDKs, design systems, and anything with migrations.
It is probably overkill for a solo repo, a short-lived prototype, or a codebase where one agent works on one branch at a time. In those cases, a clear review checklist and normal Git hygiene may be enough.
Use this light experiment rather than a big process change:
| Fit | Not fit |
|---|---|
| Two or more coding agents may touch the same repo in the same day | One developer runs one agent on one isolated task |
| Design conflicts cost more than setup time | Conflicts are rare and easy to see in Git |
| Reviewers need to know what agents were trying to do | Reviewers only need final diffs |
| The repo has shared boundaries like auth, billing, infra, or packages | The repo is a throwaway spike |
A safe first pass looks like this:
- Pick one repo with real overlap risk, not your most sensitive production system.
- Choose two small tasks that might touch nearby files.
- Run the agents the way you normally would in Claude Code.
- Use Twing's current README and CLI instructions from the public repository instead of copying stale commands from an article.
- Save a short handoff note after each agent run: task, touched files, assumptions, unresolved questions.
- Review whether the coordination signal caught anything before PR review did.
Here is a copyable handoff receipt:
Agent handoff receipt
Task:
Files touched:
Files intentionally avoided:
Design assumption made:
Possible overlap with another task:
Question for reviewer:
Tests run:
The win is not more ceremony. The win is that a reviewer can see intent without replaying three agent chats.
If your main concern is guardrails around what an agent is allowed to do, not whether agents collide, the failure mode is different. We covered that angle in Simon Willison on Breaking Claude Code Auto Mode, where the practical lesson is to treat autonomy boundaries as reviewable artifacts.
Common questions
Should coordination state live in MCP?
Maybe, but do not start there unless the integration need is clear. MCP is useful when coordination data must connect to IDEs, GitHub, docs, or internal systems through a standard tool interface. For a first experiment, a CLI plus explicit handoff receipts may teach you more.
Further reading
Next step
Try the handoff receipt on two overlapping agent tasks before adding any new process. If it exposes a conflict earlier than review, a coordination layer is worth a closer look.