Claudex
Search Claude Code history and give it durable memory across sessions.
- Source repo
- kunwar-shah/claudex
- Stars
- ★ 97
- Last updated
- 4mo ago
- License
- MIT
- Primary language
- JavaScript
- FA score
- 49/100 · Major gaps
At a glance
- How it runs
- Works with
- Platform-specificClaude Code
- Cost
- Free, no paid service needed
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A developer working across several Claude Code projects needs to recover an earlier migration plan, command, or implementation detail from all local sessions.
- Not a fit if
- Teams not using Claude Code or without ~/.claude/projects history
- Users who need live search with automatic index updates
- Production teams needing multi-user sync or backup/migration
- Website
- kunwar-shah.github.io/claudex ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-06-20latest release v1.3.3 (2026-05-03)
- Source review
- 49/100 · Major gaps
What does this agent do, and when should you use it?
Claudex is a self-hosted, full-stack conversation viewer, search service, and memory layer for Claude Code. Its Fastify backend scans JSONL sessions under ~/.claude/projects, indexes them with SQLite FTS5, and exposes project, session, search, export, and health APIs. A React interface provides conversation browsing, analytics, favorites, and specialized rendering for Markdown, code, diffs, JSON, and tool activity. The included stdio MCP server supplies Claude Code with 10 tools, three prompts, and structured memories carrying priority, confidence, and TTL metadata. It can run from npm, source, or Docker; in production, Fastify serves both the API and built frontend on port 3400 by default.
fileScanner.js discovers projects and sessions from PROJECT_ROOT, which defaults to ~/.claude/projects, while templateDetector.js and messageParser.js detect and parse V1, V2-Mixed, and V3 records. searchIndexer.js builds a SQLite FTS5 index, and searchDatabase.js supports highlighted queries filtered by project, session, role, date range, and content. The web client uses components including ProjectSelector.jsx, SessionList.jsx, ConversationThread.jsx, ClaudeMessageRenderer.jsx, and SearchPage.jsx to display conversations, tool usage, file operations, and analytics. Fastify routes such as /api/projects, /api/search, /api/search/index/build, /api/search/index/status, /api/export/session/:projectId/:sessionId, and /api/health expose the same data programmatically and produce JSON, HTML, or TXT exports. Over stdio, the MCP entry point provides project context, session search, conversation retrieval, and structured-memory CRUD, with minimal, standard, and full context-detail levels.
- A developer working across several Claude Code projects needs to recover an earlier migration plan, command, or implementation detail from all local sessions.
- A team wants Claude Code to recall established architecture decisions, coding conventions, and known error patterns when a fresh session begins.
- A QA engineer needs to inspect complete conversations, tool activity, and file operations, then export relevant sessions as JSON, HTML, or TXT.
- A researcher wants to filter Claude Code history by role, project, date, and content and examine message-distribution or session statistics.
- A user wants a locally hosted browser for Claude Code records while mounting the source project-history directory read-only in Docker.
- A long-time Claude Code user has V1, V2-Mixed, V3, or transitional history files and needs automatic format detection.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npm install -g @kunwarshah/claudex
- Ports
3500·3400- Config files
~/.claude/projects- Runtime
- Node.js 18+
How do you install or deploy this agent?
Install Node.js 18+, npm, and Claude Code, and ensure Claude Code has created history under ~/.claude/projects. The recommended installation is:
npm install -g @kunwarshah/claudexclaudex
You can instead run npx @kunwarshah/claudex, select another port with claudex --port 3500, or select another history root with claudex --project-root ~/my-claude-projects. Register the persistent-memory MCP server with:
claude mcp add --transport stdio claudex -- claudex-mcpBefore the first search, use “Rebuild Index” in the Search page or run:
curl -X POST http://localhost:3400/api/search/index/buildFor a source install, run git clone https://github.com/kunwar-shah/claudex.git, enter the repository, install dependencies in the root, server, and client directories with npm install, and start with npm run dev. No API key or hosted-service credential is documented.
How do you use this agent?
Start claudex, then use the browser interface to select projects and sessions, read messages, view analytics, or rebuild the search index. The service and index can be checked from the shell:
curl http://localhost:3400/api/health
curl http://localhost:3400/api/search/index/statusA filtered full-text query can be submitted with:
curl -X POST http://localhost:3400/api/search -H "Content-Type: application/json" -d '{"q":"database","projectId":"my-project","role":"user","limit":20,"offset":0}'Export a session through /api/export/session/:projectId/:sessionId?format=json, changing format to html or txt when needed. Rebuild the index through the UI or POST /api/search/index/build after new conversations arrive. Once the MCP server is registered, Claude Code can access historical context and structured memories; /recall, /catchup, and /history are the three documented prompts.
What are this agent's strengths and limitations?
- Combines a web conversation viewer, SQLite FTS5 search, and a Claude Code MCP memory service in one local application.
- Explicitly handles V1, V2-Mixed, V3, and mixed migration states instead of requiring a single history schema.
- Search includes project, session, role, and date filtering plus result highlighting, going beyond raw JSONL browsing.
- Structured memories support priority from 1 to 10, confidence, TTL expiration, and three context-detail levels.
- Offers npm, source, and multi-architecture Docker deployment; the Docker setup uses a read-only history mount, health checks, and log rotation.
- Exports sessions as JSON, HTML, or TXT and exposes scriptable HTTP endpoints.
- The data source and MCP integration are Claude Code-specific; there is no documented adapter for other assistants or model platforms.
- Search is not live: the index must be rebuilt initially and after new conversations, while WebSocket updates remain a roadmap item.
- Local operation requires Node.js 18+, npm, readable Claude Code history, and a writable location for the SQLite database.
- Development mode uses separate ports 3000 and 3400, so port conflicts and filesystem permissions can require manual remediation.
- The token-cost calculator and custom-parser plugin system are not implemented yet.
- Structured memory creates additional local database state; the source documents persistent volumes but not backup, migration, or multi-user synchronization procedures.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Claudex This agent | 49 · Major gaps | CLIFree | ★ 97 | 4mo ago | JavaScript | Claude Code |
| Ori Mnemos | 56 · Major gaps | CLIFree | ★ 336 | 1mo ago | TypeScript | Claude Code · OpenAI API · Claude API |
| Mnemo Cortex | 75 · Good | Self-hosted serviceFree | ★ 160 | 1d ago | Python | Codex · Claude Code · Claude.ai |
| MisakaNet Failure-Memory Library | 74 · Some gaps | MCP serverFree | ★ 558 | today | Python | ChatGPT · Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The code clearly reads Claude project history, and the README describes a read-only Docker mount; however, the MCP service supports structured-memory writes, while per-action confirmation, sensitive-field filtering, and dependency review are not shown. Permission and protection details are limited, and the index-clear endpoint has no documented recovery path.
The MCP entry redirects console.log to stderr, initializes services lazily, and logs startup failures. However, version references are not fully aligned across the README and package metadata (the README highlights 1.3.0 while package.json says 1.3.4), and dependency availability and MCP failure cases receive limited evidence.
The documentation targets developers, QA engineers, and researchers, and covers local, Docker, WSL, custom-path, and MCP setup. Tool instructions encourage loading project memory at session start, but the proactive-call guidance is broad and gives few precise boundaries for when reading or writing should be avoided.
The repository layout, installation and configuration guides, FAQ, troubleshooting steps, and MIT license are clearly presented, and the README includes release notes. Known limitations are sparse, version references differ across documents, and maintenance responsibility is only indirectly indicated by the author attribution and support links.
The product offers conversation search, summaries, project context, and structured memory with priority, confidence, and TTL, which could reduce repeated retrieval and improve context use. The supplied source sample does not quantify benefits, resource costs, or operating conditions, so cost-benefit is only partly established.
Installation, feature, and MCP startup claims have some support in the README, package manifest, and entry point. Cross-source corroboration is limited, and claims such as “enterprise-grade,” universal format support, and data never leaving the machine are not fully established by the supplied source, so confidence remains low.
- The tool reads Claude conversation history and can write persistent memory; before enabling it, confirm that the local history directory and generated memory are appropriate to expose to the MCP client.
- The README says data stays local, but the supplied materials do not fully show all network behavior or sensitive-data filtering.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v1.3.3 v1.3.3 — Official MCP Registry + major UX polish
Release notes excerpt
What's new This release brings two big things: 1. Official MCP Registry support — Claudex is now publishable to Anthropic's official MCP Registry at registry.modelcontextprotocol.io for canonical discovery by all MCP clients (Claude Code, Cursor, Codex, Windsurf). 2. Substantial UX polish — auto-apply settings, theme preview, error boundary, toast system, keyboard shortcuts, code-splitting, and a long bug-fix list. MCP Registry - Added mcpName: io.github.kunwar-shah/claudex to package.json - Added server.json manifest at repo root UX Polish …View on GitHub ↗ -
v1.3.2 v1.3.2 — Persistent memory MCP for Claude Code
Release notes excerpt
What's new This is a metadata refresh release — no functional code changes since v1.3.0, but a lot of housekeeping that makes Claudex easier to find and understand. Highlights - 🎬 Animated hero GIF in README (thanks @livlign for [PR #39](https://github.com/kunwar-shah/claudex/pull/39)) - 💝 GitHub Sponsors enabled — Sponsor button now visible on the repo - 🔍 Honest, MCP-focused description — "Persistent memory + FTS5 search for Claude Code conversations" …View on GitHub ↗ -
v1.3.0 v1.3.0 — MCP Server & Structured Memory
Release notes excerpt
What's New MCP Server for Claude Code Claudex now includes a Model Context Protocol (MCP) server that gives Claude Code persistent memory across sessions. Claude can remember your codebase conventions, architecture decisions, error patterns, and more. One-command setup: ```bash npm install -g @kunwarshah/claudex claude mcp add --transport stdio claudex -- claudex-mcp ``` 10 MCP Tools | Tool | Description | |------|-------------| | get_project_context | Condensed project snapshot (call this first!) | | list_projects | List all Claude Code projects | …View on GitHub ↗
FAQ
Does Claudex require a paid API or credentials?
Does it modify the original Claude Code conversations?
Why are recent conversations missing from search?
Can it work directly with ChatGPT, Codex, or generic OpenAI and Anthropic APIs?
What deployment options are supported?
Is Claudex open source?
Is Claudex safe to use?
Is Claudex still maintained?
Who makes Claudex?
What is Claudex's official website?
Thanks — we use this to improve the page.