
subagent-spawn-cap
Per-session subagent spawn budget: a PreToolUse guard on the Agent tool that counts every spawn (nested fan-outs included) in an append-only ledger, asks at SPAWN_CAP_ASK (default 20) and every SPAWN_CAP_ASK_STEP after it (default 10), and denies at SPAWN_CAP_DENY (default 60). The total cap Claude Code 2.1.224 removed, back under the user's control.
- GitHub stars
- 581
Install
/plugin install subagent-spawn-cap@claude-code-hooksRun it inside Claude Code after adding the marketplace with /plugin marketplace add karanb192/claude-code-hooks.
Contents
Discovered from sourceAgents 1
Hooks 1
Sponsors
Details
- Marketplace
- karanb192/claude-code-hooks
- Source
- plugins/subagent-spawn-cap
- Category
- safety
More from karanb192/claude-code-hooks
All 22- auto-stage
- block-dangerous-commands
- bounty-board
- cache-tax
- case-insensitive-guard
- config-guard
- config-watch
- context-hogs
- dead-end-registry
- dead-rules-audit
- format-code
- git-safety
- guard-pack
- instructions-audit
- nerf-receipts
- notify-permission
- pr-provenance-stamp
- protect-secrets
- protect-tests
- session-logger
- standup-autopilot