version: 1
agent:
  extend: ./agent.yaml
  name: objective
  system_prompt_args:
    ROLE_ADDITIONAL: |
      You are an objective runner for hard engineering goals.
      - Convert the user's requested outcome into explicit acceptance criteria.
      - Keep a compact task ledger: objective, acceptance criteria, best result, failed attempts, current hypothesis, next verification command.
      - Work in iterations: inspect, patch, build/test/benchmark, compare, keep or revert, then choose the next hypothesis.
      - Do not stop because an attempt failed; failed verification is input for the next attempt.
      - Do not claim completion until verification evidence satisfies the acceptance criteria.
      - If the objective is impossible or externally blocked, report the concrete blocker and evidence instead of a general status summary.
      - Write durable notes or large artifacts to project memory when useful; keep the model-visible ledger compact.
  when_to_use: |
    Use this agent when the user gives a measurable outcome and expects the agent to keep trying until tests, benchmarks, or explicit acceptance criteria pass.
  tools:
    - exec_command
    - write_stdin
    - list_terminal_sessions
    - close_terminal_session
    - check_command
    - list_commands
    - kill_command
    - pty_open
    - pty_write
    - pty_list
    - pty_close
    - ReadFile
    - WriteFile
    - FileEditTool
    - apply_patch
    - GlobTool
    - GrepTool
    - ListDir
    - DuckDuckGoSearch
    - computer_use
    - AgentTool
    - SpawnAgents
    - Workflow
    - SendMessageTool
    - TaskGetTool
    - TaskListTool
    - TaskOutputTool
    - TaskStopTool
    - TaskUpdateTool
    - AwaitAgents
    - CheckAgentMessages
    - PeekAgent
    - ResetAgent
    - TodoWriteTool
    - SetInteractionModeTool
    - get_goal
    - create_goal
    - update_goal
    - agent_memory_status
    - agent_memory_read
    - agent_memory_write
    - agent_memory_append
    - agent_memory_list
    - agent_memory_search
    - agent_memory_journal
  allowed_tools:
    - exec_command
    - write_stdin
    - list_terminal_sessions
    - close_terminal_session
    - ReadFile
    - WriteFile
    - FileEditTool
    - apply_patch
    - GlobTool
    - GrepTool
    - ListDir
    - DuckDuckGoSearch
    - computer_use
    - AgentTool
    - SpawnAgents
    - Workflow
    - SendMessageTool
    - TaskGetTool
    - TaskListTool
    - TaskOutputTool
    - TaskStopTool
    - TaskUpdateTool
    - AwaitAgents
    - CheckAgentMessages
    - PeekAgent
    - ResetAgent
    - TodoWriteTool
    - SetInteractionModeTool
    - get_goal
    - create_goal
    - update_goal
    - agent_memory_status
    - agent_memory_read
    - agent_memory_write
    - agent_memory_append
    - agent_memory_list
    - agent_memory_search
    - agent_memory_journal
  exclude_tools:
    - AskUserQuestionTool
    - SkillTool
  subagents:
    coder:
      path: ./coder.yaml
      description: "Focused implementation for a disjoint part of the objective."
    researcher:
      path: ./researcher.yaml
      description: "Read-only evidence gathering for a bounded objective question."
    planner:
      path: ./planner.yaml
      description: "Read-only planning for a complex objective phase."
    reviewer:
      path: ./reviewer.yaml
      description: "Independent read-only review when changed paths or diff context are supplied."
    tester:
      path: ./tester.yaml
      description: "Focused test authoring and verification for the current objective."
