Skip to content

jimozo/agent-handoff-kit

agent-handoff-kit

A Git-native handoff protocol for teams using multiple coding agents in the same project.

agent-handoff-kit gives Codex, Claude Code, Cursor, Aider, and other coding agents a shared way to start work, review the last agent, hand off context, rotate session logs, and leave branches ready for human review.

It complements existing project docs. It gives root instruction files a concise every-session shape and points agents to deeper docs only when the task needs them.

What This Adds

  • A small active session log agents read first: SESSIONS.md
  • An archive for older entries: SESSIONS_ARCHIVE.md
  • Branch-per-agent workflow with default prefixes: codex/, claude/, cursor/, aider/
  • Three handoff modes: chat handoff, agent-switch handoff (cross-tool relay), and full handoff
  • A CONTINUE.md relay note for switching tools mid-work (Claude to Codex and back)
  • Last-agent review commands for quickly continuing another agent's branch
  • Conflict rules for concurrent agent branches
  • An optional agent ownership map for who-edits-what
  • Concise standalone AGENTS.md and CLAUDE.md templates
  • Agent-installable instructions in INSTALL_FOR_AGENTS.md
  • Dependency-free installer that fills all bindings, plus validate.sh and handoff.sh helpers

When To Use It

Use this kit when:

  • More than one coding agent touches the same repository.
  • Agent sessions often continue across chats.
  • A human wants to review and merge agent branches into the stable branch.
  • Session notes are getting too long for every new agent to reread.

You may not need it for a single-agent side project or a repo where agents never commit work.

Repository Layout

agent-handoff-kit/
  README.md
  QUICKSTART.md
  INSTALL_FOR_AGENTS.md
  LICENSE
  CONTRIBUTING.md
  CODE_OF_CONDUCT.md
  SECURITY.md
  CHANGELOG.md
  templates/
  snippets/
  examples/
  docs/
  scripts/
  .github/

Install

Fast path:

git clone https://github.com/YOUR_ORG/agent-handoff-kit.git
cd your-project
../agent-handoff-kit/scripts/install.sh --target .

Agent path:

Install agent-handoff-kit in this repo. Follow INSTALL_FOR_AGENTS.md. Preserve existing project-specific agent instructions and do not overwrite files unless the install guide explicitly says it is safe.

See QUICKSTART.md and INSTALL_FOR_AGENTS.md.

Core Model

Each agent works on its own branch:

codex/YYYY-MM-DD-short-scope
claude/YYYY-MM-DD-short-scope
cursor/YYYY-MM-DD-short-scope
aider/YYYY-MM-DD-short-scope

SESSIONS.md keeps only the latest 4 full handoff entries by default. Older entries move to SESSIONS_ARCHIVE.md, newest first.

The human owner merges reviewed branches into the main branch.

The installed docs/<protocol>.md is the single source of truth for the protocol. If you vendor the whole agent-handoff-kit/ folder inside a repo, treat that folder as read-only upstream and edit rules only in the installed doc. Kit upgrades generate a candidate protocol doc for review instead of overwriting custom repo rules by default. See INSTALL_FOR_AGENTS.md.

Documentation

License

MIT. See LICENSE.