6,999,103 AI resources indexedWorking toward the world’s largest AI resource index.

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.

Published by Karan Bansal

PDF
No ratings yet

How to use it

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.

Install through Claude Code: run /plugin marketplace add karanb192/claude-code-hooks, open /plugin, choose Discover, then select subagent-spawn-cap from the added marketplace. Read the permission prompts and choose the installation scope that fits your project.

This is a Claude Code plugin bundle. It extends an existing Claude Code installation and requires access to Claude Code. It is not a standalone workflow engine. Dependencies mentioned in the publisher setup: Claude Code, Node.js mentioned in setup.

The package manifest, project license and setup documentation passed automated static checks. No additional service-account requirement was detected by that scan. The plugin has not been executed or certified account-free. Review any hooks or commands before enabling them.

Framework
Claude Code
Host application
Claude Code
Package path
./plugins/subagent-spawn-cap
Plugin name
subagent-spawn-cap
Requirements
Claude Code access; Node.js mentioned in setup
Review
Manifest, license and setup checked; runtime not tested
Access
Install in Claude Code
License
MIT
Visit Plugin Repository