Start agy job
agy_startStart a new agy job asynchronously and get an immediate job ID, policy summary, and permission blockers. Use dry run to validate config and policy without spending quota.
Instructions
Begin a new agy job. Returns job_id immediately; never blocks — plus policy_summary and blockers[] for what the profile ceiling did to your permissions request. Use dry_run to resolve config and policy without spawning agy or spending quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Workspace directory. Must be inside the project root. Defaults to the project root. | |
| mode | No | agy execution mode, e.g. accept-edits or plan. | |
| model | No | ||
| effort | No | ||
| prompt | Yes | Task for the agent. Sent as --print=<prompt>. | |
| dry_run | No | Resolve configuration and policy without spawning agy. Costs no quota. | |
| profile | No | Permission profile ceiling. research_readonly cannot write or run interpreters. Defaults to research_readonly. | |
| on_denial | No | What to do on the first policy denial. Default continue. | |
| session_id | No | Continue an existing agy conversation. Omit to create a new session. | |
| timeout_ms | No | ||
| json_schema | No | Path to a JSON schema for structured output. | |
| permissions | No | Narrowing only. allow is intersected with the profile ceiling; deny always wins. | |
| requested_by | No | ||
| session_mode | No | oneshot closes stdin after the prompt; session keeps it open for agy_send. | |
| parent_task_id | No | ||
| idle_timeout_ms | No | session_mode "session" only. Closes stdin (ending the process) after this many ms of no agy_send following the last completed turn. Does not affect timeout_ms/deadline_at — agy_send never extends those. Ignored for oneshot. | |
| expected_artifacts | No | Workspace-relative paths that must exist afterwards. Missing ones block verified_success. |