Skip to content

Session discovery, categorization, and AI summaries (peek, tag, summarize, projects) #6

@djdarcy

Description

@djdarcy

Session discovery, categorization, and AI summaries

Problem

Users often don't know which session corresponds to which project. Sessions start in one folder but migrate to another. Auto-generated names are unhelpful. With 100+ sessions, finding "the one where I fixed the auth bug" requires opening each one.

csb list and csb scan solve the discovery problem at the folder level -- you can see which folders a session touched. But there's no way to understand what the session was about without opening the full transcript.

Proposed features

Session preview (csb peek <id>)

Show the first user message + last user message from the JSONL. Gives a quick sense of the session's arc without reading the whole thing.

$ csb peek 916441e6
Session: EXT-TOOL__CLAUDE-VAULT
First message (2026-03-23 18:14):
  "Hey Claude I just git cloned claude-vault..."
Last message (2026-03-25 02:28):
  "Let's do a /fullpostmortem and then commit..."

AI-generated summaries (csb summarize <id>)

Parse the first N and last N messages, send to an LLM, get a 1-2 sentence summary. Store in the index for future csb list display.

$ csb summarize 916441e6
Summary: Built Claude-Session-Backup (csb) tool from scratch.
  Evaluated claude-vault, history-viewer, session-logger.
  Implemented git-backed backup with timeline, folder analysis, purge countdown.

Could also batch-summarize: csb summarize --all --unsummarized

Session tagging (csb tag <id> <label>)

User-defined labels for sessions. Stored in the SQLite index. Searchable via csb list.

$ csb tag 916441e6 "csb-development"
$ csb list csb-development

Session grouping by project

Automatically group sessions by their primary working directory. All sessions where aichatnav was the top folder get grouped together.

$ csb projects
  C:\code\chrome-extension\aichatnav\local  (3 sessions, 9500 messages)
  C:\code\ComfyUI_experiment                (5 sessions, 12000 messages)
  C:\code\github-traffic-tracker\local      (2 sessions, 2300 messages)

Project association

Link sessions to GitHub repos based on folder paths. Detect .git/config remote URLs in working directories.

Priority

  • peek -- quick win, high value, no external dependencies
  • tag -- simple metadata addition
  • projects grouping -- derivable from existing folder analysis data
  • summarize -- requires LLM access, expensive, but most valuable

Related

  • csb list [filter] already provides keyword-based discovery
  • csb scan [path] provides directory-scoped discovery
  • /renameAI in claude-session-logger does AI naming for active sessions
  • Claude Code History Viewer handles full conversation browsing (not our job)

Analysis

See notes/ideas/2026-04-02__19-41-58__both_plugin-architecture-and-session-discovery-vision.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions