Every new AI conversation starts from zero. It does not remember what you did together last time, the documents created along the way, or the reference material you brought in. This kit records progress, next actions, things to watch, and a file register in a few fixed documents. The next AI agent that can read and write your local project folder can pick up the baton by reading that handoff when you say Start Agent Handoff or 「開工」. Ordinary web-chat AI that cannot read or write the local folder is not a supported setting.
Version note: this page is aligned with v0.3.56. The version installed by @latest is decided by the npm registry.

This video shows how Agent Handoff Kit connects progress, rules, documents, and next actions between AI conversations. If the video does not load, you can watch the promo animation on YouTube.
The job of this kit is deliberately narrow: cross-conversation forgetting. That forgetting is not only “where did we get to?” It also covers documents created along the way and reference material you introduced. The kit records progress, next actions, and the file register in fixed documents so the next session can continue automatically.
Every new conversation means explaining the background again, pasting old documents, naming which files are authoritative and which are reference-only, then explaining where you stopped. If that explanation is incomplete, AI has to guess: it may treat a reference as the source of truth or redo work you already finished.
When you are ready to end this round, say 「收工」. The AI updates the handoff documents and file register, and synchronizes START_NEXT_SESSION_PROMPT.txt. Next time, in the same project, say Start Agent Handoff or 「開工」. The next AI immediately reads where things stand, the next action, which files are authoritative, and which are only references.
If you have spoken with AI for an hour and returned the next day to find it remembers nothing; or if you created several documents and supplied PDFs as references, but the next session cannot tell the source of truth from a draft—you have met one of the following situations.
A project lasts days and you may use Codex, Claude Code, Claude Cowork, and Antigravity along the way. Every new conversation needs the background again; eventually even you are unsure which version is current.
AI creates documents during the work, and you may add PDFs, Notion links, or research notes as references. The current AI remembers them, but a new conversation may not know they exist, or cannot distinguish a formal source from a draft.
Different AI tools look for different entry files. The kit places AGENTS.md, CLAUDE.md, and GEMINI.md together and directs common tools back to one startup contract. Antigravity CLI reads AGENTS.md and GEMINI.md in the working folder; AGENTS.md remains the sole source of truth, while GEMINI.md is only a bridge.
Once AI starts acting, it may run commands such as rm -rf or git reset --hard. If you are away from the computer, you may not notice in time.
Long tasks often call MCP, a browser, automation tools, notebooks, or helper servers. If AI leaves them open, processes and caches accumulate. If it kills things simply because they look like node.exe or chrome.exe, it may interrupt you or another AI agent.
You do not need to memorize a long command or open the handoff yourself. In a new conversation in the same project, say 「開工」 and the AI reads the previous state. When you are ready to end the round, say 「收工」 and it updates the handoff documents and writes the next handoff into the prompt copy.
Ready to continue. The AI has read the handoff state and can proceed from the current objective.
Closeout has been saved. Next time, say Start Agent Handoff or 「開工」 in the same project.
Not broken: something remains unsaved, uncommitted, unverified, or unresolved. Follow the Blocker line before treating the round as handed off.
You do not need to remember rule names. Just describe what you want in everyday language. AI explains the way it is about to work and why. These rules are for AI to follow, not a manual you must read line by line.
AI reads the project index, finds the test command, and checks related files before it acts; it does not edit blindly at the start.
AI distinguishes sources, dates, facts, inferences, and unverified material; it does not present estimates as conclusions.
AI first checks audience, purpose, tone, and format; it does not produce words that look polished but are inaccurate.
AI first decides whether an external document is an authoritative source, index, attachment, or output location. It writes to Notion, Google Drive, or Obsidian only when the current runtime’s read/write entry has been verified, the source or vault path is visible, and permission exists. An installed app alone does not grant write permission. Otherwise it produces material for manual synchronization and reads back every completed write.
AI states the conclusion first, then the background; it labels unverified material and makes instructions directly copyable.
Specified destructive commands such as rm -rf and git reset --hard are forbidden. Force-pushing needs separate explicit permission and a check of affected refs. Before deletion, irreversible work, external writes, or source-data changes, AI names the target and impact; only destructive, irreversible, or source-data operations require a backup or original copy.
AI keeps “prepare release notes” separate from actually publishing, uploading, or creating a release, so it does not publish by mistake.
AI checks whether existing rules can be extended first and merges before adding; it does not keep stacking new rules until they become confusing.
When AI creates a stock list, production guide, runbook, workflow, checklist, or research source of truth, do not leave it only in the current conversation. You can say “Bring docs/production-guide.md into Agent Handoff Kit.” AI checks whether the document is registered, when to read it, which workflow updates it, and whether a duplicate source of truth exists.
Bring docs/stock-list.md into Agent Handoff Kit or the older wording: 治理打通 docs/stock-list.md or in English: bridge governance for docs/stock-list.md
Scan for important documents not yet bridged into Agent Handoff Kit or in English: scan for unbridged governance documents
The first reviews the named document directly. The second names no document; it only scans the repository for important documents that may be missing their bridge.
AI reads the document itself, PROJECT_INDEX, DOC_SYNC_REGISTRY, relevant workflows, and the handoff/log division of roles; it also looks for older documents serving the same purpose. A repository-wide scan only lists candidates; it does not treat ordinary documents as errors.
If it finds a missing bridge, AI lists the suggested patch and what needs your decision. A scan does not change files automatically; deletion, renaming, or merging sources of truth still need your explicit confirmation.
You only need a computer with Node.js and an AI agent that can read and write your local project folder, such as Claude Code, OpenAI Codex, Gemini CLI, or Google Antigravity. Ordinary web-chat AI that cannot read and write the local project folder is not suited to this kit.
The simplest way: open an AI agent that can read and write the local folder in your project folder, then paste:
Please read https://adamchanadam.github.io/agent-handoff-kit/agent-handoff-kit-ai-install.en.html and install or upgrade Agent Handoff Kit in this folder.AI should show the current folder and ask you to confirm first; it will not install or upgrade before confirmation. Only when you want to handle it manually, run this in a terminal:
npx --yes @adamchanadam/agent-handoff-kit@latest initThe kit creates AGENTS.md, CLAUDE.md, GEMINI.md, and a set of fixed documents under dev/.
Open an AI agent that can read and write the local project folder. If it is already in the right project, enter this in a new conversation:
Start Agent Handoff or 開工
Only if the AI is not yet pointed at your project folder, use the path-bearing startup sentence:
Work in <your folder>. Read AGENTS.md first, then Start Agent Handoff. Before changing anything, tell me the current state and your recommended next step.Following AGENTS.md, AI reads the authoritative dev/SESSION_HANDOFF.md. A plain 「開工」 reads only the minimum state, shows the current objective, risk, and recommended next action, then waits for your next instruction. When the platform can safely read and control the current title, AI may use already-loaded facts to replace a generic or stale title with <project name>|<primary action>; it keeps an informative title, skips silently when unsupported, and performs no extra file or network reads. The title is display-only, not state, progress, or authority. It starts the first safe step directly only when the same message also contains a concrete task or explicit long-run instruction. A fresh install only makes onboarding available. START_NEXT_SESSION_PROMPT.txt is only for bringing in an AI that is not yet pointed at the folder.
「開工,繼續 <task>」 and 「<project> 開工」 continue directly. AI asks for confirmation only if the phrase could genuinely mean a real-world opening, shift, or unrelated event.
When this round is finished and you are ready to stop, enter:
收工 or Wrap up Agent Handoff or wrap up or handoff
If you say something such as “so-and-so is closing work” with other context, AI should first confirm whether you mean an Agent Handoff Kit closeout.
AI updates the handoff documents and synchronizes START_NEXT_SESSION_PROMPT.txt. In the next round, say Start Agent Handoff or 「開工」 in the same project to continue; use the path-bearing startup sentence only when AI is not yet pointed at the folder.
If the kit is not installed or you are unsure whether to upgrade, open an AI agent in the target folder and ask it to read agent-handoff-kit-ai-install.en.html and install or upgrade in this folder. Then enter Start Agent Handoff or 「開工」 in the same AI agent. When entered alone, AI reads the authoritative handoff and shows the current state and recommended next action. It starts the first safe step directly only when you give the goal in the same message. It loads onboarding only when the goal is unclear or you ask for guidance. You do not need to read this introduction first.
The kit includes a safety working mode. Whenever a task involves deleting files, Git, cloud writes, or publishing, AI must switch to the safety approach and follow these hard boundaries:
rm -rf / git reset --hard and operations on system-root paths are always refused. Force-pushes, branch or tag deletion, and history rewriting need separate explicit permission and a check of affected refs.For high-risk work—many files, external systems, deletion, or renaming—AI must explain the complete plan and wait for your confirmation. It does not make silent changes.
The kit separates project material into “read every time”, “read when needed”, and “read only when tracing back”. That lets AI know what to read and when. You do not need to remember the layers—the section below simply shows how AI arranges your project material, so it knows where to look when you later ask, “Why did we do it this way?”
SESSION_HANDOFF: current state, next action, risks.
PROJECT_INDEX: file register, sources of truth.
AGENTS / CLAUDE / GEMINI.md: startup rules.
At startup, AI reads only entry rules and the authoritative handoff. It loads the index, sync table, and rule packs as the task needs them.
Working rules: guidance selected for the task.
PROJECT_DECISIONS: long-term project evolution, decisions, learning.
AI chooses the rules needed for today’s task; you do not need to decide. A long project’s decision history also lives here, so questions such as “Why did we do it this way?” have somewhere to look.
Old SESSION_LOG entries
SESSION_LOG_archive: automatic cold archive.
These are not read in ordinary work; open them only for audit or trace-back. At closeout, AI archives old entries here automatically.
When AI is already in the right project, say Start Agent Handoff or 「開工」 in each new conversation. Only when it is not yet pointed at the folder, use: Work in <folder>. Read AGENTS.md first, then Start Agent Handoff.
AI first reads the requirements you already supplied. If there is enough information, it chooses the working mode and begins; if not, it uses a menu or short questions to clarify. Beginners do not need to remember any rule-pack names.
In the next round, say Start Agent Handoff or 「開工」 and AI reads the latest prompt itself. When this round is over, say 「收工」 or Wrap up Agent Handoff; AI updates the handoff documents and START_NEXT_SESSION_PROMPT.txt.
This kit handles the handoff between conversations. It does not include the rules for how AI works within one conversation—tone, priorities, response structure, safety guardrails, and output-layer roles. Use it together with Adam-AI-Instructions to cover both dimensions.
Within one conversation: AI working rules for tone, response structure, calculation discipline, safety guardrails, and output-layer roles.
See the prompt index →Between conversations: current state, next action, file register, closeout, and the next start.
See the three steps →In section five, “Prompt Index”, of Adam-AI-Instructions, choose the applicable version and paste the full corresponding prompt.md into your AI tool settings. Then, in the project folder, open an AI agent that can read and write the local folder and ask it to read agent-handoff-kit-ai-install.en.html and install or upgrade this kit. For manual handling only, run npx --yes @adamchanadam/agent-handoff-kit@latest init. The former governs work inside one conversation; this kit governs project continuity between conversations.