sentinel_presence
Coordinate parallel coding agents with a shared presence board: claim files, detect conflicts, release claims, and checkpoint before irreversible steps.
Instructions
Shared presence board for every agent working in this repository (advisory — it never blocks an action). Quick usage: • Claim files before writing: { action: 'claim', paths: ['src/file.js'], mode: 'edit', note: 'why' }. • Release files when done: { action: 'release', paths: ['src/file.js'] }. • Checkpoint changes: { action: 'checkpoint' }. • Read active board: { action: 'read' }. checkpoint is the one call to make before an irreversible step. claim records working paths and reports conflicts; release drops your claims. Signals: 'signal'. Directives: 'direct', 'ack', 'resolve'. Atomic queues: 'allocate'. Pheromones: 'alarm', 'attract'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Signal/contract key to post (action: signal) | |
| kind | No | Directive kind (action: direct) | |
| mode | No | Claim mode (default edit) | |
| note | No | Why you are in these paths (or a note on an acknowledgement) — other agents inherit this | |
| items | No | Ordered candidate items to allocate from (action: allocate) | |
| paths | No | Repository-relative paths to read, claim, or release | |
| value | No | Arbitrary JSON-serializable signal payload (action: signal) | |
| action | Yes | Board operation | |
| target | No | What the directive is about: a path, a job id, or a short description (action: direct) | |
| agentId | No | Calling agent identity (defaults to server PID); for 'direct', the target agent to steer | |
| issuedBy | No | Who is issuing the directive (action: direct; defaults to the caller) | |
| queueKey | No | Named queue key for atomic item allocation (action: allocate) | |
| rationale | No | Why the directive was issued — the steered agent inherits this | |
| ttlMinutes | No | Claim or directive lifetime in minutes (default 15 for claims, 10 for directives; max 1440) | |
| directiveId | No | Directive to acknowledge or resolve (action: ack / resolve) |