Traceburn, a local profiler that found 69% avoidable agent spend Developer Tommy Tran released Traceburn, a local-first tracer and efficiency profiler for AI agents, which identified 69% avoidable spend in a test run by suggesting prompt caching. The open-source tool, built on OpenAI and Anthropic SDKs, provides cost flamegraphs, waste reports, and deterministic replay without telemetry. I wrote a small support ticket triage agent: five tickets, one tool call each, a roughly 4,700 token static policy prompt sent fresh on every call, model claude-haiku-4-5. Running it uncached cost $0.0539. traceburn's waste report looked at the trace, noticed that same 4,700 token prefix going out uncached on all 10 calls, and estimated that about 82 percent of that spend was avoidable. So I added exactly the one cache control block it suggested and reran the same five tickets: $0.0167. That's a 69 percent measured saving. The tool's estimate landed within 18 percent of what actually happened, close enough to trust as a first signal, not close enough to treat as gospel. That's roughly how I want a cost estimator to behave. Prices change and models get repriced, so do not take my word for it: the reproduction is a few cents and a couple of minutes, at examples/cache before after.py https://github.com/TommyTranX/traceburn/blob/main/examples/cache before after.py . Measured 2026-07-05. That's the whole pitch in one run. traceburn is a local-first tracer and efficiency profiler for AI agents, built on top of the openai and anthropic Python SDKs: a cost and latency flamegraph, a waste report that quantifies avoidable spend instead of just gesturing at it, deterministic replay of recorded calls, and run diffs, all backed by one SQLite file on disk. No account, no server to stand up for basic use, no telemetry leaving your machine. Core tracer, stdlib only, zero dependencies: pip install traceburn Tracer plus the local web viewer adds starlette and uvicorn : pip install "traceburn ui " Requires Python 3.10 or later. Patch the SDKs at the top of your agent: python import traceburn traceburn.install your existing openai / anthropic code, unchanged Every sync call, async call, streaming response, tool call, and prompt cache hit on either SDK now gets recorded as a span. Traces live in one SQLite file, ./.traceburn/traces.db by default; set the TRACEBURN DB environment variable if you want it somewhere else. If you'd rather not touch the source at all, wrap the run instead: TRACEBURN=1 python your agent.py Then look at what happened: traceburn ui opens the web viewer at 127.0.0.1:8765 traceburn ls list recorded traces traceburn show