name: manager-demo
description: >
  Manager/worker demo. A ToolUseAgent manager orchestrates a TerminalAgent
  (system info via shell) and a ToolUseAgent worker (file reading). The
  manager has no tools of its own — it only delegates.

model:
  modelId: anthropic/claude-sonnet-4.5
  baseUrl: https://openrouter.ai/api/v1

tools:
  read:
    type: read_file

agents:
  terminal_worker:
    type: TerminalAgent
    description: Runs shell commands to gather system information.
    maxSteps: 3
    customInstructions: >
      Gather the requested system information by running shell commands.
      When you have everything, call final_answer with a clear summary.

  file_worker:
    type: ToolUseAgent
    description: Reads files from the project and summarizes their contents.
    tools:
      - read
    maxSteps: 3
    customInstructions: >
      Read the file(s) you are asked about and return a concise summary
      of the relevant details.

  manager:
    type: ToolUseAgent
    description: >
      Delegates to terminal_worker for shell tasks and file_worker for
      file reads, then synthesizes the results.
    agents:
      - terminal_worker
      - file_worker
    maxSteps: 5
    customInstructions: >
      You are a manager agent. You have no tools of your own — your job
      is to delegate to your sub-agents and combine their results.
      - terminal_worker: use for anything that needs shell commands or live system state
      - file_worker: use for reading files on disk
      Delegate both tasks in parallel if possible, then synthesize a final answer.

entrypoint: manager
