Agent Waste Lint — Code Quality skill for Claude Code
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
- Brooks Debt — Run a Brooks-Lint tech debt assessment 1.5k ★
- Claude Review Loop — Claude Code plugin: automated code review loop with Codex 589 ★
- Sentry Code Review — Perform code reviews with Sentry patterns 438 ★
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
|
Related Skills
Ccinspect
Linter & runtime auditor for Claude Code configs — 40+ lint rules, write-blindness, agent-bypass, orphan agent
Clawback
Claude Code and Codex hooks kit for verification loops: file protection, post-edit lint, and stop-time checks
Leo Explore Grit Hook Opportunities
Find skill rules that a Grit lint rule or a post-edit hook could enforce, measure existing hits, and propose t
Fix Linter Warnings
Fixes 25 lint issues per batch, uses suppression when needed
Lint Fix
Detect the project linter and type checker, run them, auto-fix all fixable issues, and verify clean output.
Lint Framework
Run framework-linter to detect drift, missing files, malformed specs, rule violations, template drift, and sta
Related Agents
Whites
Pre-PR code review agent. Uses tiered verification (reasoning certificates + batched tool calls) for speed. Pr
10x Tool Calls
Cursor and Windsurf meter usage by requests and tool calls rather than tokens, which means a finished or stall
Cc Orchestration Writer
Creates Claude Code agent orchestration scripts - bash scripts that chain multiple Claude CLI calls with struc