A practical handoff workflow for coding agents that share a workspace with a human and other agents.
The goal is simple: keep work resumable, verifiable, and safe when tasks span multiple sessions, tools, models, or contributors.
This repository contains:
- A vendor-neutral agent workflow.
- A Codex-compatible skill in
skills/agent-handoff/SKILL.md. - A Claude Code starter file in
CLAUDE.md. - A generic
AGENTS.mdyou can copy into a workspace. - Handoff, debugging, commit, and release templates.
It is intentionally small. It does not prescribe a project stack or require a service.
Landing page: https://lutren.github.io/agent-handoff-protocol/
Announcement issue: #1
Publication gist: https://gist.github.com/Lutren/027e39377fb2e27499ecb0bfa375769d
Copy the skill folder into your Codex skills directory or paste the relevant instructions into your project-level agent instructions:
skills/agent-handoff/SKILL.md
Use it when a task needs continuity, debug delegation, commits, release evidence, or safe collaboration with other agents.
Copy CLAUDE.md into the root of a project, or merge its rules into an existing Claude Code instruction file.
Copy AGENTS.md into the project root and use templates/HANDOFF.md at the end of each session.
- Read local instructions first.
- Inspect the real workspace before proposing changes.
- Identify repository boundaries and dirty files.
- Own only a bounded set of paths.
- Make small, evidence-backed changes.
- Validate with commands the next agent can repeat.
- Commit only the paths you touched.
- Leave a handoff that states current truth, blockers, tests, and next steps.
- Do not claim completion without evidence.
- Do not revert or overwrite unknown changes.
- Do not use broad staging commands in dirty shared trees.
- Do not run destructive cleanup without an explicit target and verification.
- Do not publish, upload, or move user files unless the user asked for that action.
- Treat secrets, private assets, and unpublished work as blocked from public output.
AGENTS.md Generic workspace instructions
CLAUDE.md Claude Code starter instructions
skills/agent-handoff/SKILL.md Codex skill
docs/PROTOCOL.md Full workflow
docs/SAFETY.md Safety and boundary rules
templates/HANDOFF.md End-of-session handoff
templates/DEBUG_BRIEF.md Debug-agent task brief
templates/COMMIT_LOG.md Commit notes template
templates/RELEASE_CHECK.md Public-release checklist
Use this protocol when:
- Work spans more than one session.
- Multiple agents are active.
- A repo is dirty.
- You need commits with verifiable scope.
- You need a debug agent or implementation agent.
- A release or public handoff must not leak private context.
MIT. See LICENSE.