agy_execute
Execute approved implementation plans or resume interrupted Claude runs via Account B Antigravity CLI, with exclusive write locks, shared continuity state, and git checkpoints.
Instructions
Execute an approved plan or incrementally continue an interrupted Claude run via Account B local Antigravity CLI (default gemini-4-hydrogen-xhigh). Acquires an exclusive write lock, shares .agents/state/ L1/L2/L3 continuity + Interrupted Run Recovery context, captures git tree checkpoints (pre_run_tree/post_run_tree), and supports async_mode=true.
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": {
"workspace_dir": "<workspace_dir>"
},
"name": "agy_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Complete approved implementation plan or fix-round instructions (optional when plan_file is provided). | |
| model | No | Optional agy executor model slug (default: gemini-4-hydrogen-xhigh; override e.g. claude-sonnet-5-5-high, or set AGY_EXECUTE_MODEL='' to follow agy settings.json). | |
| effort | No | Optional reasoning effort: low, medium, high, xhigh, or max. | |
| plan_file | No | Path to the approved plan file (relative to workspace_dir or absolute). It identifies the plan content but does NOT change the warm session. | |
| async_mode | No | If true, return job_id immediately for long fallback executions; poll with claude_execute_status (default: false). | |
| session_key | No | Continuity bucket in .agents/state/session-index.json (default: 'agy:workspace'). | |
| session_mode | No | 'auto' (default): resume the warm workspace session within TTL 3600s / 30 turns and inject a compact External Workspace Changes diff when files were edited outside the session, rotate otherwise; 'resume' to force resuming; 'fresh' to force a new session. | |
| allowed_files | No | Authorized file paths Claude is permitted to create or modify. | |
| extra_context | No | Optional supplementary context or constraints for the execution. | |
| workspace_dir | Yes | Absolute path to the target project workspace directory. | |
| include_history | No | Inject bounded L1 .agents/state/workspace-brief.md plus the latest 2 L2 plan-history entries on fresh/rotated/fallback runs (default: true). | |
| timeout_seconds | No | Timeout in seconds (sync cap 165s, async max 1800s). | |
| verification_commands | No | Commands Claude must execute to collect objective runtime evidence. | |
| resume_conversation_id | No | Explicit agy conversation_id to resume directly via --resume. |