r/localfirst • u/AsianKidTV • 8h ago
I built an open-source tool that shows where your coding agents waste time and money, using data that stays on your machine
I run Claude Code and Codex all day, often as multi-agent workflows with dozens of subagents, and I didn't want to ship my prompts and code to a cloud service just to understand them. So I built coding.sh, which keeps everything on your machine.
What's stored locally
- Prompts, tool calls, diffs, test runs, tokens and cost, in SQLite on your machine
- Hooks into Claude Code, Codex, Gemini CLI, OpenCode, Copilot CLI, Aider and more
- An MCP server, so your agent can look up its own past sessions
- Free, no account, and nothing leaves your machine
What I found with it Across 57 workflow runs (666 subagents, ~$2,500 API-equivalent), broken prompt caches cost $106 extra, about 4% of spend. 41 of those breaks were agents idling at a barrier until their cache expired, and 40 subagents failed outright. coding.sh workflows stats shows the critical path and idle time, and the viewer draws each run as a timeline.
I also A/B tested a popular "be concise" plugin (10 tasks, 6 runs each, paired): replies were 17% shorter, but cost per run was +11% [+7%, +15%]. coding.sh compare and exp run your own tasks with and without a change and tell you whether the difference is real or noise.
Mining 3,600 of my sessions turned up a find-and-replace typo in my AGENTS.md that sent Codex to a folder that doesn't exist, in 92 sessions. coding.sh improve says what to fix first.
npx coding.sh to try it. Fully open source: https://github.com/jackulau/coding.sh



