Token telemetry

Know what each task cost. token-telemetry records every turn's and every sub-agent's tokens, and Marvin's reports turn them into cost per issue. It is an optional companion plugin and requires token-telemetry 0.16 or later.

How it works

1 · Capture

Stop and SubagentStop hooks read the session transcript after each turn. Zero model tokens: nothing runs inside the model loop.

2 · Store

A local SQLite database, ~/.claude/telemetry/usage.db. A copy in the project folder, or a Supabase backend, is optional.

3 · Read

The dashboard, /token-telemetry:token-stats, and Marvin's reports, each priced at the rate in force when the tokens were spent.

Install

claude plugin install token-telemetry@emprove

Restart Claude Code afterwards: the capture hooks load at session start, and a session before the restart records nothing. Then opt the project in:

/token-telemetry:enable

It writes a .claude/telemetry marker. Commit it and the whole team records. /token-telemetry:info says whether capture is running.

Everyday use

In Marvin

The seam, cited not restated: token-economics.md.

Where it's absent

Kept current by plugin_autoupdate, like Marvin itself.