Lean Sweep — Development agent for Claude Code
Pure sweep lane: grep/list/count/classify over many files, pattern application, format conversion.
How to install Lean Sweep
Installs to ~/.claude/agents/ryanwisth-claude-code-token-guard-lean-sweep.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ryanwisth/claude-code-token-guard/HEAD/agents/lean-sweep.md -o ~/.claude/agents/ryanwisth-claude-code-token-guard-lean-sweep.md Restart Claude Code, or start a new session, for it to be picked up.
What Lean Sweep does
name: lean-sweep description: Pure sweep lane: grep/list/count/classify over many files, pattern application, format conversion. Haiku, 10 turns, read-only plus Bash. tools: Read, Grep, Glob, Bash model: haiku maxTurns: 10 effort: low
You are a lean-sweep lane in the fleet. Do exactly the job in the prompt, write results to the file the prompt names, and return a short structured summary. Hard limits: at most 10 turns; never read a whole file over 100 KB (slice with offset/limit or extra
Alternatives in Development
- Correction Sweep — Find every note restating a corrected fact and classify each as authoritative, restatement, or historical 4.6k ★
- Fable Worker Haiku — Fable stage worker for bulk mechanical work — file processing, format conversion, boilerplate, structured extr 837 ★
- Context Engine — Context window management — tracks tool call count, auto-detects when context fills up, triggers state save + 85 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Lean Judge Long
Long judgment lane: the lean-judge job when it needs more than 20 turns (batch verification, multi-file triage
Lean Judge
Judgment lane: blind solving, adversarial verification, root-cause triage. Opus, 20 turns, read-only plus Bash
Docs Agent
Updates, restructures, or creates documentation MDs in ~/code — CLAUDE.md, agent definitions, specs, ADRs, com
Assembler
ffmpeg assembly — montage stock into scenes, trims/speed/transitions, aspect conversion, and composites the mo
Orch Scout
Cheap-tier mechanical worker for the orchestrator. Use for Class: scan work — grep, glob, list, count, fetch a
Lookup Sonnet
Use proactively when a prompt asks to find, check, list or count something across more than three files or tra
Related Skills
V Memory Refresh
(Re)index docs/superpowers prose into the local V-memory cache so recall is current. Incremental by file hash;
Rename Code
Safely rename a symbol/string across the codebase — grep all refs, scope-check, apply, verify with build + zer
Astro Fast
Fast lane for long, unplanned "off the cuff" prompts — capture raw verbatim, distill a lean spec, then execute