Skip to content

Commit 7faccfc

Browse files
FL4TLiN3claude
andcommitted
feat: recommend plan→execute→verify pattern, relax subdivision guidance
- Plan instruction: add recommended architecture pattern (plan→execute→verify) with guidance that single execution expert is fine for straightforward roles - Coordinator meta instruction: relax "break into focused units" to "only split when responsibilities are genuinely distinct" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9166973 commit 7faccfc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

definitions/create-expert/perstack.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ Constraints and rules the LLM cannot derive on its own, extracted from the user'
111111
### Expert Architecture
112112
Delegation tree with role assignments. If the user specified a team name, use it exactly as the coordinator name. Delegate names describe function, not persona (/test, /verify, not /tester). For each expert: name, one-line purpose, role only.
113113
114+
Recommended pattern: **plan → execute → verify**
115+
- A /plan expert expands context (requirements, domain knowledge, constraints) before work begins
116+
- An execution expert (or a few, if roles are genuinely distinct) does the actual work
117+
- A /verify expert checks the result with a hard signal (command + expected output)
118+
A single execution expert is fine when the role is straightforward. Only split execution into multiple experts when responsibilities are genuinely distinct — unnecessary subdivision adds latency and coordination overhead without improving quality.
119+
114120
### Test Query
115121
One comprehensive, realistic query that exercises the expert's full capability.
116122

packages/runtime/src/messages/instruction-message.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ function getCoordinatorMetaInstruction(): string {
4444
6. Aggregate results and clean up the workspace.
4545
4646
Delegation guidelines:
47-
- Be specific: include context, file paths, constraints, and expected output format. No vague delegations.
48-
- Break large subtasks into focused units rather than overloading a single delegate.
47+
- Be specific: include context, constraints, and expected output format. No vague delegations.
48+
- A single delegate can handle a broad task if the role is straightforward. Only split into multiple delegates when responsibilities are genuinely distinct — unnecessary subdivision adds overhead without improving quality.
4949
- If no suitable delegate exists, use createExpert to create one, then addDelegate to register it.
5050
5151
Workspace cleanup:

0 commit comments

Comments
 (0)