bridge_dispatch_task
Dispatch coding tasks or conversational follow-ups to a target AI agent harness, with optional worktree isolation and session resumption.
Instructions
Dispatch a coding task or conversational turn to a target AI agent harness (e.g. 'claude' or 'agy'). Use this tool to delegate dev work (feature implementation, bug fixes, refactoring), code and security reviews, or technical exploration and architectural prototyping to another agent.
Args: harness: Target harness name ('claude', 'agy', or 'antigravity'). prompt: Task instructions or follow-up prompt. session_id: Optional existing session ID for conversational resumption. workspace_mode: Workspace isolation mode. Defaults to 'inherit' (executes directly in the same repository and directory). Set to 'worktree' when delegating risky refactors, speculative implementations, parallel experiments, or tasks requiring an isolated branch diff review before applying. When using 'worktree', always review the resulting diff, apply it via bridge_apply_diff if approved, and clean up the temporary worktree when done using bridge_close_session(session_id, cleanup_worktree=True). timeout_seconds: Execution timeout in seconds (default: 300). repo_root: Path to target git repository (defaults to current directory). detach: If True, dispatches the task asynchronously in the background and returns the session_id immediately to prevent client timeouts on long turns. Poll or retrieve output via bridge_get_session.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"harness": "<harness>",
"prompt": "<prompt>"
},
"name": "bridge_dispatch_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detach | No | ||
| prompt | Yes | ||
| harness | Yes | ||
| repo_root | No | ||
| session_id | No | ||
| workspace_mode | No | inherit | |
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||