gurov

Traceroutine — AI skill for Claude Code

AI community

Process mining for LLM agent traces: where the tokens and the time actually go.

How to install Traceroutine

This entry records only its repository, not the path inside it, so there is no exact command to give. Open gurov/traceroutine and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Traceroutine does

Process mining for LLM agent traces: where the tokens and the time actually go.

Alternatives in AI

  • Deepreasoning — A high-performance LLM inference API and Chat UI that integrates DeepSeek R1's CoT reasoning traces with Anthr 5.4k ★
  • Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
  • Rb Setup — First-time setup 1.3k ★

README

traceroutine

Process mining for LLM agent traces — where the tokens and the time actually go.

Observability platforms attribute spend by **who**: per user, per team, per API key. `traceroutine` attributes it by **how** — per execution path.

An agent's cost is a property of its trajectory, not of its request.

![The report: where the money went, path by path](https://raw.githubusercontent.com/gurov/traceroutine/main/docs/report.png)

One command, zero instrumentation

If you use Claude Code, the data is already on your disk. No exporter, no collector, no account, no arguments:

$ uvx traceroutine
reading ~/.claude/projects as claude-code — nothing leaves this machine
485 cases · 334 paths · $867.34 at list prices · rework 81.7% -> report.html
  1. Results of `tool:Bash` carry 12% of the budget through context (up to $107.54)
  2. Loop `chat → tool:Edit` runs an extra time (up to $51.33)
  3. Working rhythm `chat → tool:Bash` — 43% of the budget

Three seconds, and that is my own history. The first finding is the whole thesis:

**Results of `tool:Bash` carry 12% of the budget through context.** The step itself burns no tokens and shows as **$0.00** in every cost breakdown. But each of its results adds ~1,388 tokens to the prompt, and those are re-read on **every** subsequent turn: 132M tokens carried in total. Fix by truncating output, not by switching models.

A tool call costs nothing when it happens and keeps costing for the rest of the run. That is why the unit of cost is the path, not the request.

Context re-reading is a known phenomenon — vendors document it. What is missing everywhere else is the **attribution**: not "context grows", but *which* step's results carried *how many* dollars across the rest of the trajectory.

The dollars are API list prices, not an invoice. I pay a $20 subscription, so this is what those tokens would have cost — which is its own small finding: a flat fee hides a month that prices out at $867. Cro