50 lines
1.6 KiB
Markdown
50 lines
1.6 KiB
Markdown
---
|
|
name: session-inbox-monitor
|
|
version: 0.1.0
|
|
description: >
|
|
Raises a persistent Monitor (Monitor tool, NOT background Bash) on the
|
|
project's `.claude-inbox/` at the start of an interactive session, so
|
|
inter-session messages page the session in real time; the monitor dies on
|
|
session end on its own. A paired SessionStart hook injects the
|
|
raise-instruction and first sweeps orphaned monitors of this inbox (a
|
|
`/clear` leaves them running → re-raise would stack duplicates). Triggers:
|
|
CLAUDE.md line `inbox monitor: raise on start`, or «подними монитор почты»,
|
|
«настрой авто-монитор инбокса», «raise inbox monitor», «auto-arm inbox
|
|
watcher». Headless (`claude -p`): does NOT raise — Monitor doesn't work
|
|
there; rely on the Stop-hook inbox pickup + Notify/ntfy. NOT for how to
|
|
handle a received message (→ inter-session-peer-discipline) nor the
|
|
multi-machine inbox backend (→ cross-machine-inbox design).
|
|
---
|
|
|
|
# session-inbox-monitor
|
|
|
|
Auto-raises a session-length Monitor on `.claude-inbox/` at interactive-session
|
|
start (via a paired SessionStart hook that injects the instruction and sweeps
|
|
orphans), so inter-session messages page the session in real time. Tears down
|
|
for free on session end. Headless sessions skip it and rely on the pull-model
|
|
(Stop-hook pickup + Notify).
|
|
|
|
## When to use
|
|
|
|
<пусто — дописывается во втором проходе>
|
|
|
|
## Inputs
|
|
|
|
<пусто>
|
|
|
|
## Steps
|
|
|
|
<пусто>
|
|
|
|
## Failure modes
|
|
|
|
<пусто>
|
|
|
|
## Side effects
|
|
|
|
<пусто>
|
|
|
|
## What NOT to do
|
|
|
|
<пусто>
|