# Session waste report

> Session waste report is an open-source agent skill for developer tools. Finds where your coding agent sessions waste tokens and money, with a fix for each. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/RyanAlberts/best-of-Agent-Harnesses/tree/main/skills/session-waste-report
- **Repository:** https://github.com/ryanalberts/best-of-agent-harnesses
- **GitHub stars:** 1,663
- **License:** MIT
- **Skill name:** session-waste-report
- **Collection:** https://github.com/RyanAlberts/best-of-Agent-Harnesses
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs Python scripts](https://github.com/RyanAlberts/best-of-Agent-Harnesses/tree/HEAD/skills/session-waste-report)
- [Network calls found in its scripts](https://github.com/RyanAlberts/best-of-Agent-Harnesses/tree/HEAD/skills/session-waste-report)
- [License: MIT](https://github.com/RyanAlberts/best-of-Agent-Harnesses/tree/HEAD/skills/session-waste-report)

## Features

- **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

## Install

### Claude Code

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

```sh
/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`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Agent insights](https://ai-powered.com/skills/agent-insights): Agent insights is an open-source agent skill for developer tools.
- [Scan sessions and learn](https://ai-powered.com/skills/scan-sessions-and-learn): Scan sessions and learn is an open-source agent skill for developer tools.
- [Regression finder](https://ai-powered.com/skills/regression-finder): Regression finder is an open-source agent skill for developer tools.
- [GitHub actions efficiency](https://ai-powered.com/skills/github-actions-efficiency): GitHub actions efficiency is an open-source agent skill for developer tools.
- [Runaway guard](https://ai-powered.com/skills/runaway-guard): Runaway guard is an open-source agent skill for developer tools.
- [Harness test drive](https://ai-powered.com/skills/harness-test-drive): Harness test drive is an open-source agent skill for developer tools.
- [Ecc tools cost audit](https://ai-powered.com/skills/ecc-tools-cost-audit): Ecc tools cost audit is an open-source agent skill for developer tools.
- [Cost aware LLM pipeline](https://ai-powered.com/skills/cost-aware-llm-pipeline): Cost aware LLM pipeline is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/session-waste-report
