Skip to content
Skill

Session waste report

Finds where your coding agent sessions waste tokens and money, with a fix for each

Session waste report is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
Python
Platforms
Claude Code, Codex, Cursor
GitHub stars
1.7K
Last commit
License
MIT
Listing updated

Similar skills

About Session waste report

This skill reads the local session transcripts kept by Claude Code, Codex, Gemini CLI and OpenCode and builds a report of where spend went. It ranks waste such as re-reading unchanged files, oversized tool outputs, polling loops and prompt-cache rebuilds after long pauses, and it also counts failures like tool errors, permission denials, interrupts and corrections. Each category comes with a suggested change.

A bundled Python script does the analysis using only the standard library. It prices model calls at published API list rates, reports the share of cost spent in subagents, and lists the largest groups of oversized results. The workflow asks the agent to run the script for a chosen time window, optionally narrowed to one harness or project, then pick the fixes that match the largest waste rows.

It needs Python 3.9 or newer and reads plain local files only. Output masks secrets and nothing is sent over the network. Dollar figures are list prices, so they show relative cost rather than a subscription bill.

When your agent uses it

Waste report for coding-agent sessions in Claude Code, Codex, Gemini CLI, and OpenCode: finds where tokens, money, and time were wasted, and the fix for each kind of waste. Use when the user asks where tokens or money went or why the bill is so high; about habits that burn tokens, such as re-reading a file that has not changed, huge tool outputs, polling, or cache misses from pauses; about the subagent share of cost; or for failure patterns across sessions: tool errors, permission denials, interrupts, corrections, and repeated calls. Runs locally and reads transcripts only; nothing goes over the network.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 9 files (168 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the harness-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add RyanAlberts/best-of-Agent-Harnesses
/plugin install harness-skills@agent-harnesses

Or copy only this skill to ~/.claude/skills/session-waste-report:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/session-waste-report &&
cp -R "$tmp/skills/session-waste-report" ~/.claude/skills/session-waste-report &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/session-waste-report inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/session-waste-report to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/session-waste-report &&
cp -R "$tmp/skills/session-waste-report" ~/.agents/skills/session-waste-report &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/session-waste-report inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/session-waste-report to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/session-waste-report &&
cp -R "$tmp/skills/session-waste-report" ~/.cursor/skills/session-waste-report &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/session-waste-report inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/RyanAlberts/best-of-Agent-Harnesses.git --path skills/session-waste-report

Or copy the folder to ~/.gemini/skills/session-waste-report yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/session-waste-report:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/session-waste-report &&
cp -R "$tmp/skills/session-waste-report" ~/.copilot/skills/session-waste-report &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/session-waste-report inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/RyanAlberts/best-of-Agent-Harnesses.git

Then copy best-of-Agent-Harnesses/skills/session-waste-report into your agent's skills folder as session-waste-report. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Waste ranking by cost
Ranks habits such as re-reads, oversized results and cache rebuilds by dollars or tokens.
Failure pattern counts
Tallies tool errors, permission denials, interrupts and corrections as rates per activity.
Subagent cost share
Shows how much of total spend went to helper conversations started for side tasks.
Per-harness breakdown
Reports totals and the costliest waste row separately for each supported harness.
Matched fix suggestions
Pairs each waste or failure row with a concrete change to make.
Local-only transcript reading
Reads session files on the machine and makes no network calls, masking secrets in excerpts.

Good for

  • Find out why my coding agent bill jumped this month
  • Show which files I keep re-reading across sessions
  • Check how much cost came from subagent conversations
  • List the tool commands that produce the largest outputs
  • Count permission denials and interrupts across recent sessions

Session waste report FAQ

What does Session waste report need to run?

Python 3.9 or newer, with no extra packages. It reads the session files already on your machine.

Does Session waste report send my transcripts anywhere?

No. The skill states that it runs locally, reads transcripts only and makes no network calls.

Can I limit the report to one tool or folder?

Yes. You can pass a harness name such as claude-code or codex, or a project folder, and choose a time window like 30 days or 12 hours.

Are the dollar amounts my actual bill?

No. Dollars are API list prices, so on a subscription plan they show relative cost only.

Which harnesses are supported?

Claude Code, Codex, Gemini CLI and OpenCode. The skill notes that OpenCode support has not been checked on a real install.

How do I install Session waste report in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/session-waste-report to use it in all your projects, or to .claude/skills/session-waste-report in one project. Or install the harness-skills plugin, which includes it: /plugin marketplace add RyanAlberts/best-of-Agent-Harnesses, then /plugin install harness-skills@agent-harnesses.

Does Session waste report run scripts?

Yes. It runs Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Session waste report?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Session waste report?

The closest alternatives to Session waste report are Agent insights, Scan sessions and learn, Regression finder, GitHub actions efficiency and Runaway guard.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from RyanAlberts/best-of-Agent-Harnesses

  1. Shows which instruction files each coding agent loads and whether documented commands

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  2. Audits an agent's claims that tests or builds passed against its session transcripts

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  3. Checks if your agent's deny rules and hooks really block dangerous commands

    • Open source
    • 1.7K GitHub stars
    • Security
  4. Benchmarks Claude Code, Codex and Gemini CLI on tasks from your own git history

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  5. Finds the Claude Code or Codex update where your agent's behavior started to change

    • Open source
    • 1.7K GitHub stars
    • Developer tools
  6. Finds the rules your coding agent keeps breaking and turns them into blocking hooks

    • Open source
    • 1.7K GitHub stars
    • Developer tools