handoff

handoff is a command for coding agents from naimkatiman/continuous-improvement. It costs 31 tokens per session (515 once invoked), scanned A, original, MIT.

A command that writes a compact handoff document describing the current goal, project state, decisions, open questions and next step.

In plain words
What is it for?
Use it when transferring a task between sessions, with references to relevant files, plans, issues, commits or URLs.
Why use it?
It lets another coding agent continue the work without rereading the entire conversation.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/naimkatiman/continuous-improvement/handoff
Clone the repo
git clone --depth 1 https://github.com/naimkatiman/continuous-improvement

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for handoff

README.md
[![agentmods](https://agentmods.dev/badge/commands/naimkatiman/continuous-improvement/handoff.svg)](https://agentmods.dev/commands/naimkatiman/continuous-improvement/handoff)
Your own site
<a href="https://agentmods.dev/commands/naimkatiman/continuous-improvement/handoff"><img src="https://agentmods.dev/badge/commands/naimkatiman/continuous-improvement/handoff.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 515 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00031 $0.00515
Opus 5 $0.00015 $0.00258
Sonnet 5 $0.00006 $0.00103
Haiku 4.5 $0.00003 $0.00052

Measured 3d ago against content hash a3b57c310c8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

handoff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/handoff.md · 43 lines

What it actually says

/handoff

Hand the current session off to a fresh agent by writing a brief, mktemp-backed markdown summary they can pick up cold.

Trigger phrases

  • /handoff
  • /handoff <what the next session will focus on>
  • "write a handoff doc"
  • "compact this into a handoff"

What happens

  1. Read the current conversation (and the user's argument, if given) to identify the goal, current state, decisions made, open questions, next concrete step, and skills to load.
  2. Generate a unique path with mktemp -t handoff-XXXXXX.md and read it (it will be empty).
  3. Write the handoff doc to that path. Reference PRDs, plans, ADRs, issues, commits, and diffs by path or URL — do not duplicate their content.
  4. Suggest the skills the next session should load.

What goes in the doc

A one-screen brief, in this order:

  1. Goal — one sentence on the outcome the user is steering toward.
  2. Current state — what is actually true on disk / in the system right now.
  3. Decisions made this session — only what is not already captured in commits or other artifacts.
  4. Open questions — blocking choices the next agent needs the user to answer.
  5. Next concrete step — the single action the next agent should take first.
  6. Skills to load — names of the skills the next session should activate.

Skill file

Full behavior is defined in skills/handoff.md. The verbatim upstream cold-storage copy lives at third-party/mattpocock-skills/skills/in-progress/handoff/SKILL.md; SHA pin in third-party/MANIFEST.md.

Attribution

Ported from mattpocock/skills in-progress/handoff (MIT, © 2026 Matt Pocock).

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 43 lines · 31 tokens per session scan A a3b57c310c8d

Subscribe to this mod's changes

handoff is a command published in the GitHub repository naimkatiman/continuous-improvement (7 stars, last pushed 8d ago), licensed MIT. It adds 31 tokens to every session and 515 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.