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.
npx agentmods add commands/florianbruniaux/claude-code-plugins/check-cache-bugsgit clone --depth 1 https://github.com/FlorianBruniaux/claude-code-pluginsWrote 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/florianbruniaux/claude-code-plugins/check-cache-bugs)<a href="https://agentmods.dev/commands/florianbruniaux/claude-code-plugins/check-cache-bugs"><img src="https://agentmods.dev/badge/commands/florianbruniaux/claude-code-plugins/check-cache-bugs.svg" alt="Measured on agentmods" 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 | $0.00039 | $0.03860 |
| Opus 5 | $0.00019 | $0.01930 |
| Sonnet 5 | $0.00008 | $0.00772 |
| Haiku 4.5 | $0.00004 | $0.00386 |
Grade A, and why
check-cache-bugs scanned grade A with 1 finding 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 today.
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.
Reads agent configuration directorieslowAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
grep -rl "cch=" ~/.claude/hooks/ 2>/dev/null Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 312 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Check Cache Bugs (CC#40524)
Audit your Claude Code setup for cache and cost bugs discovered in March–April 2026.
Time: ~30 seconds | Scope: version, config files, CLAUDE.md, skills, hooks, shell profiles, all claude binaries
Note on cache contamination: This skill loads content containing
cch=strings into the current session's message array. For cleanest results, run this command at the very start of a fresh session — or viaclaude -p "$(cat .claude/commands/check-cache-bugs.md)"as a one-shot print-mode invocation.
Reference: anthropics/claude-code#40524 | Discovered by: @jmarianski + @whiletrue0x | Extended by: @ArkNill (ArkNill/claude-code-cache-analysis, April 2026)
Background
Fix Status (current as of v2.1.92)
| Bug | Versions affected | Status |
|---|---|---|
| Bug 1 — cch sentinel (standalone binary) | v2.1.36–v2.1.90 | FIXED in v2.1.91 |
| Bug 2 — deferred_tools_delta on --resume | v2.1.69–v2.1.89 | FIXED in v2.1.90 |
| Bug 3 — attribution header per-session hash | v2.1.69+ | Active (env var workaround) |
| B4 — Microcompact / silent context stripping | all versions through v2.1.92 | Active (GrowthBook controlled) |
| B5 — Tool result budget cap 200K | all versions through v2.1.92 | Active (MCP tools exempted) |
Original three bugs (CC#40524)
-
Bug 1 (FIXED v2.1.91): Bun's native HTTP layer did a same-length byte replacement of the
cch=00000attestation placeholder afterJSON.stringifybut before TLS. Triggered only ifcch=00000appeared literally inmessages[]content. Confirmed closed — npm and standalone binary are now equivalent on v2.1.91+. -
Bug 2 (FIXED v2.1.90): The session JSONL writer stripped
deferred_tools_deltaattachment records before writing to disk. On--resume, those records were absent — the deferred tools layer had no prior history and re-announced all tools from scratch, shifting every message position and breaking the messages-level cache prefix entirely. Each resume rebuilt 87-118K tokens ascache_creation. Anthropic tracked internally as inc-4747.
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.
- today First seen · 312 lines · 39 tokens per session scan A da7e358d56a5
check-cache-bugs is a command published in the GitHub repository FlorianBruniaux/claude-code-plugins (40 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 3,860 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other commands, from other repositories
aso
App Store Optimization command. iOS app listing analysis via the iTunes API, keyword optimization, and competitor comparison.
content-generate
Social media content generation command. Produces ready-to-use posts, captions, visual briefs, and hashtags for the given platform and type.
api-doc
API documentation generation. Scans route definitions and produces structured API docs.
audit
Quality audit command. Runs a systematic audit over code, structure, or process.
brief
Project briefing command. Turns raw project ideas into structured, actionable briefs.
changelog
Automatic changelog generation. Produces a structured changelog from commit history.