session_announce
Register session presence and claim a territory to avoid collisions. Send periodic heartbeats to keep locks alive and get live peer sessions for coordination.
Instructions
Announce this session on the session bus: registers presence with an optional territory (folder or theme this session will work on) and doubles as heartbeat. Call at session start and periodically during long work. Sessions without a heartbeat for 10 minutes are swept and their locks released. Returns the list of live peer sessions for the project so parallel sessions can split territory instead of colliding.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| territory | No | Folder or theme this session is claiming informally, e.g. 'scripts/lib' or 'docs sweep'. | |
| session_id | No | Stable identifier for this session. Defaults to the id opened by get_state, falling back to a process-scoped id. | |
| project_path | No | Absolute path to the project root. Defaults to current working directory. |