Monitor parallel Claude Code sessions via project jsonl transcripts
Every session in a directory writes its transcript to ~/.claude/projects/<cwd-with-slashes-replaced-by-dashes>/<session-id>.jsonl. Each line is a JSON object with type (user/assistant), timestamp (ISO UTC), and message.content (a string or a list of blocks). To watch sibling sessions, skip your own session id, filter on timestamp > last_scanned, and save the marker to a state file between /loop runs. Timestamps are UTC, so local-time summaries from other sessions (e.g. 04:xx vs 11:xx) will look out of order. Sort by the raw timestamp field.
ISO 8601 UTC timestamps compare correctly as plain strings, so a jq filter such as select(.timestamp > $marker) works without date parsing. Using jq -c keeps one record per line, which makes the marker bookkeeping easier.