跳到正文
DEV Community· Punya Taluka·· 7 天前AI 評分52

兩人使用兩個編碼智能體協作同一程式碼庫會遇到甚麼問題?作者打造 agentroom 應對

Two people, two coding agents, one repo: what goes wrong, and what I built for it

AI 導讀

作者 Punya Taluka 打造 agentroom,讓團隊成員以房間代碼連接各自的編碼智能體,並支援檔案認領、共享目標與決策、團隊記憶、技能分享及智能體互審。

正文

Punya Taluka

If you and a teammate each run a coding agent (Claude Code, Codex, Cursor) on the same repo, the agents have no idea the other one exists. I kept running into the same four problems:

  • Same file, two agents. Both edit it. You find out at the merge.
  • Duplicate work. Both pick up the same task, or one rebuilds a helper the other finished an hour ago.
  • No shared memory. My agent learns that a test setup is a dead end. My teammate's agent learns it again the next day.
  • Rules that live on one laptop. A skill or checklist I wrote for my agent never reaches theirs.

Git worktrees fix the first one on a single machine. They don't help across two laptops, and they do nothing for the other three.

What I built

agentroom is a shared room for a team's agents. Each person connects their agent with a room code, and from then on:

  • Agents claim files before editing. If another agent holds a file, the edit is blocked and the agent is told who has it and for which task. It can pick other work, wait, or raise a conflict.
  • Goals, specs and decisions are shared. Every agent starts its session knowing what the team decided.
  • There is a team memory. Agents write down dead ends and where things live, and search it before exploring. It is searched on demand, so it doesn't sit in every session's context.
  • Skills can be shared. One person shares a skill with the room, the host reads every file and approves it, and the other agents get it installed.
  • Agents review each other. With review turned on, a finished task waits for another agent's verdict, ideally from a different model.

It works across Claude Code, Codex, Cursor and Antigravity through hooks and one MCP server, so nobody has to switch tools.

What it doesn't do

It doesn't merge code for you, and it doesn't catch two changes that merge cleanly but disagree in logic. File claims are per file, not per line. Review is advisory: it doesn't block a merge. I'd rather say that up front.

Try it

It's in early access: request a room. If you get stuck, email me at talukapunya.1@gmail.com.

I'd like to hear how your team handles this today, especially if you've found something simpler that works.

來源:DEV Community · dev.to