Start a coding task
start_taskStart a new coding task in a workspace. Sinatra's agent works on the prompt in its own sandbox and answers in the task's conversation. Depending on the prompt, it may push a branch and open a pull request in a connected GitHub repository. Each call starts a separate task unless it repeats an earlier idempotency_key. The task's url is its page in the Sinatra dashboard, where a person can follow it and reply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | owner/name of a connected repository. Omit to let the agent choose. | |
| model | No | A model id from Sinatra's catalog, such as anthropic/claude-opus-5-5 or openai-codex/gpt-6.1-sol, for every agent on this task. Omit to use the repository's or workspace's model. | |
| title | No | A short title; defaults to the prompt's first line. | |
| prompt | Yes | What to do, as you'd ask a teammate. | |
| workspace_id | Yes | The workspace id (from whoami). | |
| idempotency_key | No | Retrying with the same key returns the same task instead of starting another. |