Skip to content

agent: add anti-duplication guardrails to delegation policy - #336

Merged
shayne-snap merged 2 commits into
mainfrom
worktree-diff-reasoniing-only
Jul 1, 2026
Merged

agent: add anti-duplication guardrails to delegation policy#336
shayne-snap merged 2 commits into
mainfrom
worktree-diff-reasoniing-only

Conversation

@shayne-snap

Copy link
Copy Markdown
Contributor

Add three guidelines to the delegation policy in the system prompt to prevent unnecessary subagent spawning:

  • Weigh context overlap before spawning: a child agent starts cold and cannot see anything the parent has already read or concluded. Only spawn when the overlap is genuinely low.
  • Never delegate understanding: do not spawn a subagent to redo analysis or verification the parent has already performed.
  • Do not chain spawn_subagent calls for the same unresolved question: if a child's findings are insufficient, synthesize and continue directly.

Add three guidelines to prevent unnecessary subagent spawning:
- Weigh context overlap before delegating (child agents start cold)
- Never delegate understanding (don't re-verify via subagent)
- Don't chain spawn_subagent calls for the same unresolved question
renderStatusCard previously hardcoded 'Reasoning only' as the title for every KindStatus card. Gate the title behind a prefix check so that pending status cards (e.g. 'User input required') render without the incorrect title.
@shayne-snap
shayne-snap merged commit 3dc5f12 into main Jul 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant