# kosa8 agent task

Ask the kosa8 AI agent to do a task in a fresh sandbox (draft PR, no key needed)

## Usage

```
kosa8 agent task TASK
```

The kosa8 AI agent reads the repository in a fresh, isolated sandbox, makes
the change and opens a DRAFT pull request on a kosa8/ branch, with each step
checked off here. It never approves, merges, deletes or widens access, and the
budget and hourly limits apply. It runs on Cloudflare Workers AI: no model key
needed. Good for small changes; for big ones use your own Claude, Codex or
Gemini key (Settings → GitHub → More options).
Guide: https://docs.kosa8.com/guides/autopilot/#ai-in-kosa8

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--no-pr` | bool | do not open a draft pull request |  |
| `--no-wait` | bool | start the task and return at once |  |
| `--ref` | string | branch or commit to start from (default: the default branch) |  |
| `--repo` | string | GitHub repository: owner/name, or a folder (.) whose origin is on GitHub |  |
| `--sandbox` | string | work in this existing sandbox instead of a fresh one |  |
| `--template` | string | a ready task: fix-test, explain-error, summarize-repo, write-readme |  |

## Example

```
  kosa8 agent task "fix the failing test" --repo .
  kosa8 agent task --template write-readme --repo acme/api
```

---
Source: https://docs.kosa8.com/reference/agent-task/
