Module: Tools::SubagentPrompts
- Included in:
- SpawnSpecialist, SpawnSubagent
- Defined in:
- lib/tools/subagent_prompts.rb
Overview
Shared prompt fragments and spawn logic for tools that create sub-agent sessions. Included by SpawnSubagent and SpawnSpecialist to avoid duplication.
Constant Summary collapse
- IDENTITY_TEMPLATE =
Prepended to every sub-agent’s stored prompt after nickname assignment. Establishes identity before any other instruction.
"You are %s, a sub-agent of the primary agent."- COMMUNICATION_INSTRUCTION =
"Your messages reach the parent automatically. " \ "Ask if you need clarification — the parent can reply."