Agent Efficiency Kit
Claude Opus 4.7 made token waste impossible to ignore. This kit cuts the waste that was always there: file-rereads, WebFetch loops hitting the same Cloudflare wall, retry spirals that burn 8 turns going nowhere, and model choices that do not match the task. Three drop-in hooks run in milliseconds with zero LLM tokens. A local dashboard shows exactly where your sessions leak. Built from a heuristic audit of 133,087 real sessions across 9 waste categories.
Paid Digital Thoughts subscriber?
Yearly subscribers: all products free ($1150.94+ value)
Monthly subscribers: 1 free product per month โ subscribe from $29.99/mo
Claim your free copy โWhat you get
Package includes
- โขinstall.sh: one-line installer that patches ~/.claude/settings.json safely (preserves existing hooks)
- โขAGENT_INSTRUCTIONS.md: prescriptive rules for the agent (~1k tokens, cacheable)
- โขanalyze.py: heuristic classifier, free, no LLM required
- โขtaxonomy.py: waste bin definitions (9 categories), pure functions, easy to extend
- โขreport.py: JSON + Markdown report builder
- โขsubagent_link.py: links sub-agents to parent sessions for attribution
- โขdashboard.py: local web dashboard at localhost:8765
- โขllm_classify.py: optional Haiku-powered deep audit (OpenRouter or Claude CLI)
- โขhooks/: three shell scripts (file-reread-guard, webfetch-fallback-guard, webfetch-circuit-breaker)
- โขlib/: Python helpers backing the hooks
- โขmodel-routing-notes.md: task-to-model rules for Opus 4.7, Codex, Haiku, and local models
- โข12 months of updates: new hook patterns, taxonomy expansions, dashboard features
FAQ
Does this only work with Claude Code?
Yes โ the hooks use Claude Code's PreToolUse/PostToolUse hook system and the dashboard reads Claude Code session JSONL files. It will not work with Cursor, Aider, or other tools.
Will the hooks slow down my sessions?
No. Each hook runs a tiny Python or shell script. The file-reread guard does a hash lookup. The WebFetch guards do a simple counter check. Total overhead per tool call is under 50ms.
What if I already have hooks in my settings.json?
install.sh merges the new hooks into your existing configuration. It reads your current hooks array, appends the kit hooks, and writes back. It creates a backup (.bak) before modifying.
How do I read the dashboard?
Run `python3 analyze.py --no-llm` to classify your sessions, then `python3 dashboard.py` to open the dashboard at localhost:8765. The cluster forensics section shows the specific patterns burning tokens in your projects.
How does the 12-month update policy work?
Your purchase confirmation email has a download link. Reuse that link within 12 months of purchase to get the latest version. After 12 months, you keep what you have โ the hooks keep working.
Related reading on Digital Thoughts:
You might also like:
Secure checkout by Stripe. Instant download + guided Claude Code setup.