← ClaudeAtlas

session-insightslisted

Analyze Claude Code sessions — errors, token usage, costs, search, diagnostics, recall.
snowzhaozhj/claude-devtools-rs · ★ 1 · AI & Automation · score 67
Install: claude install-skill snowzhaozhj/claude-devtools-rs
# Session Insights Progressive data loading — go deeper only when needed. ## Rules 1. `cdt session <id>` returns summary + cost + errors in one call — **no need for separate commands** 2. `--content omit` before `--content full` — browse structure first, then fetch precisely 3. `--range M:N` is **[M, N)** left-inclusive right-exclusive — `5:6` for chunk at index 5; `5:` for open-ended 4. Default **tail=20** without `--range`/`--tail`/`--all` 5. `--grep` auto-expands matched chunks to full content — use `--grep-context 0` to limit 6. Empty pipe output → print `keys()` to discover structure, don't guess field names 7. `latest` works as session ID — resolves to most recent session ## Step 1: Discover ```bash cdt projects list --format json cdt sessions list --since 7d --json=sessionId,title,messageCount,isOngoing # With project filter: cdt sessions list --project <name> --since 7d # With branch filter: cdt sessions list --branch feat/auth # With grouping: cdt sessions list --since 7d --group-by project ``` ## Step 2: Overview (single call) ```bash cdt session <id> # summary + cost + errors (composite view) cdt session <id> --include phases,tools # add phases and tool usage facets cdt session latest # most recent session ``` ## Step 3: Structure browse ```bash cdt session <id> --chunks --content omit # last 20 chunks, ~500B each cdt session <id> --chunks --content omit --all # full map (may