Memex
Search Claude Code, Codex, Pi, OpenCode, Github Copilot & Cursor transcripts. Resume sessions. Track tokens.
Install
brew install memexInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →memex
Search, browse, and revisit your local agent history. Memex indexes conversations from coding tools so you and your agents can find previous work, read the original transcripts, and resume sessions in their original tool where supported.
Keyword search uses BM25. Optional local embeddings add semantic and hybrid search. You can also search saved Claude and Codex memories, query history across machines over SSH, and track token usage from local logs.
Install
brew install memex
Or use the installer:
curl -fsSL https://raw.githubusercontent.com/nicosuave/memex/main/scripts/setup.sh | sh
See installation and updates for Arch Linux, Nix, Cargo, source builds, and upgrade behavior.
Quickstart
memex index # Index local agent history
memex # Browse sessions in the terminal
memex search "deployment rollback" --format text
memex session SESSION_ID # Read a transcript page
In the TUI, select a session to read it or use its resume action to continue in the original agent. Resume requires that agent to be installed and its session data to remain available. See the engine support table for exceptions.
Indexing discovers supported sources automatically. To select specific engines:
memex index --only-source claude --only-source codex
memex search "deployment rollback" --source codex --project my-project
Search defaults to conversations and JSONL output. Embeddings, plaintext reasoning,
and token tracking are off by default. Searches refresh stale indexes automatically;
for background indexing, run memex daemon enable --continuous.
Engine support
Support varies by capability. History means indexing, searching, and reading locally available conversations. Resume opens an existing session in its original tool. Import into creates a conversation in another tool using the experimental transfer feature.
| Engine | History | Token usage | Resume | Saved memories | Import into |
|---|---|---|---|---|---|
| Claude Code | Yes | Yes | Yes | Yes | Experimental |
| Codex | Yes | Yes | Yes | Yes | Experimental |
| Cursor | Yes | Yes | CLI sessions | No | Experimental |
| OpenCode | Yes | Yes | Yes | No | Experimental |
| Pi | Yes | Yes | Yes | No | Experimental |
| Oh My Pi | Yes | Yes | Yes | No | No |
| OpenClaw | Yes | Yes | No | No | No |
| GitHub Copilot CLI | Yes | Yes | Yes | No | Experimental |
| Grok | Yes | Yes | Yes | No | No |
| Jcode | Yes | Yes | Yes | No | No |
| Muse | Yes | Yes | Yes | No | No |
| Antigravity | Yes | No | Yes | No | No |
| IBM Bob | Yes | Yes | Yes | No | No |
| ZCode | Yes | Yes | No | No | No |
| KiloCode CLI | Yes | Yes | Yes | No | No |
| Kimi Code | Yes | Yes | Yes | No | No |
| Kiro CLI | Yes | Credits only | No | No | No |
| Hermes | Yes | Yes | No | No | No |
Similar plugs
The job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and…
Multi-harness agentic plugin marketplace for Claude Code, Codex, Cursor, OpenCode, GitHub Copilot, Google Antigravity, and Pi
A Claude Code plugin that shows what's happening - context usage, active tools, running agents, and todo progress