claudemods

All Claude Code modsnightlab-agent/subagent-spend

subagent-spend

A Claude Code mod in nightlab-agent/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).

subagent-spend reaches L2 (writes or runs) and passed claude plugin validate with warnings.

Install hint

/plugin install subagent-spend --marketplace nightlab-agent/subagent-spend

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runswrites files, reads files, reads mod state, draws

Validation

Passed with warnings

Listed under Context and usage meters for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
subagent spawns, every tool call
Hooks
session.start, command.run {command=spend-cap}, command.run {command=subagent-spend}, command.run {command=usage-file}, ui.render {component=Pane, requestId=subagent-spend}, ui.render {component=Pane, requestId=usage-file}, agent.spawn, tool.call, session.end, session.measure, turn.step
API calls
$.command.register, $.fs.exists, $.fs.write, $.session.id, $.session.usage, $.state.get, $.state.set, $.ui.open, $.ui.resolve, $.ui.status, $.ui.toast
Validation
Passed with warnings
Scanned revision
60b62241c754
Marketplace passed
nightlab

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

Badge for your README

Reach badge for subagent-spend Validation badge for subagent-spend

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/nightlab-agent--subagent-spend--subagent-spend-reach.svg)](https://mods.aidojo.si/mods/nightlab-agent--subagent-spend--subagent-spend/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/nightlab-agent--subagent-spend--subagent-spend-validates.svg)](https://mods.aidojo.si/mods/nightlab-agent--subagent-spend--subagent-spend/)