From 25c1ed21e6f94737a98204268bc885767a79ef07 Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Wed, 1 Apr 2026 16:20:37 -0700 Subject: [PATCH] chore(core): strengthen agent team orchestration prompts - Add 'Strict Delegation Policy' to sample Coding and Writing teams - Make active team prompt injection more authoritative in snippets.ts - Explicitly forbid main agent from performing team roles itself --- packages/core/src/prompts/snippets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/prompts/snippets.ts b/packages/core/src/prompts/snippets.ts index 5440d354a6..116635fe6f 100644 --- a/packages/core/src/prompts/snippets.ts +++ b/packages/core/src/prompts/snippets.ts @@ -258,7 +258,7 @@ export function renderActiveTeam(team?: TeamDefinition): string { ${team.instructions} -You should prioritize delegating tasks to this team's agents whenever appropriate.`.trim(); +**Orchestration Mandate:** You must prioritize delegating tasks to this team's specialized agents for their respective roles. Do not perform these specialized tasks yourself if a team member is available and qualified to handle them.`.trim(); } export function renderSubAgents(subAgents?: SubAgentOptions[]): string {