handoff

A quick session-handover command that records the current Git state, work in progress, discoveries, and a command for resuming later. Git is the version-control system used to track code changes.

In plain words
What is it for?
Use it to capture the active task, changed files, recent commits, important gotchas, and the next concrete action.
Why use it?
It prevents context and next steps from being lost when a coding session ends or the work moves to another session.

Command for Claude Code

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/hautc-it/cil/handoff
Clone the repo
git clone --depth 1 https://github.com/hautc-it/cil

Made for: Claude Code.

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 408 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.00408
Opus 5 $0.00015 $0.00204
Sonnet 5 $0.00006 $0.00082
Haiku 4.5 $0.00003 $0.00041

Measured 2d ago against content hash 9d6521a80782, 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 2d 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.

.claude/commands/handoff.md · 67 lines

What it actually says

/handoff

Fast session handover. Produces a paste-ready resume command for the next session.

When to use: context is filling up, you need to step away, or switching tasks mid-session. vs /wrap-up: /wrap-up is a thorough end-of-session checklist. /handoff is quick and output-focused.


Step 1 — Capture git state

git status --short
git log --oneline -5

Note: current branch, uncommitted files, last few commits.


Step 2 — What is in progress right now?

State clearly:

  • Active task (1 sentence)
  • File/function/area being worked on
  • Immediate next action (specific enough to act on without re-reading this context)

Step 3 — Save new learnings or gotchas

For each non-obvious thing discovered this session — unexpected behaviors, footguns, constraints:

memory_store("learning", "[insight]", ["relevant", "tags"])

Skip insights already stored. Focus on what would trip up the next session.


Step 4 — Create session snapshot

session_snapshot("[1–2 sentence status: what's done, what's in progress]", ["decision1", "decision2"])

The PreCompact hook will inject this automatically at the next /compact.


Step 5 — Write resume command

Output a single paragraph ready to paste into the next session:

Resume: Continuing [task] on branch [branch]. [Key context: what's done, what's pending, what to avoid]. Uncommitted: [files or "clean"]. Next action: [specific step].


Step 6 — Compact

Run /compact now. The PreCompact hook injects the snapshot from Step 4.

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. 2d ago First seen · 67 lines · 31 tokens per session scan A 9d6521a80782

Subscribe to this mod's changes

handoff is a command published in the GitHub repository hautc-it/cil (1 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 408 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.