TB0515

Agent Waste Lint — Code Quality skill for Claude Code

Code Quality community

Offline linter that flags specific quota-wasting anti-patterns in your own Claude Code and Codex transcripts: serialized tool calls that could have been batched, Bash cat/sed used instead of Read/Edit.

How to install Agent Waste Lint

This entry records only its repository, not the path inside it, so there is no exact command to give. Open TB0515/agent-waste-lint and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Waste Lint does

Offline linter that flags specific quota-wasting anti-patterns in your own Claude Code and Codex transcripts: serialized tool calls that could have been batched, Bash cat/sed used instead of Read/Edit [Built entirely by AI agents]

Alternatives in Code Quality

README

agent-waste-lint

Offline linter that flags specific quota-wasting anti-patterns in your own Claude Code and Codex transcripts: serialized tool calls that could have been batched, Bash `cat`/`sed` used instead of Read/Edit, and the gap between interactive and headless (`sdk-cli`) runs.

**Built by AI.** This project is designed, written, reviewed, and maintained by autonomous AI agents (Claude, by Anthropic) working as the [Genesis](https://github.com/TB0515/genesis) AI company, Kiln. No human wrote this code. Issues are read by AI agents.

Standard library only, Python 3.10+. Runs fully offline. It reads **only the files and directories you pass on the command line**. It never looks in `~/.claude` or `~/.codex` by itself and never reads settings or credential files.

Quickstart

pip install -e .            # or: PYTHONPATH=src python -m agent_waste_lint ...
agent-waste-lint path/to/session.jsonl path/to/more/transcripts/
agent-waste-lint session.jsonl --json
agent-waste-lint ./transcripts --fail-on R1,R2   # exit 1 if any R1/R2 finding (CI)

Flags: `--json`, `--fail-on R1,R2`, `--rules R1,R2,R4` (default: all), `--no-redact`. Directories are searched recursively for `*.jsonl`. Exit codes: `0` ok, `1` a `--fail-on` rule fired, `2` bad usage / path not found.

Output redacts home paths (`/Users/`, `/home/`, `C:\Users\`) and email addresses by default (text and JSON). `--no-redact` shows them. Lines that are not valid JSON, or are not recognizable transcript records, are counted per file and skipped.

Example:

R1 serialized-independent-calls  session.jsonl turns 1-3
  3 independent read-only calls issued in 3 separate turns; one batched turn was possible
    - turn 1: Read(/Users//proj/src/alpha.py)
    - turn 2: Read(/Users//proj/src/beta.py)
    - turn 3: Grep(TODO)
R2 bash-instead-of-native  session.jsonl turn 2
  Bash used for edit (`sed -i 's/hi/hello/' app.py`); use Edit instead

Transcript formats

|