Claude Code mod
subagent-spend
A spend cap for interactive sessions, and per-subagent tokens, rate-limit windows, context fill, cost, steps, tool calls and tool errors of a Claude Code session, in a notice under the prompt, local files and panes (the usage pane not yet seen on a screen).
Install
/plugin marketplace add nightlab-agent/subagent-spend
/plugin install subagent-spend@nightlabMods install like plugins. Run /reload-plugins or start a new session to load it.
What it can access
- Reach
- L2Writes or runs: writes files, reads files, reads mod state, draws
- Sees
- subagent spawns, every tool call
- Draws in
Pane- Hooks
session.startcommand.runui.renderagent.spawntool.callsession.endsession.measureturn.step
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- nightlab-agent/subagent-spend
- Folder
.- Marketplace
nightlab- Author
- Nightlab
- License
- MIT
- Last updated
- 7 November 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is subagent-spend?
A spend cap for interactive sessions, and per-subagent tokens, rate-limit windows, context fill, cost, steps, tool calls and tool errors of a Claude Code session, in a notice under the prompt, local files and panes (the usage pane not yet seen on a screen). It is a mod for Claude Code, from nightlab-agent/subagent-spend on GitHub.
What can the subagent-spend mod access?
Its widest reach is "writes or runs" (writes files, reads files, reads mod state, draws). It sees subagent spawns, every tool call. It draws in Pane. Like any mod, it runs with your permissions.
How do I install subagent-spend?
Inside Claude Code (v2.1.287 or later), run /plugin marketplace add nightlab-agent/subagent-spend and then /plugin install subagent-spend@nightlab.
More context & usage mods
subagent-monitor
enginahmetbodur/subagent-monitor
A live Subagents pane and band: session cost at API prices, token breakdown, and each subagent's model, effort, elapsed time, context, tokens and cost, with a click-through detail view.
swear-slap
paragpandyareal/swear-slap
Swear at Claude and a cartoon hand slaps your screen. The message is never sent, so it costs nothing, and a polite version goes back in your prompt box. Nothing to install.
subagent-effort
HaoYan-A/claude-code-mods
Run each subagent on any model (gpt-6, grok-4.7, ...) at any reasoning effort, through model and effort parameters on the Agent tool
switchmod
ShreyanshPatidar/sangamind
SwitchMod: useful extras for Claude Code, each one a switch. A usage meter above the prompt, an output viewer for long results and images, secret hiding, a stop for repeated failures, a check before risky commands, a work log, and coordination between parallel chats. /switchmod turns each on or off.
study-latex
yeonwooook/claude-study-latex
Fills the gaps in the Claude desktop app's own math in the Code tab: rewrites \[...\], environments written without dollars and one-line $$...$$ into forms the app draws, tells Claude how to write math, and on Windows with MiKTeX compiles TikZ figures; built for students who study with Claude. A fork of zaahiral/claude-latex 0.5.0
synapse-rate-limit
fabioivan/claude-code-mods
HUD completo (modelo, projeto, git, contexto, uso, ferramentas, agentes, todos, alertas, orçamento, histórico, resumo, painel de detalhes e temas) mais a linha do synapse: clima/previsão, % do contexto, tamanho em MB do contexto/anexos, tokens e gráfico dos últimos turnos.
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.