subagent-ledger

Reviewed at commit 0e4c0dd New version, not yet reviewed

Shows each subagent of the session with its turns, time, model and tokens, the costliest first, yellow while it runs and green once it answered, and marks one…

Made by
Kerem Gok
What we checked

Lists each subagent of your session with its turns, time, model and token counts, the costliest first, in a sidebar section or on the status line. It only reads the usage figures Claude Code reports for subagent turns, makes no network calls, reads no files and runs no programs; it stores an on/off switch and a token limit.

Review details

Static review of the source at the pinned commit; not run. Registers hooks for session.start, agent.spawn, turn.step, turn.complete and the command.run of its own /subagent-ledger command (status, on, off, limit <k>). Runtime calls: $.sidebar.set and $.sidebar.clear (the shared sidebar mod, falling back to $.ui.status when it is not installed), $.store.get and $.store.set for the enabled flag and the limit (1 to 10000 thousand tokens, validated, default 200), and $.command.register. Per subagent it keeps the type, description, model, turn count, duration and token usage in memory only, and colours a row red at or past the limit. turn.step runs on every model request but only marks a row as running and reads no store. No fetch, no $.process, no $.fs, no environment access, no model calls. The two other files in the folder (eslint.config.js, Makefile) are not loaded by the hooks and were not read. The npm packages in package.json are dev tooling only (eslint, typescript) and are not imported by the hooks.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

Shows each subagent of the session with its turns, time, model and tokens, the costliest first, yellow while it runs and green once it answered, and marks one that passed the token limit.

Made this mod? Add a badge to your README

modsforClaude badge for subagent-ledger

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/subagent-ledger.svg)](https://modsforclaude.com/mods/subagent-ledger/)

← All mods