mise-handoff

mise-handoff is a command for Claude Code from emadd/mise-en-claude. It costs 38 tokens per session (751 once invoked), scanned A, original, MIT.

A command for recording the current work state in a durable hand-off, such as a task tracker, GitHub issue, or HANDOFF.md file.

In plain words
What is it for?
Use it when ending a session or switching contexts and you need work to resume without losing important details.
Why use it?
It gives a new coding session a verified record of the goal, completed work, decisions, files, next steps, and known traps.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it when ending a session or switching contexts and you need work to resume without losing important details.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/emadd/mise-en-claude/mise-handoff
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.

Clone the repo
git clone --depth 1 https://github.com/emadd/mise-en-claude

Made for: Claude Code.

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 mise-handoff

README.md
[![agentmods](https://agentmods.dev/badge/commands/emadd/mise-en-claude/mise-handoff/github.svg)](https://agentmods.dev/commands/emadd/mise-en-claude/mise-handoff)
Your own site
<a href="https://agentmods.dev/commands/emadd/mise-en-claude/mise-handoff"><img src="https://agentmods.dev/badge/commands/emadd/mise-en-claude/mise-handoff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mise-handoff

Your own site · 80×15
<a href="https://agentmods.dev/commands/emadd/mise-en-claude/mise-handoff"><img src="https://agentmods.dev/badge/commands/emadd/mise-en-claude/mise-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 751 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00038 $0.00751
Opus 5 $0.00019 $0.00376
Sonnet 5 $0.00008 $0.00150
Haiku 4.5 $0.00004 $0.00075

Measured 12d ago against content hash 48128830984b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

mise-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 12d 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/mise-handoff.md · 47 lines

What it actually says

Context is a budget, and this is the hand-off that beats silent auto-compaction. Capture the current state so a fresh session resumes with no loss, then stop, rather than pushing into compaction where fidelity quietly dies.

Write these six fields, tight and specific (focus: $ARGUMENTS if given):

  • Goal — what we're actually trying to accomplish (the outcome, not the next keystroke).
  • Done — what's finished and verified, with the evidence (a passing test, a running screen). Re-verify it now, live — rerun the test, reload the screen — don't transcribe an earlier claim (yours, a notes file's, a teammate's) on trust. If you can't re-verify something before the hand-off, write it as unverified rather than done; a stale "done" is worse than an honest gap, because the next session builds on top of it without rechecking.
  • Next — the very next concrete step, then the ones after it.
  • Key decisions — choices made and why, so they aren't relitigated or accidentally undone.
  • Files touched — the files that matter and what changed in each; flag anything half-done.
  • Gotchas — traps, dead ends, environment quirks, "don't do X, it breaks Y."

Pick the durable target, most-programmatic first:

  • Check .mise/state.json for a tracker the project was set up with. If it names a platform other than GitHub Issues (Jira, Linear, Asana, Trello, etc.) and it's reachable this session (MCP/API/CLI), write the hand-off there — a task or comment tagged handoff — so it lives where the rest of the project's work already does.
  • Otherwise, if gh is authenticated and the repo has a remote, open a GitHub issue (gh issue create) — it's shared, linkable, and survives the machine. Label it handoff.
  • Otherwise write HANDOFF.md at the repo root. If you commit it, honor any no-auto-commit rule: ask first, then run the commit yourself on a yes — don't hand over a command to type.
  • Never leave the hand-off only in chat; chat is the thing about to be lost.

Then give the user a ready-to-paste resume prompt, not just a pointer to the artifact. Put it in its own fenced code block, on one line, so it can be copied with a single click and dropped straight into a fresh session as the next /mise-cook (or plain) prompt — e.g.:

Resume from issue #190: <one-line goal>. Read the issue for full context, then continue from "Next".

Don't make the reader assemble this themselves from prose — the whole point of the hand-off is that a fresh session (or a fresh reader) can go from "here's the artifact" to "working again" without hand-crafting anything. Keep the hand-off itself scannable — a fresh reader should grasp the state in under a minute, not wade through a transcript.

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. 12d ago First seen · 47 lines · 38 tokens per session scan A 48128830984b

Subscribe to this mod's changes

mise-handoff is a command published in the GitHub repository emadd/mise-en-claude (51 stars, last pushed 1mo ago), licensed MIT. It adds 38 tokens to every session and 751 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-30.