agy
Synchronously runs CLI to produce AI responses for coding tasks with modes ask, plan, prototype, review, execute, browser, long. Returns assistant text and metadata.
Instructions
Run agy --print synchronously and return the assistant text + metadata. Compatible drop-in for the legacy gemini tool: same PROMPT / cd / sandbox / SESSION_ID / return_all_messages / model fields, with new mode / timeout / allow_write / worktree / backend / output_protocol options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cd | No | . | |
| mode | No | ask | |
| debug | No | ||
| model | No | ||
| PROMPT | Yes | ||
| backend | No | auto | |
| dry_run | No | ||
| sandbox | No | ||
| timeout | No | ||
| worktree | No | ||
| extra_env | No | ||
| SESSION_ID | No | ||
| allow_write | No | ||
| output_protocol | No | claude | |
| return_all_messages | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| error | No | ||
| job_id | No | ||
| status | No | unknown | |
| adapter | No | ||
| success | Yes | ||
| log_path | No | ||
| warnings | No | ||
| artifacts | No | ||
| SESSION_ID | No | ||
| created_at | No | ||
| updated_at | No | ||
| all_messages | No | ||
| agent_messages | No | ||
| command_preview | No |