claim
Reserve files or directories before editing to coordinate with other agents. All-or-nothing leases prevent concurrent changes and expire automatically.
Instructions
Lease the files or directories you are about to change.
All or nothing: you get every path or none. If something is taken you get
back who holds it and for how long — wait, take other work, or ask via
say/send. Leases expire on their own, so a crashed agent cannot block
the repo.
A lease on a directory covers everything under it. Editing a free file claims it automatically (hook); use this to reserve ahead — typically before running a script that touches several files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paths | Yes | ||
| purpose | No | ||
| ttl_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||