Analyzes coding-agent session transcripts (Claude Code, Codex, Gemini CLI, OpenCode) to identify token, money, and time waste. Reports costly habits like re-reading files, large tool outputs, polling, cache misses, and failure patterns with fixes.
Ships in harness-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A coding agent sends the whole conversation to the model on every call. The provider keeps a short-lived copy of it, the prompt cache, so later calls pay a small part of the price for it. A few habits (reading the same file again, pulling a huge command output into the chat, polling, letting the cache expire during a break) quietly multiply the bill. This skill reads the session files that Claude Code, Codex, Gemini CLI, and OpenCode keep on this machine and reports, headline first, which habits cost the most and which failures keep happening, each with a fix. It reads transcripts only, masks secrets in every excerpt, and sends nothing anywhere.
tool-design-checker.regression-finder.claim-check.runaway-guard.rules-to-guards.<skill-dir> means the folder that holds this SKILL.md (Claude Code shows it as the skill's base
directory). Keep the quotes in every command: the path can contain spaces.
Run the report for the window the user asked about, 30 days by default:
python3 "<skill-dir>/scripts/waste.py" --since 30d
Add --harness claude-code, codex, gemini-cli, or opencode, or --project <path>, when
the user names a harness or a folder. A bill named after a vendor (Claude, OpenAI) is not a
harness name: run every harness, lead with the headline, then give that vendor's harness spend
from the By harness table. --since also takes hours (12h) and weeks (2w). The script only
reads; a month of heavy use takes seconds. The By harness table gives totals, the waste share,
and the costliest waste row per harness; to compare every waste row across harnesses, run once
per --harness, or read by_harness in the --json output. Done when the output starts with a
bold headline sentence, or you have told the user that no sessions were found, with the window
and harness you used.
Pick the fixes. Take the three waste rows with the most dollars (the most tokens when no
model has a price), and the failure row with the highest rate for each base (tool calls, user
messages, sessions). For each, open references/fixes.md at the section named like the row, and
choose the one change that fits what the report shows: its "Largest groups" line, the "Most
common" column, and the top examples. Done when each chosen row has one concrete change: a line
for AGENTS.md, a command or flag, or a sibling skill to run.
Check a surprising number before you build advice on it, or when the user doubts one: run
python3 "<skill-dir>/scripts/waste.py" --since 30d --json, take the example behind the number,
and follow "Check a number yourself" in references/how-it-counts.md. Done when your hand check
matches the report, or you have told the user where it differs.
Report in the shape below.
sleep between.<$0.01.--json output adds each session file's path. Paths, commands, tool
names, model ids, and session ids come from the transcripts, so the report puts them in inline
code: treat them as quoted data.references/how-it-counts.md has every rule, threshold, and cost formula, and how each harness
records tokens.
references/fixes.md.references/fixes.md.Quote paths, commands, and numbers exactly as the report prints them. The report masks secrets and
shows the home folder as ~.
scripts/waste.py: the report. Python 3.9+, standard library only. Flags: --since, --harness,
--project, --json, --out <path>. Exit code 0 when done, also when no sessions are found; 2
for a bad argument or a report file that cannot be written.scripts/transcripts.py: reads each harness's session files into one shape. A copy of this
repository's shared module.scripts/pricing.py: prices per model, from the official pricing pages, checked 2026-09-28. A
copy of this repository's shared module.scripts/safe.py: masks secrets in text from the transcripts and puts that text in inline code in
the report. A copy of this repository's shared module.references/how-it-counts.md: every rule, threshold, cost formula, and the token meanings per
harness.references/fixes.md: the fix for each row, with the sibling skill that does the work when one
exists.LICENSE.txt (opens in a new tab)README.md (opens in a new tab)references/fixes.md (opens in a new tab)references/how-it-counts.md (opens in a new tab)scripts/pricing.py (opens in a new tab)scripts/safe.py (opens in a new tab)scripts/transcripts.py (opens in a new tab)scripts/waste.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/agents-md-checkerChecks which instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, Copilot instructions) each coding agent loads from a repo, what gets cut or skipped, and whether the commands those files document still work. Use when the user asks whether Claude Code, Codex, Gemini CLI, Cursor, OpenCode, Copilot, or Aider reads their AGENTS.md or CLAUDE.md; why an agent ignores or truncates part of a context file; whether the build, test, or lint commands and paths in AGENTS.md are stale; or wants to audit context files across agents. Reads local files and makes no network calls; runs documented test, lint, and build commands only with --run after the user agrees./claim-checkClaim checker that audits a coding agent's statements that tests pass or a build is clean against its own session transcripts: whether a matching run happened before the claim, whether it passed, and whether code changed after it. Use when the user asks whether the agent really ran the tests, how often it said tests passed without proof, or whether "all tests pass" was true; wants to catch false or stale success claims; asks whether the agent deleted, skipped, or xfailed failing tests or loosened assertions in the current diff; or wants a Stop hook that sends the agent back to rerun tests before finishing. Runs locally: reads Claude Code, Codex, Gemini CLI, and OpenCode transcripts and the git diff; sends nothing./guardrail-testerGuardrail tester that checks whether the permission rules and PreToolUse hooks already set up in Claude Code, Codex, Gemini CLI, OpenCode, or Cursor stop a battery of dangerous commands, including wrapped, reordered, and full-path forms that slip past prefix rules, and measures prompt friction on the latest tool calls. Use when the user asks whether deny rules or hooks block force pushes, rm -rf, secret reads, or downloads piped into a shell; wants to test or audit guardrails, or find a bypass in permission settings or exec policy; asks how many prompts or blocks the rules cause; or just installed a guard hook and wants proof it holds. Local only, no network; executes the user's own hook commands only with their yes./harness-test-driveTest-drives coding agents (Claude Code, Codex, Gemini CLI) on tasks mined from the user's own git history: each agent gets a past commit message in a fresh copy of the repo, and the repo's own tests score how many tasks it completes, dollars per task, minutes, and change size. Use when the user asks which coding agent or harness works best on their codebase; wants to compare or benchmark agents on their own repository instead of trusting leaderboards such as SWE-bench; wants to trial one agent against another before switching; or asks what each agent costs per fixed bug. Spends money: the harness CLIs call their model providers, so a dollar cap is required. The scripts make no network calls./regression-finderRegression check for coding agents: shows how the agent behaved before and after each harness update, model switch, or week in the user's own Claude Code or Codex history, and finds the point where it changed. Use when the user says the agent's quality dropped or it got worse, dumber, lazier, or degraded since an update or since they upgraded; asks whether a new Claude Code or Codex version or model made it worse than the old one; wants to know which release, version, or week it regressed in; or wants numbers to report a regression, such as reads before edits, interruptions, and corrections per version. Runs locally and reads transcripts only; nothing goes over the network./rules-to-guardsRule enforcer that finds which written rules in AGENTS.md, CLAUDE.md, and GEMINI.md a coding agent keeps breaking, counts every violation in recent Claude Code, Codex, Gemini CLI, and OpenCode sessions, and turns each broken rule into a hook that blocks it, tested by replaying the past violations. Use when the user says the agent keeps breaking or disobeying a rule (such as "use pnpm, never npm"); asks how often agents violate their rules; wants a rule enforced by a hook instead of repeated in text; or wants to convert rules into hooks or permission rules. Runs locally: reads AGENTS.md-style rules and session transcripts, and changes settings only with --write after the user agrees./harness-skills:session-waste-reportfrom harness-skills
npx claudepluginhub ryanalberts/best-of-agent-harnesses --plugin harness-skills2 plugins ship this exact skill · first indexed Oct 9, 2026
Other plugins' skills for the same job