HEAD [9f8a2b] LIVECLAUDE_FORK: 142k TOKENSDIFF: +182 / -12 SURVIVINGSQLITE_LEDGER: $72.96ORIGIN/MAINSYNC_STATUS: MONOTONIC
Back to Overview
DECK 02 · CLAUDE CODE FORENSICS · DETERMINISTIC GIT AUDIT

You know what
Claude Code billed.
Flightdeck proves what survived in HEAD.

Cloud usage meters only count API tokens passed through Anthropic servers. Flightdeck cross-references local session transcripts with your git working tree to prove real code survival.

LOCAL SQLITE LEDGER·ZERO INVENTIONS·100% PRIVATE & ON-DEVICE
SCROLL FOR OUTCOME ENGINE
100% Client-Side · Zero Cloud Upload · Instant Local Audit

Live Claude Transcript Forensics Dropzone

Drag and drop a real session transcript from ~/.claude/projects/ or try sample data to test code survival calculation.

TRY SAMPLES:
Drop Claude transcript file here, or browse file
Supports .json, .jsonl, .txt files from Claude Code, Aider, or Cline
sample_refactor_session.jsonHIGH SURVIVAL
Refactor Auth Middleware & JWT Verification
TOTAL INVOICE
$14.80
EFFECTIVE SURVIVAL
83.4%
TOKENS PROCESSED
68,400
Claude 3.7 Sonnet
LINES SURVIVING IN HEAD
+342
Committed & durable
ROLLBACK CHURN
-68
Discarded iterations
COST PER SURVIVING LINE
$0.043
True realized unit cost
Flightdeck Local Audit: 342 of 410 generated lines remain committed in HEAD with zero regression rollbacks.

Deck 02 · Claude Code Forensics → Outcome Engine

Cost Per Outcome, Measured Against Your Actual Repository.

Flightdeck matches every file a session touched against git: still in HEAD, written but reverted, or gone. Then it divides the session's real spend by what actually survived.

Deterministic Outcome Pipeline · Live FlowGit SHA: 41d7a11b → HEAD
Stage 01
Claude Session Spend
$72.96

48 conversation turns · 55 files staged in buffer.

Stage 02
Local NVMe Verification
55 Files Tracked

Matched against local repository working tree on disk.

Stage 03
Survival in git HEAD
96.4% Kept ($2.35/file)

53 surviving files retained across subsequent commits.

Live attribution audit running silently on your machine.
Zero telemetry sent to cloud

Git HEAD Correlation

Cloud usage meters only see prompt tokens in transit. Flightdeck cross-references session transcripts with your working tree commits to prove whether Claude's code made it to production or died in a rebase.

Exact commit SHA linkage

The 200% Billing Trap

Claude Code records cumulative turn cost snapshots, not deltas. Third-party extensions that sum these turn figures double your real invoice ($145.93 vs true $72.96). Flightdeck's parser mathematically dedupes snapshot intervals.

Corrected against Anthropic billing

CLAUDE.md Churn Signals

When an agent repeatedly rewrites the same Swift or TypeScript file across sessions, it isn't making progress — it lacks context. Flightdeck pinpoints these churn hotspots so you can add high-leverage architectural rules.

Eliminate loop cycles
CLAUDE_FORENSICS // CODE SURVIVAL & ROI SIMULATOR
DETERMINISTIC GIT ANALYSIS
$120 / mo
$20 (Indie)$200 (Pro)$600+ (Team)
88% in HEAD
50% (High Churn)85% (Average)99% (High Precision)
Surviving in HEAD$105.60Production code retained
Churn & Waste$14.40Discarded turns & reverts
Cost Per Surviving File$2.40Across ~50 created files
Naive Cloud Sum$222.00+85% cumulative overcount

Why naive tools overcharge: Standard cloud calculators blindly sum cumulative token counters across CLI turns. Flightdeck extracts the raw SQLite turn deltas and correlates them with git log to attribute value solely to surviving assets.

Deterministic Attribution Matrix

How Flightdeck attributes every cent without extrapolation or guessing.

SQLite Local Ledger
1. Code Survival Ratio

Calculated by executing a git blob existence check on every path touched by the session. If a file was written in turn 4 but deleted in turn 12, it is attributed as session churn.

2. Waste Diagnostic

Flags conversation threads where context ceilings forced repeated re-reading of source trees, or where failed tool calls generated billed tokens without writing persistent code.

3. Churn Signals

Highlights files modified repeatedly across distinct sessions. This directly informs where your repository lacks clear architectural documentation or needs a targeted CLAUDE.md rule.

4. Rate Limit Reset Countdowns

Tracks the real 5-hour and 7-day rate consumption read directly from Claude Code's local cache on disk, complete with exact reset countdown timers.