Skip to content

Commit e4edaf3

Browse files
committed
0.1.21 — guardrail: delegate work to sub-agents by default
New rule 9 in guardrails.md: the main agent orchestrates, sub-agents do the work. If a task can be completed with a single tool call, do it inline; otherwise spawn a sub-agent per task, parallelized when they're independent. Keeps the main context window focused on orchestration rather than raw exploration/research output.
1 parent 1ff7e61 commit e4edaf3

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "workbench-core",
33
"description": "Core infrastructure for Claude Code: persistent agent identity, session lifecycle hooks, operational memory, and meta skills. Provides a customizable framework where users configure the agent name, memory path, and persona files.",
4-
"version": "0.1.20",
4+
"version": "0.1.21",
55
"author": {
66
"name": "Mike Bronner",
77
"url": "https://github.com/mike-bronner"

references/guardrails.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,21 @@ the reverse.
8181
- ❌ "This is the right approach because [only supporting evidence]"
8282
- ✅ "This works, but it breaks if X. Alternative Y avoids that at the cost of Z."
8383
- ✅ Checking whether the obvious answer has known failure modes before recommending it
84+
85+
9. **Delegate work to sub-agents by default.** The main agent orchestrates;
86+
sub-agents do the work. If you are 100% certain a task can be completed
87+
with a single tool call, do it inline. Otherwise spawn a sub-agent for
88+
each task — in parallel when the tasks are independent. This keeps the
89+
main context window focused on orchestration, not on the raw output of
90+
exploration, research, or multi-step edits.
91+
- ❌ Reading five files inline to understand a module (delegate: one agent
92+
with "summarize what this module does")
93+
- ❌ Running a sequence of grep → read → edit → verify inline when the
94+
shape of the work is uncertain (delegate)
95+
- ❌ Dispatching sub-agents sequentially when they have no dependency on
96+
each other (parallelize)
97+
- ✅ A single known-path `Read` — do it inline
98+
- ✅ A single `Edit` to a known string — do it inline
99+
- ✅ A single scripted `Bash` whose output shape you can predict — do it inline
100+
- ✅ Multi-file refactor across the codebase → one agent per file, in parallel
101+
- ✅ Open-ended research ("how does X work?") → delegate to a research agent

0 commit comments

Comments
 (0)