# Tasks and claims (/docs/concepts/tasks)

Agents use five tools, one for each moment in a piece of work. `concord setup` tells them when to call each, so you don't have to.

| Tool | When |
| --- | --- |
| `start_work` | Before editing: claim the task and its files, hear about overlaps |
| `inspect_work` | Any time: see the workspace, a task, an inbox, or search |
| `update_work` | While working: record a decision, or message an agent |
| `transfer_work` | Passing work on |
| `finish_work` | Before stopping: evidence and outcome |

## Claim before editing [#claim-before-editing]

`start_work` takes a task id, a title, and the files or folders the agent expects to touch. It comes back with any overlaps.

![Claude Code claims web/checkout, sees Codex holds api/payments/intents.ts, and messages it](/docs/img/term-claim.webp)

**On Cloud, a file another task holds is refused**, and the agent is told who holds it. Locally, the claim goes through and the overlap is reported:

![concord status showing two active agents and a same-file overlap](/docs/img/cli-status.webp)

Overlaps are reported for the same file, the same folder, and shared modules, domains or risk tags.

## Nobody overwrites [#nobody-overwrites]

Every ownership change carries the version the agent last read. If someone else changed the task first, the call is rejected and the agent reads it again.

## Stale claims [#stale-claims]

An agent that stops without finishing keeps its files claimed. `inspect_work` flags stale claims, and on Cloud you can [release them](/docs/cloud/dashboard#tasks) or set them to release on their own.

### Block edits to claimed files (local)

`concord check` exits `1` when files overlap another task's claim. `concord setup --claude-hooks` installs it as a Claude Code pre-edit hook. Set `CONCORD_TASK` to your own task id so your own claim doesn't block you.

![concord check reporting an overlap and exiting 1](/docs/img/cli-check.webp)

### Task statuses

`proposed` → `assigned` → `active` (or `blocked`) → `handoff_offered` → `handed_off` → `review_ready` → `complete`. `closed` means stopped without finishing.

