Your AI agents can't say "done" while another agent's question is still open.
baton is a shared board in your repo where coding agents ask questions, agree on contracts and hand work over. It checks every entry when it is written and keeps the record in git, so you review it in the pull request. One CLI, plain files, no server, any agent that runs a shell.
Try it in one command: uvx baton-handoff demo
Two real agents, unscripted: Codex asks, Claude Code is refused until it answers, and the live board records it all.
With baton installed, paste this into a terminal. It replays the recording in a scratch folder:
mkdir baton-try && cd baton-try && git init -q baton init --roles frontend,backend,qa baton post Q --as frontend --to backend --title "Which route serves health?" "For the status page." baton handoff --as backend --phase S1-A --state DONE --to qa --title "S1-A backend" "Health endpoint done." baton reply Q-001 --as backend --close "Use GET /api/health." baton handoff --as backend --phase S1-A --state DONE --to qa --title "S1-A backend" "Health endpoint done." The first hand-off is refused (answer first: baton show Q-001, then baton reply …) and nothing is written; after the reply it goes through as H-002. Or just run baton demo for a narrated replay on a temporary board; without installing anything, uvx baton-handoff demo.
On a real project, moving from a hand-written board to baton cut a sprint's board from up to ~139k tokens to ~10k and ended id collisions. See the evidence.
Agents run baton. Each write appends one event to a log in .baton/ under a lock, and readable views are generated from it. More on how it works.
baton is on PyPI as baton-handoff and installs the baton command. It needs Python 3.11 or newer on macOS or Linux; macOS ships Python 3.9, so uv is the easiest route: it fetches a recent Python for you.
uv tool install baton-handoff pipx install baton-handoff works too, and the getting started guide shows it, then how to set up your agents.
Bugs, questions and ideas go to issues, and pull requests are welcome: see CONTRIBUTING and the code of conduct. If baton helps your agents, a star helps others find it.
CHANGELOG · SECURITY · LICENSE (MIT)
Both files in this release have provenance metadata.
ai-agents coding-agents coordination multi-agent handoff agent-handoff cli mcp claude-code codex cursor
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 20, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance
Nov 9, 2026 2 release files Full provenance
Nov 6, 2026 2 release files Full provenance
Oct 21, 2026 2 release files Full provenance
Oct 20, 2026 2 release files Full provenance
Oct 19, 2026 2 release files Full provenance




