agenthold
v0.10.0Shared versioned state for multi-agent AI workflows
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
agenthold_register
Register yourself and receive a unique agent_id. IMPORTANT: You MUST call this once before using any other agenthold tool that requires an agent_id. Pass your name (e.g. 'editor-agent') and optionally the model you are running on (e.g. 'claude-sonnet-4-6'). The returned agent_id is your identity for this session — use it in all subsequent agenthold_claim and agenthold_release calls. Do not call this more than once per session. If the response status is 'unavailable', the database was briefly locked — retry after a short delay.
| Parameter | Type | Description |
|---|---|---|
name * | string | A short descriptive name for your agent, e.g. 'editor-agent' or 'review-bot'. |
model | string | The model you are running on, e.g. 'claude-sonnet-4-6'. Optional. |
agenthold_claim
Claim exclusive access to a resource before modifying it. IMPORTANT: You MUST call this before editing any file or shared resource when other agents may be working in the same environment. Do not proceed with modifications until the claim is granted. Claim each resource right before you modify it — do not claim multiple resources in advance. Finish editing and release one resource before claiming the next. You must call agenthold_register first to get an agent_id. Pass the resource string (e.g. 'src/main.py' or 'file://myproj/src/main.py'). Possible responses: "claimed": You now hold exclusi…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Your agent ID, received from agenthold_register. You must register before calling this tool. |
resource * | string | The resource identifier. Either a workspace-relative path (e.g. 'src/main.py'), or a URI of the form 'file://<workspace>/<path>' or 'custom://<name>'. Bare paths resolve against the workspace named 'd… |
agenthold_release
Release your exclusive claim on a resource after finishing your edits. IMPORTANT: Always pass an explicit `outcome` describing what you did: 'released' (default) for no change, 'modified' for in-place edits, 'created' for new resources, 'deleted' for removed resources, or 'moved' for renames (with `moved_to` set to the new resource). The outcome is preserved and shown to the next claimant so they don't act on stale assumptions. For renames (mv old new), claim BOTH paths first, do the rename, then release old with outcome='moved' and moved_to='new', and release new with outcome='created'. Possi…
| Parameter | Type | Description |
|---|---|---|
agent_id * | string | Your agent ID, received from agenthold_register. You must register before calling this tool. |
resource * | string | The resource identifier. Either a workspace-relative path (e.g. 'src/main.py'), or a URI of the form 'file://<workspace>/<path>' or 'custom://<name>'. Bare paths resolve against the workspace named 'd… |
moved_to | string | Required when outcome='moved'. The resource string for the new location, in the same form as 'resource'. Cross-workspace moves are allowed: e.g. moved_to='file://other-workspace/path'. |
outcome | string | What you did to the resource while holding the claim. 'released' (default) means no lifecycle change. 'modified' means you changed it in place. 'created' means it didn't exist before. 'deleted' means… |
agenthold_status
Check if a resource is available or currently claimed by another agent. Use this to decide which resource to work on next when you have multiple options. If the resource is available, call agenthold_claim to secure it before modifying. If claimed by another agent, work on a different resource or call agenthold_wait. Possible responses: "available": The resource is free. The response may include `previous_outcome` and a `hint` if the previous holder did something significant (deleted, moved, etc.). Call agenthold_claim to secure it before editing. "claimed": Another agent holds this resource. T…
| Parameter | Type | Description |
|---|---|---|
resource * | string | The resource identifier. Either a workspace-relative path (e.g. 'src/main.py'), or a URI of the form 'file://<workspace>/<path>' or 'custom://<name>'. Bare paths resolve against the workspace named 'd… |
agenthold_wait
Wait for a resource to become available. Blocks your turn until the current holder releases their claim, or the timeout expires. IMPORTANT: This call holds your agent turn until it returns — no other actions can be taken while waiting. Only use this when you need a specific resource and no other useful work can proceed without it. Pass a reasonable timeout (default 30 seconds). On timeout, the hint field suggests next steps. Possible responses: "available": The resource is now free. The response may include `previous_outcome` describing what the previous holder did (e.g. 'moved' with moved_t…
| Parameter | Type | Description |
|---|---|---|
resource * | string | The resource identifier. Either a workspace-relative path (e.g. 'src/main.py'), or a URI of the form 'file://<workspace>/<path>' or 'custom://<name>'. Bare paths resolve against the workspace named 'd… |
timeout_seconds | number | Maximum seconds to wait (default 30). On timeout, the response includes who still holds the claim. |