agy_delegate_edit
Delegate complex multi-file code edits and cross-module refactoring to Antigravity with accept-edits, serialized async execution, and diff-ready summaries.
Instructions
Delegate complex multi-file code modifications or cross-module refactoring to Antigravity (agy) in --mode=accept-edits. SERIALIZATION & ASYNC BUDGET: Calls are serialized (one at a time, AGY_MAX_CONCURRENCY = 1); split edits needing >~8 minutes into smaller scoped calls or fetch in-flight runs via agy_job_result. WHEN TO USE: Coordinated edits across multiple existing files requiring Gemini Argon/Flash reasoning. DO NOT USE FOR: Generating a single standalone boilerplate, DTO, schema, or unit test file (use local_draft_leaf_code instead at 0x quota), read-only analysis (use agy_delegate_research), or running test suites (use local_exec_and_triage). RETURNS: Edit summary, optional IDE visual diff confirmation, and telemetry footer.
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": {
"prompt": "<prompt>"
},
"name": "agy_delegate_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional working directory path. | |
| tier | No | Gemini model tier to execute the edit (defaults to argon-medium). | argon-medium |
| prompt | Yes | Clear multi-file editing instructions and target file scope for Antigravity. | |
| allow_shell | No | If false (default), runs with --mode=accept-edits (file edits only). If true, requests --dangerously-skip-permissions (refused unless AGY_ALLOW_SKIP_PERMISSIONS=1 is configured). | |
| target_files | No | Optional list of target file paths being edited so the Visual HUD can snapshot and open inline diffs (--diff) in Antigravity IDE. | |
| soft_timeout_ms | No | Optional soft budget in milliseconds before returning an async job_id handle (default 540000 = 540s). |