sessionwiki is a local-first open-source tool designed to turn AI coding sessions into a searchable, interlinked knowledge base. It extracts information from the full session transcripts that agents such as Claude Code, Codex CLI, Cursor, Gemini CLI, Copilot, ZCode, and OpenCode write to disk, and organizes them uniformly into Wiki pages.
Key capabilities:
- Unified archiving of multi-agent sessions: sessions from different agents are tagged by agent, project, model, and date, and consolidated into the same Wiki.
- Automatic sync: kept up to date via hooks, the OpenCode plugin, and a nightly scheduled task, with no manual runs required.
- LLM synthesis: generates a summary page for each session; low-signal sessions are collapsed into cluster pages to avoid clutter. The extractive mode is used by default (no LLM or network required), and ollama, OpenAI-compatible endpoints, agent-delegate, or dummy backends can also be used.
- Session graph and search: sessions are grouped around projects, and ⌘K instant search covers all pages.
- MCP server: a built-in MCP server provides wiki_query, wiki_search, wiki_read_page, wiki_list_sources, wiki_lint, wiki_sync, wiki_export, wiki_dashboard, and protected write tools, 11 tools in total, with only 6 read-only tools exposed by default to save tokens.
- Static site generation: can be deployed to GitHub Pages, Docker, Vercel, or Netlify.
- Privacy protection: transcripts are redacted on import (usernames, home directory paths, 31 kinds of keys/tokens/passwords, and custom patterns); the ZCode and OpenCode databases are opened read-only; data does not leave the local machine unless a remote synthesis backend is configured; sessionwiki audit can check the output before publishing.
Usage:
- Use setup to create a .venv, install the package, set up the raw/, wiki/, and site/ directories, enable the detected agent adapters, and run sessionwiki doctor.
- You can also install the published package or use the Docker image ghcr.io/necroz/sessionwiki.
- Connecting agents: for Claude Code, a single command adds the Stop hook, SessionStart hook, nightly task, and MCP server; Codex CLI, Cursor, Gemini CLI, and Copilot have their session folders read directly during sessionwiki sync; ZCode is exported read-only from SQLite and has hooks and a nightly task installed; OpenCode syncs automatically when a session goes idle via a server plugin.
- Run sessionwiki sync to populate raw/, then run sessionwiki synthesize to generate Wiki pages.
- Use the published package via uvx from an MCP client (such as Claude Code, Claude Desktop, or ZCode), and set SESSIONWIKI_HOME to point to the folder containing raw/ and wiki/.
Use cases:
- Developers who want to review and reuse problems already solved in AI coding sessions.
- Teams that need agents to query past decisions before re-solving a problem.
- Users who want to organize sessions from multiple agents into a single browsable knowledge base.
Limitations:
- The project is developed based on llmwiki, and some features are inherited from the original project.
- Default extractive synthesis does not rely on an LLM, but the quality of the generated pages is limited; when using a remote synthesis backend, be aware of the risk of data being sent off-machine.
- If the nightly task is not configured, only raw/ grows and Wiki pages are not generated automatically.
- Some features (such as the UserPromptSubmit hook) must be explicitly enabled.
- Specific pricing, costs, and platform support details are not yet provided.