Delegate task to Perch AI
delegate_to_perchHand off coding tasks to an autonomous Perch AI worker that executes them in a working directory and returns the final answer, thread ID, and status for polling long-running jobs.
Instructions
Delegate a task to Perch AI (worker agent) via the official perch CLI. Perch runs autonomously in the given working directory with its own tools (bash, file read/write, skills) on the signed-in Perch plan. Karpathy working guidelines (assumptions, simplicity, surgical scope, evidence-based verification) are prepended to every task by default (guidelines:false to disable). Returns the final answer, thread id, and status. Long-running tasks: pass wait_seconds to bound blocking; if still running you get a job_id — poll perch_job_status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory Perch operates in (default: temp dir). | |
| mode | No | agents = autonomous execution with tools; ask = answer only; plan = plan only. | agents |
| task | Yes | Natural-language task for Perch to execute autonomously. | |
| model | No | Model tier or pinned model id: "standard", "standard 1m", "pro", "pro 1m", or a pin id like "qwen-3.8-max" (free on Starter until 2026-11-20, effort off..high). Defaults to $PERCH_AGENT_MODEL or "standard". | standard |
| effort | No | Reasoning effort. Defaults to $PERCH_AGENT_EFFORT or "high". Starter plans cap effort at high; some promo models only accept off..high. | high |
| persona | No | Perch persona. | |
| thread_id | No | Continue an existing Perch thread (from a previous result's thread_id). | |
| guidelines | No | Prepend the karpathy working guidelines (assumptions, simplicity, surgical scope, evidence-based verification) to the task. | |
| permission | No | Perch permission mode. take_the_wheel = never asks before writes/commands (required for autonomous delegation; auto_review makes the worker stop and ask, ending the turn). | take_the_wheel |
| wait_seconds | No | Seconds to block waiting for completion before returning a running job_id. | |
| timeout_seconds | No | Hard limit; the Perch process tree is killed after this. |