agy_plan
Generate read-only implementation plans through a local planning CLI to offload large repo scans or conserve account quota, with drift detection and optional plan file saving.
Instructions
Optional on-demand Account B read-only planning offload via local Antigravity CLI (agy --mode plan) for huge repo scans or conserving Account A quota. Reuses warm planner session (default session_key='planner:workspace') with external drift detection and enforces Line 1 STATUS: READY | NEED_CLARIFICATION | BLOCKED. Only writes optional save_plan_file (strictly under .agents/plans/) from host Python when STATUS: READY and no workspace mutation occurred. 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>",
"request": "<request>"
},
"name": "agy_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional agy model slug (omit to use Account B agy settings.json default). | |
| effort | No | Optional reasoning effort: low, medium, high, xhigh, or max. | |
| request | Yes | Feature/bugfix request or clarification answers for the planner. | |
| async_mode | No | If true, return job_id immediately for long repository scans; poll with claude_execute_status (default: false). | |
| session_key | No | Planner continuity bucket in session-index.json (default: 'planner:workspace'). | |
| session_mode | No | 'auto' (default), 'resume' (after NEED_CLARIFICATION), or 'fresh'. | |
| extra_context | No | Optional supplementary constraints or context for planning. | |
| workspace_dir | Yes | Absolute path to the target project workspace directory. | |
| save_plan_file | No | Optional target file strictly under .agents/plans/ to save approved plan text when STATUS: READY (written by host Python after read-only check). | |
| 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). | |
| resume_conversation_id | No | Explicit agy conversation_id to resume directly via --resume. |