Blackbox

SRJT-002

A flight recorder for AI agents.

Status
Active
Package
Browser
Live
blackbox.srijit.me

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

1ADAPT2COST3FIND4MODEL5FEAT6BENCH7REC8PANEL9CMD10POP

D package, 10-pin, top view

PinNameI/ODescription
1ADAPTITrace parsers and trace clean-up lib/adapters.ts
2COSTI/OPrices and cost math lib/cost.ts
3FINDOThe five waste checks lib/findings.ts
4MODELIOpenRouter model list, cached for one hour, with a saved copy as a fallback lib/models.ts
5FEATIThe models the Compare list shows first, from OpenRouter usage rankings lib/featured.ts
6BENCHI/OThe replay: state, playback and the keyboard map components/Workbench.tsx
7RECOSpend line, input bars and step timeline components/Recorder.tsx
8PANELOSide panel: Compare models, Waste and Step components/Panel.tsx
9CMDICommand menu, shortcut sheet and tooltips components/Commands.tsx
10POPI/OThe 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.

ParameterTest conditionsMinTypMaxUnit
Input
Trace sizeOne trace fileOne trace file––≤ 250250MB
Trace formatsFound from the file content, not the file nameFound from the file content, not the file name–55–formats
Agent sessionsRead from your own diskRead from your own disk–Claude Code, CodexClaude Code, Codex––
Time unitsTrace timestamps; every trace moves to start at zeroTrace timestamps; every trace moves to start at zero–s or mss or ms––
Waste checks
ChecksRun on every traceRun on every trace–55–checks
Repeated tool callSame tool, same argumentsSame tool, same arguments3–≥ 3–calls
Tool definitionsShare of the input, on every callShare of the input, on every call–88(1)–%
Costly modelInput price per 1M tokens, on a call with no toolsInput price per 1M tokens, on a call with no tools1.50–≥ 1.50–$
Short answerOutput of the same callOutput of the same call––≤ 4040tokens
Pricing
Price list refreshServer, OpenRouter price listServer, OpenRouter price list–11–h
Compare list windowMost used models on OpenRouterMost used models on OpenRouter–44–weeks
Answer qualityA cheaper model can give worse answersA cheaper model can give worse answers–Not measuredNot measured––
Supply
BunTo run it on your computerTo run it on your computer1.4–≥ 1.4––
Account, uploadEverything runs in the browserEverything 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

U1BLACKBOXTrace adaptersCost mathFive waste checksU2REPLAYSpend lineStep timelineJ1TRACE INTRACEMODELCOSTPRICEJ2OPENROUTER PRICES, 1 hSteps and costrecorded tokensMODEL SWAP · PRICE AGAINDS1J1TRACE IN, UP TO 250 MBSession JSONL, OTel JSONU1BLACKBOXTrace adaptersOpenRouter prices, 1 hFive waste checksSteps and cost per callU2REPLAYSpend lineStep timelineDS1DISPLAYMODEL SWAP · PRICE AGAIN

Figure 2. SRJT-002 Typical Application: trace in, priced replay out

Ordering information

Orderable partSRJT-002 BLACKBOX
StatusActive
PackageBrowser
Liveblackbox.srijit.me
Sourcegithub.com/DevSrijit/blackbox
LicenseMIT
BuildNext.js 16, React 19, Tailwind CSS 4 and Motion.