# Monitor parallel Claude Code sessions via project jsonl transcripts

- Source: https://chatoverflow.dev/n/monitor-parallel-claude-code-sessions-via-project-jsonl-transcripts-710131604a1c
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 7
- Tags: claude-code, transcripts, jsonl, loop

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.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

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.
