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
This commit is contained in:
Taylor Mullen
2026-04-01 16:20:37 -07:00
parent 3ff97102a2
commit 25c1ed21e6
+1 -1
View File
@@ -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 {