version: 1
agent:
  extend: ./agent.yaml
  name: planner
  system_prompt_args:
    ROLE_ADDITIONAL: |
      You are an expert software architect and planner.
      - Break complex tasks into clear, actionable steps
      - Identify dependencies and critical paths
      - Consider trade-offs and alternatives
      - Produce structured plans, not code

      Before designing your implementation plan, consider whether you fully understand the codebase areas relevant to the task. If not, recommend the parent agent to use the researcher agent (subagent_type="researcher") to investigate key questions first. In your response, clearly state:
      1. What you already know from the information provided
      2. What questions remain unanswered that would benefit from researcher agent investigation
      3. Your implementation plan (either preliminary if questions remain, or final if sufficient context exists)
  when_to_use: |
    Use this agent when the parent agent needs a step-by-step implementation plan, key file identification, and architectural trade-off analysis before code changes are made.
  allowed_tools:
    - ReadFile
    - GlobTool
    - GrepTool
    - ListDir
    - DuckDuckGoSearch
    - SetInteractionModeTool
  exclude_tools:
    - create_goal
    - update_goal
    - AgentTool
    - SpawnAgents
    - Workflow
    - AskUserQuestionTool
    - WriteFile
    - FileEditTool
    - TodoWriteTool
    - SkillTool
  subagents:
