session_announce
Register session presence with an optional territory and heartbeat to prevent lock expiration, and retrieve live peer sessions to divide work without overlaps.
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. |