subagent-limits
by Abhiram Dwivedi · ★ 3 · updated 6 days ago
Keeps subagents small: tells the main agent how to size and split work, asks a growing subagent to checkpoint, and refuses its tools past a hard limit so a fresh agent takes over
Install
/plugin marketplace add AbhiramDwivedi/claude-ops/plugin install subagent-limits@claude-opsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.endprompt.composeagent.spawnturn.steptool.call- API calls
$.agent.list$.clock.now$.ui.toast- Can see
subagent spawnsevery tool call- Reach
- level 0 of 3 draws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/AbhiramDwivedi/claude-ops
- Path in repo
plugins/subagent-limits- Source commit
078413cthe exact code the scan read- Author
- Abhiram Dwivedi @AbhiramDwivedi
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from AbhiramDwivedi/claude-ops
session-models
AbhiramDwivedi/claude-ops
Shows the main model and its effort, the live agents by model and effort, named agent crews, and the working directory, and warns about agent crowds and huge contexts
usage-limits
AbhiramDwivedi/claude-ops
Keeps the 5-hour and weekly limit windows, their burn rate, a run-out projection, context fill, session cost and prompt-cache drops in a dim line above the prompt
worktrees
AbhiramDwivedi/claude-ops
Gives every agent that can edit a git worktree of its own, runs a project's setup script with its own port range, stops only the processes that setup script recorded, removes an agent's worktree and branch once the session merges it, and tidies other merged branches on demand with /tidy
Related mods
Other mods in Toasts, close to this one by stars.