A local dashboard that shows how many Claude Code subagents I run, on which projects, and roughly what they cost.

Role

Design and development

Stack

Node.js, node:sqlite, Vanilla JS

Year

2026

Status

Local and safe

Subagent Tracker main screen

The product

Subagent Tracker reads the Claude Code session transcripts already on my machine and shows invocation counts, token use and estimated cost by agent type, project and time window. It runs from a /what-subagents command inside Claude Code.

Nothing leaves the machine. The dashboard is served on localhost only.

The problem

Claude Code has no built in way to see how much you use subagents across projects or what that costs. I wanted to know which agents I actually use and which project drives the spending.

The solution

A sync script scans the subagent transcripts, sums tokens per invocation, prices them from a pricing file and upserts them into a local SQLite database. A small server exposes a JSON API and a plain HTML, CSS and JS frontend with no build step.

It uses Node's built in SQLite module, so there are no external dependencies.

Subagent Tracker interface, screen 1

Outcome

Open source, with eight test files covering sync, pricing, the database and the server.

Next case

AutoDeck