Overview
Thecall_omo_agent tool provides direct invocation of named agents without the category system. Use this for quick, targeted agent calls when you know exactly which agent you need.
Source: src/tools/call-omo-agent/
Distinction from task tool
| Aspect | call_omo_agent | task |
|---|---|---|
| Agent selection | Named agent (explore/librarian/oracle/etc) | Category or subagent_type |
| Skill loading | Not supported | load_skills[] supported |
| Model selection | From agent’s fallback chain | From category config |
| Use case | Quick direct agent invocation | Full delegation with skills |
Allowed agents
Only the following agents are allowed (case-insensitive):explore- Specialized for codebase exploration and pattern findinglibrarian- Research external documentation and referencesoracle- Expert analysis and recommendationshephaestus- Build and infrastructure tasksmetis- Strategic planning and architecturemomus- Code review and quality assessmentmultimodal-looker- Visual analysis and image processing
Parameters
Short task description (3-5 words)Example:
"Explore codebase patterns"The detailed task for the agent to performMust be in English. Provide clear, specific instructions.Example:
The agent to invoke (explore, librarian, oracle, etc.)Case-insensitive. Only agents from the allowed list are accepted.Example:
"explore" or "Explore" or "EXPLORE"Execution mode
true: Asynchronous execution, returns task_id immediately. Usebackground_outputto poll results.false: Synchronous execution, waits for completion and returns result directly.
Existing session ID to continuePass this to resume a previous agent session with full context preserved.Note: Not supported with
run_in_background=true. Use sync mode for session continuation.Example: "task-1234567890"Response
Agent execution result or task_idSynchronous mode (Asynchronous mode (
run_in_background=false):run_in_background=true):Execution modes
Synchronous execution
Userun_in_background=false when you need the result immediately:
Asynchronous execution
Userun_in_background=true for parallel work or long-running tasks:
Session continuation
Resume an existing agent session with full context:- Preserves full conversation history
- Maintains agent context and memory
- Saves tokens by avoiding repeated context
- Only works with synchronous mode
Common patterns
Parallel exploration
Launch multiple agents in parallel:Sequential analysis
Chain agent calls with session continuation:Error handling
Invalid agent
Disabled agent
Session continuation with background mode
Implementation details
Validation
Agent names are validated case-insensitively against the allowed list. The tool normalizes the agent name to lowercase before execution.Model selection
Each agent has its own model fallback chain defined in the agent configuration. The tool does not use category-based model selection.Background execution
Background tasks are managed byBackgroundManager and follow the same lifecycle as tasks launched via the task tool.
Sync execution flow
- Create OpenCode session for the agent
- Send prompt to session
- Poll until session is idle
- Extract result from last assistant message
- Return result with metadata
Related tools
- task - Full delegation with categories and skills
- background_output - Poll background task results
- background_cancel - Cancel background tasks