Blackbox
Flight recorder for AI agents, with per-call cost replay
Features
- Replays one agent run step by step, with a spend line that climbs as it plays
- Splits the input of each LLM call into full-price and cached tokens
- Prices every call again on any OpenRouter model; the hatched band is the saving
- Five waste checks, each with its steps and an estimated saving
- Overlapping findings combine in sequence. They are never added up directly
- Sets a different model for one step only, and puts it back in one click
- Reads Claude Code and Codex sessions, OpenTelemetry JSON and chat lines
- Keeps the recorded token counts when it prices a run again. It does not guess
- Runs in your browser: no account, no upload
Pin configuration and functions
D package, 10-pin, top view
| Pin | Name | I/O | Description |
|---|---|---|---|
| 1 | ADAPT | I | Trace parsers and trace clean-up lib/adapters.ts |
| 2 | COST | I/O | Prices and cost math lib/cost.ts |
| 3 | FIND | O | The five waste checks lib/findings.ts |
| 4 | MODEL | I | OpenRouter model list, cached for one hour, with a saved copy as a fallback lib/models.ts |
| 5 | FEAT | I | The models the Compare list shows first, from OpenRouter usage rankings lib/featured.ts |
| 6 | BENCH | I/O | The replay: state, playback and the keyboard map components/Workbench.tsx |
| 7 | REC | O | Spend line, input bars and step timeline components/Recorder.tsx |
| 8 | PANEL | O | Side panel: Compare models, Waste and Step components/Panel.tsx |
| 9 | CMD | I | Command menu, shortcut sheet and tooltips components/Commands.tsx |
| 10 | POP | I/O | The select and the model picker components/Popover.tsx |
Electrical characteristics
Limits and thresholds as the README states them. The README gives no timings, so this table has none.
| Parameter | Test conditions | Min | Typ | Max | Unit |
|---|---|---|---|---|---|
| Input | |||||
| Trace sizeOne trace file | One trace file | – | –≤ 250 | 250 | MB |
| Trace formatsFound from the file content, not the file name | Found from the file content, not the file name | – | 55 | – | formats |
| Agent sessionsRead from your own disk | Read from your own disk | – | Claude Code, CodexClaude Code, Codex | – | – |
| Time unitsTrace timestamps; every trace moves to start at zero | Trace timestamps; every trace moves to start at zero | – | s or mss or ms | – | – |
| Waste checks | |||||
| ChecksRun on every trace | Run on every trace | – | 55 | – | checks |
| Repeated tool callSame tool, same arguments | Same tool, same arguments | 3 | –≥ 3 | – | calls |
| Tool definitionsShare of the input, on every call | Share of the input, on every call | – | 88(1) | – | % |
| Costly modelInput price per 1M tokens, on a call with no tools | Input price per 1M tokens, on a call with no tools | 1.50 | –≥ 1.50 | – | $ |
| Short answerOutput of the same call | Output of the same call | – | –≤ 40 | 40 | tokens |
| Pricing | |||||
| Price list refreshServer, OpenRouter price list | Server, OpenRouter price list | – | 11 | – | h |
| Compare list windowMost used models on OpenRouter | Most used models on OpenRouter | – | 44 | – | weeks |
| Answer qualityA cheaper model can give worse answers | A cheaper model can give worse answers | – | Not measuredNot measured | – | – |
| Supply | |||||
| BunTo run it on your computer | To run it on your computer | 1.4 | –≥ 1.4 | – | – |
| Account, uploadEverything runs in the browser | Everything runs in the browser | – | NoneNone | – | – |
(1) Flagged when the tool definitions are more than this share of the input on every call.
Every value on this page is from the project README.
Application circuit
Figure 2. SRJT-002 Typical Application: trace in, priced replay out
Ordering information
| Orderable part | SRJT-002 BLACKBOX |
|---|---|
| Status | Active |
| Package | Browser |
| Live | blackbox.srijit.me |
| Source | github.com/DevSrijit/blackbox |
| License | MIT |
| Build | Next.js 16, React 19, Tailwind CSS 4 and Motion. |