[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-114632":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":13,"stars7d":15,"stars30d":12,"stars90d":14,"forks30d":14,"starsTrendScore":15,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":14,"starSnapshotCount":14,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},114632,"ATC","ashhart\u002FATC","ashhart","Agent Traffic Control",null,"JavaScript",56,5,1,0,3,46.33,"Apache License 2.0",false,"main",true,[],"2026-11-13 03:07:07","2026-11-22 06:27:21","# Agent Traffic Control\n\n![ATC, air traffic control for coding agents, with illuminated flight paths representing parallel work and an amber marker at an overlap.](.github\u002Fassets\u002Fatc-readme.png)\n\nAir traffic control for coding agents. When several agents and people work on the same repository, ATC shows who is in flight, on which issue, touching which files. Nobody picks up work someone else is already doing, and nobody finds out at merge time that two branches rewrote the same lines.\n\n```text\n$ atc\nATC · acme\u002Fwidgets  observed 14:02 UTC\n9 contributors · 41 open issues · 12 open PRs · 2 agents active here · 1 duplicate attempt\n\nAgents in flight on this machine\n  #212 Router drops the trailing slash  working  just now\n  #215 Parser rejects unicode  working  2m ago\n  #219 Document router options  blocked  4m ago\n\nIn flight: who is working on what\n  #221 Retry on 502 from the upstream  @dana claimed, PR #224 @dana draft\n  #212 Router drops the trailing slash  you claimed, PR #226 you draft\n  #208 Cache headers on static files  @lee claimed\n  #187 Timeout option for fetch  PR #190 @sam, PR #201 @kai\n\nContested files: more than one open PR changes them\n  src\u002Frouter.js  3 open PRs: #226 you, #224 @dana, #198 @lee\n\nDuplicate attempts\n  #187 Timeout option for fetch  2 PRs by different people: #190 @sam, #201 @kai\n\nReady to pick up\n  #230 Add a timeout option  help wanted  atc check 230\n```\n\n## Why\n\nRun four agents on one backlog and two of them will pick the same \"good first issue\". Two more will edit `src\u002Frouter.js` on separate branches, and the second pull request will conflict with the first. Nobody can see the others, so the work gets done twice and then untangled by hand.\n\nATC gives every agent, and every person, the same view of the airspace before they take off:\n\n- **Who is working on what.** Claims, GitHub assignments, open pull requests that link an issue, and the agent sessions running on your machine, all on one board.\n- **Whether an issue is taken.** `atc check 42` answers `free`, `yours`, claimed by someone else, or taken outside ATC. An agent starts only on `free` or `yours`.\n- **Whether your change will collide.** `atc overlap` test-merges your working tree against every open pull request and every other local worktree that touches the same files, and names the files that will conflict.\n- **Work being done twice.** The board lists issues that already have pull requests from more than one person.\n\nCoordination needs no bot, server, GitHub Action or database; the CLI replays GitHub comments with your own `gh` login. Optional public check-in viewers store expiring activity separately and cannot grant claims.\n\n## What counts as \"in flight\"\n\n| Signal | Who sees it | How it gets there |\n| --- | --- | --- |\n| An ATC claim | Everyone | `atc claim 42` posts a one-line `\u002Fatc claim` comment on the issue |\n| A linked pull request | Everyone | Any open pull request, draft or not, whose description says `Fixes #42` |\n| A GitHub assignee | Everyone | Ordinary issue assignment |\n| A local agent session | Every worktree of your clone | `atc start 42`, then `atc pulse` while it works and `atc land` when it stops |\n| A shared agent session (experimental) | Everyone who can fetch the repository | The same commands, once the repository opts in with `\"presence\": \"git\"` |\n\nAgent sessions stay in your clone unless the repository enables sharing, and expire five minutes after the last check-in.\n\n### Sharing sessions through git (experimental)\n\nThis is experimental. It hasn't been tried on a real team yet, and the ref format or setting may change.\n\nA team that wants every agent on the board, on every machine, adds `\"presence\": \"git\"` to `.github\u002Fatc.json`. Then `atc start`, `atc pulse` and `atc land` also push this clone's sessions to the repository's GitHub remote, under a ref named by a random per-clone ID, `refs\u002Fatc\u002Fpresence\u002F\u003C16 hex>`. `atc board` fetches everyone's and shows other clones' agents as \"another machine\", and `atc who \u003Cfile>` says how many of them are changing that file. There's still no server: it's a fetch and a push with `--force-with-lease`. These refs don't show up as branches and don't notify anyone.\n\nShared presence is anonymous. A shared session holds only a session number, an issue number, a state, a check-in time and salted hashes of the file paths its worktree is changing. It holds no GitHub login, name, email, file name, title or token, and its commit carries a fixed author and timestamp, so it reveals no timezone. `who` matches files by hashing its own path the same way. GitHub still knows which account pushed each ref, as it does for any push. Sharing needs push access, so it suits your own projects and teams. Git doesn't check who pushed a ref, so shared presence is advisory, and claims stay as `\u002Fatc` comments that GitHub ties to their author.\n\n### Public check-ins\n\nWhen a repository enables automatic public presence, a successful new `atc claim 42 --json` also starts an anonymous session and returns its numeric `session`.\n`atc start 42 --json` publishes automatically too; add `--github-name` to either command only when you want your verified GitHub name displayed.\nUse `--local` with `start` or `claim` to keep that session on this machine.\nWithout a repository policy, public presence still requires `atc start 42 --public https:\u002F\u002Fexample.org --json`.\nThat publishes the issue, status and last check-in anonymously; add `--github-name` to show your verified GitHub name.\nSubsequent `pulse` and `land` commands update the same public session, so people on other machines can see the work before they duplicate it.\n\nStarting a public session posts one typed verification comment on the issue, tied to your GitHub account, then sends check-ins directly to the selected website.\nYour GitHub token stays with `gh`; the website receives a separate session secret and stores only its hash.\nAnonymous means your name is hidden on the board; the verification comment still identifies its GitHub author.\nThe website reports activity and does not arbitrate claims, so contributors must still check and claim before working.\nSee [public boards and check-ins](docs\u002Fpublic-board.md) for the protocol and [TensorFold's radar](https:\u002F\u002Ftensorfold.dev\u002Fatc) for the integration.\n\n## Collaborate across agents\n\nATC 0.9 adds a repository help queue, capability filters and expiring pickup\nreservations. Contributors can hand off a reviewed report to a named recipient,\ncatch up on changes since their last acknowledgement, and see which required\nreviews or hardware checks still lack accepted current evidence. Every exchange\noperation is available through MCP. An optional A2A adapter exposes existing\nhelp-task status to other clients.\n\nThe [collaboration guide](docs\u002Fcollaboration.md) covers the CLI, HTTP API, public\nhelp view, privacy controls and supported adapter scope. Public visibility is\nexplicit opt-in; the exchange cannot transfer core claims or authorize a merge.\n\n## Try it\n\nYou need Node.js 22.16 or later, git 2.38 or later and the GitHub CLI (`gh auth login`). `atc doctor` checks all three.\n\nRun it straight from GitHub, with nothing to install:\n\n```bash\nnpx github:ashhart\u002FATC --repo ashhart\u002FATC\n```\n\n`--repo` is the repository you want to look at. The example shows ATC's own board; put any `owner\u002Fname` there, such as your own project. Inside a clone of that project you can leave `--repo` off, and ATC picks the repository itself, using the upstream for a fork.\n\nFor a short `atc` command, install it once:\n\n```bash\nnpm install -g github:ashhart\u002FATC\n```\n\nThen run `atc`, `atc check 42` and the rest from any clone. It isn't `npx atc`, because the `atc` name on npm belongs to an unrelated package.\n\nA terminal gets the readable board. Agents and scripts get strict JSON with `--json`.\n\n## Before, during and after the work\n\nWith ATC 0.8, `atc begin 42 src\u002Frouter.js tests\u002Frouter.test.js --json` confirms\nownership, declares planned files and starts a work ticket. Supported agent\nhooks recheck that ticket before edits and pushes. Selected PR scans and\ndependency guidance help larger projects inspect and sequence concurrent work;\nsee [parallel-agent workflows](docs\u002Fworkflows.md) for coverage and trust limits.\n\n```bash\natc check 42\natc claim 42\natc start 42\natc who src\u002Frouter.js\natc overlap\natc land 42 \u003Csession>\natc release 42\n```\n\n1. **Before.** `atc check` tells you whether anyone is on the issue. If it's free, `atc claim` (or a draft pull request with `Fixes #42`) marks it as yours. If someone holds it, `atc propose 42 pair`, `split \u003Careas>`, `review` or `takeover` offers to help instead, and the holder answers with `atc accept` or `atc decline`.\n2. **During.** `atc start` registers the agent, and `atc pulse \u003Cissue> \u003Csession> working|reviewing|blocked` keeps it visible. `atc who \u003Cfile>` says which open pull requests and which other local worktrees also change a file.\n3. **Before the pull request.** `atc overlap` snapshots your changes without touching your index and runs `git merge-tree` against each overlapping pull request and worktree. It reports `conflicts`, `clean` or `unknown`, and lists the files.\n4. **After.** `atc land` ends the session and `atc release` frees the issue. Claims expire after seven days without activity.\n\nWith a work ticket, run `atc guard --publish --json` before pushing. The guard\ndiscovers the complete open PR set and inspects exact Git commits, including PRs\nunder the same account. Large scans save private clean checkpoints and advance\nthrough up to ten new merge checks and ten missing-head fetches per call. Rerun\nthe same command when it reports incomplete. Continue only when `ready` is true.\nChanged local bytes, local commits, comparison bases or PR heads invalidate the\ncorresponding checkpoints. Unknown heads, partial discovery and real conflicts\nstill block publication. Selected `overlap --pulls` results do not waive the guard.\n\n## Inside Claude Code, Codex, Cursor and other agents\n\nThe Claude Code plugin puts ATC into the agent's own loop, so nobody has to remember to run it:\n\n- At session start, the agent learns what is in flight on the repository.\n- After every file edit, it is told if another open pull request or another local worktree changes the same file.\n- Before `gh pr create`, ATC runs the conflict check and blocks a pull request that would conflict.\n\n```bash\nclaude plugin marketplace add ashhart\u002FATC\n```\n\n```bash\nclaude plugin install atc@atc-github\n```\n\n`atc-mcp` is a local MCP server with the same commands as tools, for Cursor, Codex and any other MCP client. `atc init` writes an `AGENTS.md` pointer for Codex and a `.cursor\u002Frules\u002Fatc.mdc` rule for Cursor. See [using ATC from agents](docs\u002Fagents.md).\n\n## Optional PR review exchange\n\n`atc-exchange` gives contributor and maintainer agents a shared PR inbox for\nrequests and results tied to exact commits. Explicitly uploaded logs and reports\nexpire outside git; the request history, result digests and acknowledgements\nremain available for export. Fork contributors need comment access, not push\naccess. Each participant posts one typed authentication comment; the exchange\ndoes not add a comment for each request or response.\n\nThis companion needs a separately operated storage service and a committed\nrepository opt-in. It never arbitrates claims or grants GitHub approval, and\nordinary ATC use still needs no server. See [setup and the complete workflow](docs\u002Fexchange.md).\n\n## Turning on claims for a repository\n\nAnyone can read any repository's board. ATC only posts claims to a repository whose maintainers opted in by committing `.github\u002Fatc.json`. `atc init` adds that file, the agent skill, an `AGENTS.md` pointer, a CONTRIBUTING section telling agents what to run, and the Cursor rule. Elsewhere, write commands return `notEnabled` and post nothing.\n\nThe config can also split the code into numbered areas, so two agents can share one issue: one takes area 1, the other area 2. See [configuration](docs\u002Fconfiguration.md).\n\n## What ATC can't promise\n\n- Each run is a snapshot. `complete: false` means some reads stopped short, so an empty list means \"unknown\", not \"clear\". Run it again before acting.\n- Someone can win the race between `check` and `claim`, and ATC can't stop anyone from opening a duplicate pull request. It makes the duplicate visible.\n- A clean `merge-tree` result means git found no textual conflict. The changes can still break each other.\n- Without `\"presence\": \"git\"`, live agent sessions are visible only within one clone, and other machines show up through claims and pull requests. With it, sessions are only as fresh as the last `pulse`, and only people with push access can share.\n- Issue, pull request and comment text is untrusted. The readable board strips control characters and escape sequences before printing it, and the JSON output carries no free text at all.\n\n## See it work\n\n```bash\nnpm run demo\n```\n\nFour scripted agents work the same backlog twice. Without ATC, two of them fix the same issue and another edits a file that someone else changed: 2 of 4 pull requests merge. With ATC, each agent checks and claims first, one agent's conflict is caught before it opens a pull request, and all 4 merge. See [the demo](docs\u002Fdemo.md).\n\n`npm run site` serves a local, read-only flight board at `http:\u002F\u002F127.0.0.1:4318`.\n\n## Development\n\n```bash\nnpm run check\n```\n\nThe check runs the style rules and the tests: hostile input, exact output schemas, deterministic replay, real git merges, the MCP server and the plugin hooks. CI runs it on Linux, macOS and Windows with Node.js 22.16 and 24.\n\n- [Commands and outcomes](docs\u002Fcommands.md)\n- [Configuration](docs\u002Fconfiguration.md)\n- [Replay, limits, and troubleshooting](docs\u002Freplay.md)\n- [Using ATC from agents](docs\u002Fagents.md)\n- [Local pilot and release checks](docs\u002Flocal-pilot.md)\n- [Agent contributor skill](skills\u002Fatc\u002FSKILL.md)\n- [Security and privacy](SECURITY.md)\n- [Changelog](CHANGELOG.md)\n","ATC（Agent Traffic Control）是一个面向协作开发场景的轻量级命令行工具，用于协调人类开发者与AI编码代理在同一个代码仓库中的并行工作。它通过分析GitHub Issue评论、PR链接、Assignee状态及本地工作树变更，实时可视化任务认领状态、文件冲突风险与重复开发行为，核心能力包括任务占用检测（atc check）、跨PR\u002F本地分支的变更重叠分析（atc overlap）以及去中心化的状态同步（仅依赖gh CLI和GitHub原生API）。适用于多代理协同开发、开源项目贡献管理、远程团队任务防重与CI前冲突预检等场景。",2,"2026-11-24 04:49:16","CREATED_QUERY"]