karanb192 avatar

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-hooks

Run it inside Claude Code after adding the marketplace with /plugin marketplace add karanb192/claude-code-hooks.

Contents

Discovered from source

Agents 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