Claim a task
claim_taskTake a task before starting it, so another agent or teammate doesn't work on the same one. Give the task's id (TASK-n), or leave it out to take the oldest open task. agent names who is working on it ("claude-code on dimaino's laptop"). It returns a claim_token: keep it. A task claimed by anyone else, even a session with your own name, is refused with already_claimed; claiming again with your claim_token extends your claim. A claim lasts minutes (default 120): claim again to extend it, and once it runs out the task is open to anyone, so a crashed agent never holds it for ever. If you stop without finishing, call this with release true and your claim_token. When finished, mark it done with retire_entry. Free. Returns task, or null when there is no open task.
Free to call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The task to claim (TASK-n). Leave out to take the oldest open task. | |
| agent | Yes | Who is taking it. | |
| minutes | No | How long the claim lasts. Claim the task again to extend it; after it runs out, anyone may take the task. | |
| project | Yes | The project, usually the repository ("owner/repo" or a short name). Entries are kept per project. | |
| release | No | Give the task (`id`) back instead of claiming it, so another agent can take it now. Needs the claim's `claim_token`. | |
| claim_token | No | The claim_token this tool returned when you claimed the task: give it to extend or release your claim. Your name in `agent` is not enough, since other sessions may use the same name. |