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.
git clone --depth 1 https://github.com/Sagargupta16/claude-cost-optimizerWrote 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.
[](https://agentmods.dev/commands/sagargupta16/claude-cost-optimizer/handoff)<a href="https://agentmods.dev/commands/sagargupta16/claude-cost-optimizer/handoff"><img src="https://agentmods.dev/badge/commands/sagargupta16/claude-cost-optimizer/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.
<a href="https://agentmods.dev/commands/sagargupta16/claude-cost-optimizer/handoff"><img src="https://agentmods.dev/badge/commands/sagargupta16/claude-cost-optimizer/handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.00364 |
| Opus 5.5 | $0.00010 | $0.00146 |
| Sonnet 5.5 | $0.00005 | $0.00073 |
| Haiku 4.5 | $0.00003 | $0.00036 |
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 29d 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.
What it actually says
Handoff
Write a short handoff so a fresh session (after /clear, or a new one) can pick this work up without the old conversation. Run it while the prompt cache is still warm: once the cache has expired, this turn re-sends the whole conversation at the cache-write rate before it writes anything.
Instructions
-
Overwrite
.claude/handoff.mdin the project root with at most 40 lines, under these headings:- Goal: one or two lines.
- Done: what is finished, with the proof (the command run and what it showed).
- Next: the next concrete steps, in order.
- Files touched: paths only, one per line, no contents.
- Open questions: anything undecided or waiting on the user.
- Commands to re-run: the exact commands that show the current state (tests, build, a server).
Write facts, not instructions to a future assistant. No secrets, tokens or credentials, and no pasted file contents.
-
Run
git check-ignore -q .claude/handoff.md. If the file is not ignored, say so and suggest adding.claude/handoff.mdto.gitignore, so it is never committed. The optional loader hook (hooks/handoff-loader.sh) only reads an ignored, untracked file. -
Print the same notes in chat inside one code block, so they can be pasted into a new session when no hook loads them.
Reply with that code block and one line naming the file. Nothing else.
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.
- 29d ago First seen · 24 lines · 25 tokens per session scan A 69d1f6e7dd08
handoff is a command published in the GitHub repository Sagargupta16/claude-cost-optimizer (49 stars, last pushed 2d ago), licensed MIT. It adds 25 tokens to every session and 364 once invoked, about $0.0001 per session on Opus 5.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-11-04.
handoff compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| handoffSagargupta16/claude-cost-optimizer | Command | 49 | 2d ago | MIT | A | 25 | Claude Code |
| parkFlorianBruniaux/claude-code-ultimate-guide | Command | 7.6k | yesterday | CC-BY-SA-4.0 | A | 14 | Claude Code |
| iteratexiaobei930/cc-best | Command | 50 | 5mo ago | MIT | A | 11 | Claude Code |
| pairxiaobei930/cc-best | Command | 50 | 5mo ago | MIT | A | 10 | Claude Code |
| checkpointxiaobei930/cc-best | Command | 50 | 5mo ago | MIT | A | 9 | Claude Code |
| audit-agents-skillsFlorianBruniaux/claude-code-ultimate-guide | Command | 7.6k | yesterday | CC-BY-SA-4.0 | A | 20 | Claude Code |
| atomic-helpdamusix/atomic-claude | Command | 117 | yesterday | MIT | A | 57 | Claude Code |