mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-01 05:36:46 -07:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user