Shown·Claude Code, Codex, Cursor, GitHub Copilot agent
Leaner code from coding agents
Lessloc is a hook-based tool that keeps coding agents like Claude Code and Codex to the least code that works.
On 117 real changes across 3 open-source projects judged by hidden tests, it cut code by 27% and cost by 23% with the same results.
Overview
How it was set up
Tell your agent to follow the install.md URL, or use the Claude Code plugin commands. It runs through the agent's own hooks, with no API key or model calls.
Worth knowing
The README headline claims up to 36% less code and 26% lower cost, while the measured 117-change run shows 27% and 23%.
A prompt to start from
Install lessloc for this project by following https://lessloc.org/install.md
Written by Agentic Feats from the source. Not the author's exact prompt.
Sources 1
History
- Source published
- 2026-10-19
- Added to Agentic Feats
- 2026-10-26
- Pick
- No
- Markdown copy
- /c/leaner-code-from-coding-agents-claude-code.md
More in setup and meta
38 featsResultTickets run unattended with per-turn cost receipts; one ticket reached $402 over nine runs before the cost showed in the app, which prompted a fix.
ResultEight identical TypeScript checks dropped from 22.32 s to 4.46 s on an M1 Pro, and digests cut context by about 97%.
ResultA demo shows Claude building the bat project (223 crates) with a single bar that fills during the build and turns green when done.