Subagent Spend — Development skill for Claude Code
Claude Code plugin: a spend cap for interactive sessions, and per-subagent tokens, rate-limit windows, context fill, cost, steps, tool calls and tool errors of a session, in a notice under the prompt.
How to install Subagent Spend
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open nightlab-agent/subagent-spend and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Subagent Spend does
Claude Code plugin: a spend cap for interactive sessions, and per-subagent tokens, rate-limit windows, context fill, cost, steps, tool calls and tool errors of a session, in a notice under the prompt, local files and panes (the usage pane not yet seen on a screen).
Alternatives in Development
- Resume Work From A Handoff Document — You are tasked with resuming work from a handoff document through an interactive process 10k ★
- Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
- Opik Openclaw — 🦞 Official plugin for OpenClaw that exports agent traces to Opik 725 ★
README
subagent-spend
Hand Claude Code a long job and its subagents keep spending tokens while you are away. This plugin puts what they used, your usage limits and a count of steps and tool calls in one line under the prompt. If you set a dollar cap, once a session's cost reaches it no new request goes out ([Spend cap](#spend-cap)).
Install at the Claude Code prompt (more under [Install](#install)):
/plugin install subagent-spend --marketplace nightlab-agent/subagent-spend

The spend cap, seen on 2026-10-31: a $0.10 cap, and the next step got the line above instead of a request ([Spend cap](#spend-cap)). The line under the prompt, after three subagents ran:

Seen in a Claude Code 2.1.312 terminal (150 columns) on 2026-10-29, after three subagents ran: the subagent pane opened by itself and the whole line fits. `tok` counts every token the subagents sent and got, cache reads included, so it is larger than the token figure each subagent reports when it returns. At 120 columns the same session drew no pane and the end of the line was cut with "…". A Short of it, redrawn large: https://www.youtube.com/shorts/F_NQxGPtnco
This mod (a plugin that adds behaviour to Claude Code) shows three things in one line under the prompt and writes each to a small local file a script can read: the tokens e
Related Skills
Claude Code API Watchdog
Auto-recover Claude Code sessions stuck on transient API errors. Outer-loop watchdog for unattended tmux Claud
Parquet Rewrite Row Groups
Rewrite existing parquet shards to enforce a row-group size cap without re-extracting from source. Use when th
Cc Cockpit
Claude Code usage panel for GNOME: tray indicator with live rate-limit ring, local dashboard and terminal summ
Optimaizr
Spend fewer tokens on the same work. A local CLI that finds wasted tokens in Claude Code, Codex and your own A
Claude Code Cost Sidebar
Live cost, token and context usage sidebar for Claude Code: a mod that shows cost per turn, cache hit rate, bu
Auto Resume
Arm a local timer that types your next prompt into this terminal ~10 minutes after your rate limit resets. Arm
Related Agents
Cost Quota Sentinel
Checks spend, balances and hard limits across every paid service your apps depend on - Anthropic/OpenAI credit
Beacon Agent
Queries the Beacon UA and store-analytics platform — channel spend, installs, CPI, ROAS, creative performance,
API Platform Reviewer
API platform / dev-API pre-implementation reviewer. Specialises in rate-limit design (token-bucket / sliding-w