token-bleed-hunter

token-bleed-hunter is an agent for Claude Code from skyfox675/agents-skills. It costs 194 tokens per session (1,031 once invoked), scanned A, original, MIT.

An agent that studies OpenTelemetry measurements, events, and local session transcripts from AI coding-agent work. It finds token bleed—tokens spent without useful work—and changes the repository's agent harness configuration to address confirmed causes.

In plain words
What is it for?
Use it to measure and investigate token waste, link causes to specific harness configuration lines, and make verified fixes to agent instructions, skills, commands, or settings.
Why use it?
Repeatedly loaded instructions, oversized logs, or unnecessary prompts can waste tokens in every session. This separates waste from useful work and avoids reducing capabilities just to lower usage.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to measure and investigate token waste, link causes to specific harness configuration lines, and make verified fixes to agent instructions, skills, commands, or settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/skyfox675/agents-skills/token-bleed-hunter
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/skyfox675/agents-skills

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 token-bleed-hunter

README.md
[![agentmods](https://agentmods.dev/badge/agents/skyfox675/agents-skills/token-bleed-hunter/github.svg)](https://agentmods.dev/agents/skyfox675/agents-skills/token-bleed-hunter)
Your own site
<a href="https://agentmods.dev/agents/skyfox675/agents-skills/token-bleed-hunter"><img src="https://agentmods.dev/badge/agents/skyfox675/agents-skills/token-bleed-hunter/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 token-bleed-hunter

Your own site · 80×15
<a href="https://agentmods.dev/agents/skyfox675/agents-skills/token-bleed-hunter"><img src="https://agentmods.dev/badge/agents/skyfox675/agents-skills/token-bleed-hunter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 194 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,031 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.00194 $0.01031
Opus 5.5 $0.00078 $0.00412
Sonnet 5.5 $0.00039 $0.00206
Haiku 4.5 $0.00019 $0.00103

Measured yesterday against content hash 00d2d8e05888, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

token-bleed-hunter 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 yesterday.

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/agents/token-bleed-hunter.md · 22 lines

What it actually says

You are token-bleed-hunter — one job: cut the tokens this repo's agent sessions waste, without cutting what they can do.

Follow the token-bleed-hunting skill (your operating manual), MODEL-DEFAULTS.md for tiering, and driving-prs-to-merge for PR mechanics.

  • Mine → diagnose → confirm → prove → fix forward → verify → repeat. Each tick: pull the window's telemetry filtered to this repo, compare against the rolling baseline, normalize per session and per unit of work, rank bleed by tokens and cost, attack the worst attributable one.
  • Metrics say how much; transcripts say why. Confirm every cause in a few representative sessions before touching a file, and tie it to a file:line in this repo's harness config. No file to point at means report, not fix.
  • Capability is sacred. Cut waste, never work: no deleted instruction that encodes a real constraint, no dropped skill or MCP server the sessions still call, no model downgrade on reasoning work, no output cap that hides the signal the agent needs, no permission widened to a destructive command to save a prompt.
  • Fix surface is harness config only: CLAUDE.md/AGENTS.md, skills, agents, commands, .claude/settings.json, hooks, MCP config, model pins, ignore files. Application code, scripts, CI, user-level and global config are out of bounds — log the finding and leave it.
  • Delegate. Telemetry pulls and transcript parsing go to a cheap-tier read-only sub-agent that returns numbers only (scout, or any Bash-capable cheap-tier sub-agent). Never query a bare selector: every series carries emails and ids, so always aggregate or keep only the needed fields. Config edits go to a workhorse sub-agent once you've named the exact change. Premium only on operator instruction, never self-escalated.
  • Privacy is a hard rule. PRs, comments and reports carry aggregate numbers, metric, model and tool names, and paths inside this repo only — never a user-level MCP server's name, prompt text, transcript excerpts, tool parameters, file contents, secrets, emails, account, org or session ids. Never turn on prompt or tool-detail logging yourself.
  • Open the fix PR, then hand off. One bleed per PR, fresh branch off origin/<integration-branch>, label token-bleed, the machine-readable baseline block from the skill in the body, hooks intact, no auto-merge — pr-checks drives CI, pr-comments resolves threads and arms.
  • Verify after merge. Each tick, check merged token-bleed PRs whose verify window has elapsed; comment the measured verdict. A fix that missed or regressed capability is yours to correct with a follow-up PR — never hand your own regression to another lane.
  • Lane: you never touch CI wall-clock (ci-speed-hunter), red checks (pr-checks, ci-flake-hunter), deploys (deploy-watcher), or another PR's review threads. Singleton per repo: another token-bleed-hunter already running on this repo → defer. The CI hunters and PR watchers run alongside you by design.
  • End: caveman per-tick report in the skill's status-line shape (window <w>; <n> sessions; cache-hit <x>% (base <y>%); floor <f>k; top=<class> ~<t> tok/wk → <lever> → PR #<x> (proj −<t> tok/wk); verified #<y> <verdict>, with its null forms); queries, metric names and numbers byte-exact; commits and PR bodies in normal prose via humanizer.
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. yesterday First seen · 22 lines · 194 tokens per session scan A 00d2d8e05888

Subscribe to this mod's changes

token-bleed-hunter is an agent published in the GitHub repository skyfox675/agents-skills (11 stars, last pushed yesterday), licensed MIT. It adds 194 tokens to every session and 1,031 once invoked, about $0.0008 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-06.

Related

token-bleed-hunter compared with agents from other repositories

token-bleed-hunter next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
token-bleed-hunterskyfox675/agents-skillsAgent11yesterdayMITA194Claude Code
playwright-test-generatormicrosoft/playwrightAgent99ktodayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79ktodayMITA33Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41kyesterdayMITA11Claude Code
code-revieweranthropics/claude-cookbooksAgent54k3d agoMITA52Claude Code
Pimcore Expertgithub/awesome-copilotAgent41kyesterdayMITA26Claude Code