handoff

handoff is a command for Claude Code from andrei-isvoran96/claude-skill-lab. It costs 0 tokens per session (1,369 once invoked), scanned A, original, MIT.

A command that records the current coding session in a handoff document and prints a one-line instruction for continuing in a new session. A handoff is a compact summary of unfinished work and its context.

In plain words
What is it for?
Use it when work is unfinished and the current context window is filling up. It saves named handoff files and keeps a latest.md pointer to the most recent one.
Why use it?
It prevents important decisions and remaining tasks from being lost when the conversation becomes too long. It lets another session resume without reading the entire earlier conversation.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it when work is unfinished and the current context window is filling up. It saves named handoff files and keeps a latest.md pointer to the most recent one.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/andrei-isvoran96/claude-skill-lab/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/andrei-isvoran96/claude-skill-lab

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 handoff

README.md
[![agentmods](https://agentmods.dev/badge/commands/andrei-isvoran96/claude-skill-lab/handoff/github.svg)](https://agentmods.dev/commands/andrei-isvoran96/claude-skill-lab/handoff)
Your own site
<a href="https://agentmods.dev/commands/andrei-isvoran96/claude-skill-lab/handoff"><img src="https://agentmods.dev/badge/commands/andrei-isvoran96/claude-skill-lab/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 handoff

Your own site · 80×15
<a href="https://agentmods.dev/commands/andrei-isvoran96/claude-skill-lab/handoff"><img src="https://agentmods.dev/badge/commands/andrei-isvoran96/claude-skill-lab/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,369 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.00000 $0.01369
Opus 5 $0.00000 $0.00685
Sonnet 5 $0.00000 $0.00274
Haiku 4.5 $0.00000 $0.00137

Measured 9d ago against content hash 0fe0a101de72, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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 · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Write a structured handoff brief from the current session to a file, then print the exact one-liner the user can paste into a fresh claude session to continue the work without re-loading the whole conversation. Use this when the context window is filling up but the work isn't done.

Arguments

This command accepts an optional short slug as $ARGUMENTS to name the handoff. Examples:

  • /handoff — uses a timestamp slug
  • /handoff auth-refactor — uses auth-refactor as the slug (so multiple in-flight handoffs can coexist)

The slug is sanitized (lowercase, non-alphanumeric → -, truncated to 40 chars).

Steps

  1. Build the slug and target path.

    • If $ARGUMENTS is empty, slug = current UTC timestamp in YYYYMMDD-HHMM form.
    • Otherwise, sanitize $ARGUMENTS: lowercase, replace any run of non-alphanumeric chars with -, trim leading/trailing -, truncate to 40 chars.
    • Target file: <HANDOFF_DIR>/<slug>.md (default .claude/handoffs/<slug>.md).
    • Also maintain a stable pointer at <HANDOFF_DIR>/latest.md (overwrite each run) so the resume one-liner is the same every time.
    • mkdir -p <HANDOFF_DIR> if needed.
  2. Capture the operational state of the working tree. Run these in parallel:

    git status --short
    git diff --stat
    git log --oneline -5
    git branch --show-current
    

    You'll reference these in the brief so the fresh session knows what's modified, what's committed, and where it sits.

  3. Draft the brief. It must be short enough to be cheap to load into a fresh context, complete enough that the new session doesn't need to ask "what was I doing?". Use this exact skeleton — fill every section, write (none) if a section genuinely doesn't apply:

    # Handoff — <slug>
    
    *Written <UTC timestamp> from session on branch `<branch>`.*
    
    ## Goal
    <1–2 sentences: what is the user ultimately trying to accomplish in this thread of work? Not "what we did in this session" — the underlying objective.>
    
    ## Current state
    - <bullet per concrete change made or decision taken so far>
    - <include file paths the user has touched, e.g. `src/auth/middleware.ts:42`>
    
    ## Working tree
    

    <paste the git status --short output verbatim>

    Branch: `<current branch>`. Recent commits:
    

    <paste the git log --oneline -5 output>

    
    ## Where we left off
    <1–3 sentences: the immediate next step. Be specific — "add the failing-case test for X in path/to/test.ts" beats "continue with tests".>
    
    ## Key context the fresh session needs
    - <non-obvious facts discovered this session: hidden constraints, API quirks, broken assumptions corrected>
    - <decisions already made and *why* — so the new session doesn't relitigate them>
    
    ## Already tried, don't repeat
    - <approaches that looked promising but failed, with one-line reason — so the new session doesn't burn context rediscovering>
    
    ## Open questions for the user
    - <things the user needs to weigh in on before fresh Claude can proceed; if none, write `(none)`>
    

Read the full file on GitHub · 107 lines

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. 9d ago First seen · 107 lines · 0 tokens per session scan A 0fe0a101de72

Subscribe to this mod's changes

handoff is a command published in the GitHub repository andrei-isvoran96/claude-skill-lab (1 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,369 tokens. 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.