claim
Reserve a work unit and check overlaps with peer agents' claims. Blocks conflicting changes unless force is set, enabling safe collaboration on the same repo.
Instructions
Stake a claim on a unit of work.
touches : files/modules you will modify requires : files/modules you depend on (omit if none) branch : the branch your work will live on force : claim even if an overlap with an active peer claim is detected
Refuses (status="blocked") if your plan collides with a peer's active claim, returning exactly what overlaps and with whom, unless force=True. The overlap is evaluated against freshly fetched state immediately before the push, so a peer who claimed first will be seen here.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"task": "<task>",
"touches": "<touches>"
},
"name": "claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| force | No | ||
| branch | No | ||
| touches | Yes | ||
| requires | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |