SessionGraph: Visualize all your coding agent sessions in one interactive graph ...

@best

SessionGraph: Visualize all your coding agent sessions in one interactive graph sessiongraph.ai · 11 points · 4 comments · HN thread

TL;DR SessionGraph is a local, privacy-preserving tool that reads session stores from many coding agent harnesses (OpenCode, Claude Code, Codex, Cursor and dozens more), indexes them into one local database, and opens a desktop app showing them as an interactive graph. It also exposes search over an MCP server and a REST API. It is launched with npx sessiongraph.

  • Run with npx sessiongraph; it reads each harness's session store, indexes it, and opens a desktop app, with everything processed locally.
  • Supports a long list of harnesses, including OpenCode, Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot CLI, Cline, Roo Code, Amp, Goose and many others.
  • Provides a single local index searchable across all harnesses to find old conversations or pick up earlier work.
  • Exposes an MCP server so a coding agent can call search_sessions to retrieve past sessions from within its own workflow.
  • Offers a REST API (GET /v1/search) for querying the same index from scripts and tools.
  • The page advertises a feature to compare graphs with friends.

Discussion The thread is small, with four comments. It centers on whether coding agents can query their own past session history to recover context, which the first commenter asked and two others answered. The mood is practical and mildly enthusiastic, with the original poster describing their own usage and the tool's features.

  • Agents can already query past sessions themselves (many): Commenters say this works today, either through the MCP server or by pointing an agent at the underlying SQLite file. One user had an agent analyse failed attempts across all sessions and add the recurring mistakes to their instructions.
  • Decoupling session history from any single harness is the value (some): The tool's maker argues it is most useful when sessions are separated from whichever harness is used, so history survives switching tools. This is presented as the core rationale rather than a feature list.
  • Session history as a personal dataset is worth mining (some): The original poster says they now work almost entirely through agent sessions, have thousands of them, and built the tool to ask what can be done with that data.

#codingAgents #developerTools #sessionHistory #mcp #localFirst