watching-another-claude-session-livelisted
Install: claude install-skill sblattj/agent-chandlery
## More triggers
watch-claude-session (old name)
# watching-another-claude-session-live
Read-only window into another session's `~/.claude/projects/<dir>/<uuid>.jsonl`.
## Do this
```bash
W=${SKILL_DIR:-~/.claude/skills/watching-another-claude-session-live}/watch.sh
$W find ~/clone/acme-api # newest transcript for that repo dir (or pass a uuid)
$W catchup ~/clone/acme-api 40 # last 40 USER/TOOL/TOOL_ERR lines (history before the watch)
```
Then arm a Monitor (not a background Bash) on the live stream:
```
Monitor command: ${SKILL_DIR:-~/.claude/skills/watching-another-claude-session-live}/watch.sh live ~/clone/acme-api
description: "<repo> session <uuid8>: prompts, replies, tool calls, errors"
```
Re-arm it when it expires (about every 30 minutes). Check `catchup` again after a re-arm, since the gap is not replayed.
## Why it's built this way (friction mined)
- **Project dir naming:** the repo's absolute path with every `/` and `.` turned into `-`, so `~/clone/acme-api` on macOS becomes `-Users-<you>-clone-acme-api`. Several uuids live there; the newest by mtime is the live one.
- **`tail -n 0 -F` starts at the end**, so the first monitor missed everything the session had already done. Always run `catchup` first.
- **One jq filter, four line kinds:** `USER:` (string content), `TOOL_ERR:` (tool_result with is_error), `CLAUDE:` (text), `TOOL <name>:` (command, description, file_path, or the raw input). Long content is squashed to one line and cut