Jorge Turbica / blog · Blog ← All articles ES · Leer en español
AI

Repo of the day: coding.sh, a local flight recorder for your coding agents, with costs and evals

Records every prompt, tool call, diff and cost from Claude Code, Codex and other agents on your machine, and turns failures into replayable evals.

316 stars and 21 forks since it went public on November 7, 2026, with commits up to November 29: coding.sh is finding its audience among people who work with coding agents every day. The pitch is easy to explain: record on your own machine every prompt, model call, tool call, file change and cost from your Claude Code, Codex and similar sessions, and turn the ones that went wrong into evals.

What it is and how it works

coding.sh is a Node CLI (22.16 or newer, no runtime dependencies), MIT-licensed. Its init command finds the agents you have installed, points their hooks at coding.sh, registers an MCP server where the agent supports it and backs up every config file it edits. From then on each new session is written to a local spool and then indexed in SQLite, with latency, tokens and estimated cost.

On top of that index it offers four layers:

  • Read: a local web viewer, full-text search and commands such as sessions, usage or diff-calls, which shows what changed between two model calls and why the cache missed.
  • Measure: turns, tools, tokens and outcome per session. It flags sessions that edited code and never ran a check.
  • Evaluate: eval new turns a failed session into a replayable eval, and exp compare A/B tests prompts, harness files or models with paired statistics.
  • Production: coding.sh serve combines ingest, viewer and API on one port, backed by SQLite, Postgres or ClickHouse, with SDKs for TypeScript and Python.

It also accepts OpenTelemetry from any agent framework through coding.sh collector, so it is not limited to terminal agents.

Using it

bash
# Print the plan without writing anything
npx coding.sh init --dry-run --diff

# Set up hooks and MCP, importing past sessions
npx coding.sh

# Query
coding.sh usage --by model
coding.sh search "rate limit"
coding.sh ui

The README also offers curl -fsSL https://coding.sh/install | sh. I'd rather use npx or npm install -g coding.sh and always start with --dry-run --diff: the tool is going to edit the hook config of every agent you have, and you want to see exactly what changes. coding.sh uninstall removes the hooks and MCP entries.

What I like and what I don't

I like that the design starts from privacy. With no remote sinks configured, no session data leaves the machine; the only default network request is a daily update check, which CODING_SH_NO_UPDATE_CHECK=1 turns off. Secrets are redacted at ingest, and remote sinks only get metadata unless you opt in to full content. I also like that the README is upfront about what has and hasn't been tested: Claude Code, Codex CLI and Antigravity CLI are verified on real sessions; Cursor CLI, Amp and Devin CLI have never been run against a live install.

I'm less keen on a detail the README itself documents: on Linux and macOS the POSIX hook writes the agent payload to ~/.coding.sh/spool unredacted, to stay fast. The file is mode 600 and ingest redacts it later, but for a while prompts and tool output sit on disk in plain text. If your sessions touch credentials, keep that in mind. It is also a pre-1.0 (0.1.8), single-author project: expect rough edges.

coding.sh versus Claude Code's native telemetry

Until now, the way to see what your agents did was their own telemetry. Claude Code, for example, exports OpenTelemetry metrics and events once you set CLAUDE_CODE_ENABLE_TELEMETRY=1, covering cost, tokens, lines changed and edit decisions, but it needs a collector and a backend and leaves prompt content out by default.

coding.shClaude Code OTel telemetry
ApproachFull session record plus evalsMetrics and events for monitoring
AgentsClaude Code, Codex, OpenCode, Copilot CLI and moreClaude Code only
DeploymentLocal (SQLite) or self-hosted serverNeeds an OTLP collector and backend
ContentPrompts and diffs, secrets redactedRedacted by default, opt-in
License and maturityMIT, 0.1.8Part of Claude Code, documented

When to use which. If you run the platform and want team-wide cost and usage dashboards in Grafana or your usual backend, native OTLP telemetry is the stable option and can be managed centrally. If you are the one working across several agents and want to understand why a session was expensive or went wrong, and turn that failure into a test for your next prompt or model change, coding.sh gives you something telemetry doesn't: the session itself, searchable and replayable.

Sources

Jorge Turbica

Software Engineer and SRE. I write about the real challenges I run into in production.

See portfolio ↗