← ClaudeAtlas

erebor-ledgerlisted

Token/cost-savings ledger for tlor-orchestration dispatching — reports how much dispatching to tlor roles saved versus running the same work inline on the orchestrator model, split by Fable-5-orchestrator sessions vs Opus-orchestrator sessions. Triggers: "usage report", "省了多少 token/成本", "dispatch savings". Not for live cost estimation of a single in-progress dispatch — this is a retrospective report over existing Claude Code transcripts.
twjohnwu/tlor-orchestration · ★ 0 · AI & Automation · score 72
Install: claude install-skill twjohnwu/tlor-orchestration
# Erebor Ledger (寶庫清點 — dispatch token/cost savings report) > Named for the dwarves' vaults under the Lonely Mountain, where every coin > is counted. This skill counts not gold but tokens: how much a dispatch to > a tlor role actually cost, versus what it would have cost the > orchestrator to do the same work inline. ## Purpose Answers two independent questions, never merged: 1. When **Fable 5** is the orchestrator (main-session model), how much did dispatching to tlor-orchestration save versus doing the work inline? 2. When **any Opus version** (excluding Fable 5) is the orchestrator, what's the same answer? Fable 5 and Opus have different unit prices and token-consumption patterns — averaging them across groups would distort the savings estimate, so each group gets its own report and its own totals. ## Data sources Reads Claude Code transcript JSONL directly — no external API, no network call: - **Main-session transcript**: `~/.claude/projects/<proj>/<sessionId>.jsonl` - **Subagent transcripts**: `<sessionId>/subagents/agent-<agentId>.jsonl` + `agent-<agentId>.meta.json` (the `agentType` field maps a subagent transcript back to the role name it was dispatched as) - Per assistant record: `.message.model` and `.message.usage.{input_tokens,output_tokens,cache_creation_input_tokens, cache_read_input_tokens}` - `.message.model == "<synthetic>"` records are excluded from every total — they are never billed and never counted These are internal Claude Code