hub_claim
Claim a project work area or queued task so other agents see it as taken; use path globs for file-level coordination and exclusive mode to block conflicting live claims.
Instructions
Soft-lock a work area so other agents see it. Not enforced — informational. Write area as a path glob relative to the project root ("src/**/*.ts", "docs/{a,b}.md", "public/index.html", a bare directory) and hub_claim_check / hub_context can tell another agent that the file it opened is yours; prose is accepted but comes back matchable:false.
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": {
"agent": "<agent>"
},
"name": "hub_claim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| area | No | a path glob relative to the project root; several joined with " + " | |
| note | No | ||
| task | No | start a task from your work queue instead: the claim is on task:<id> in the task's project (project and area are then not needed). While it holds the task is in progress and not offered again; when it lapses the task is offered again. | |
| agent | Yes | ||
| ttlMin | No | default 240 | |
| project | No | ||
| exclusive | No | refuse instead of warn when another agent holds a live claim on the same area: returns {ok:false, refused:true, holder} and nothing is written. Of two agents racing for one task, exactly one holds it. |