claude-ai-dangerous: Command for Claude Code

.claude/commands/ai/handoff.md

AI: Handoff is a command for Claude Code from hlop3z/claude-ai-dangerous. It costs 18 tokens per session (717 once invoked), scanned A, original, MIT.

A command that creates a HANDOFF.md file containing the current session state. The file helps another session continue work later.

In plain words
What is it for?
It records pointers to active changes, open tasks, decisions, and durable project facts, replacing the file each time.
Why use it?
It preserves the important current context without making a running history that can become outdated.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is hlop3z/claude-ai-dangerous's own configuration. It tells Claude Code how to work on claude-ai-dangerous itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-ai-dangerous configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hlop3z/claude-ai-dangerous. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hlop3z/claude-ai-dangerous/main/.claude/commands/ai/handoff.md
Clone the repo
git clone --depth 1 https://github.com/hlop3z/claude-ai-dangerous

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 AI: Handoff

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/hlop3z/claude-ai-dangerous/handoff"><img src="https://agentmods.dev/badge/commands/hlop3z/claude-ai-dangerous/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 717 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.00018 $0.00717
Opus 5 $0.00009 $0.00358
Sonnet 5 $0.00004 $0.00143
Haiku 4.5 $0.00002 $0.00072

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

Security

Grade A, and why

AI: 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 10d 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/ai/handoff.md · 76 lines

How it starts

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

Generate a HANDOFF.md at the project root that snapshots the current session so a future session can resume without context loss.

This is a snapshot, not a log. Each run produces the current state of the world — it is a resume note for picking your own work back up, not a historical record.

Hard rules

  1. Overwrite, never append. If HANDOFF.md already exists, replace it entirely. Never accumulate prior sessions' content — an append-mode file rots and contradicts itself.
  2. Reference, never duplicate. For anything that already has a canonical home, write a pointer to that home — do not copy its contents. This preserves single source of truth and keeps the snapshot from drifting:
    • Active changes → openspec list (name them, link to openspec/changes/<name>/)
    • Open work → the relevant tasks.md
    • Decisions + rationale → the relevant design.md ADR section
    • Durable facts about the user/project → the memory dir
  3. Only capture what has no other home. Free-form prose is restricted to the three things below. Everything else is a reference.
  4. Gitignored. Ensure HANDOFF.md is in .gitignore; add it if missing. The snapshot is a private resume note, not a committed canonical home.
  5. Promote, don't hoard. If the session produced a durable finding (a decision, a spec, a fact), promote it to its proper home — don't let HANDOFF.md become its storage.

Steps

  1. Run openspec list --json (if the project uses OpenSpec) to enumerate active changes to reference. Skip silently if not an OpenSpec project.
  2. Check .gitignore for HANDOFF.md; add the entry if absent.
  3. Write HANDOFF.md at the project root using the structure below, OVERWRITING any existing file.
  4. Report the path written and confirm it is gitignored.

HANDOFF.md structure

# Handoff

> Session snapshot — overwritten each run. Resume state only; canonical content lives in
> the linked sources, not here.

## Session narrative

<!-- What this session was about and what got done, across changes. The story that no
     single tasks.md or design.md tells. Keep it tight. -->

## Current state / where work stopped

<!-- In-flight state: what is half-done, what is blocked, the exact point work paused. -->

## Next steps

<!-- The recommended next actions for the future session, in priority order. -->

## References

<!-- Pointers ONLY — no copied content.
     - Active changes: openspec/changes/<name>/
     - Open work: <path>/tasks.md
     - Decisions: <path>/design.md
     - Durable facts: memory/ -->

Read the full file on GitHub · 76 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. 10d ago First seen · 76 lines · 18 tokens per session scan A e7f789d3d80f

Subscribe to this mod's changes

AI: Handoff is a command published in the GitHub repository hlop3z/claude-ai-dangerous (2 stars, last pushed 25d ago), licensed MIT. It adds 18 tokens to every session and 717 once invoked, about $0.0001 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.