memex

tool 0.2.1

Extended memory for you and your agents. Excavates and connects historical human-AI collaboration artifacts across Claude, OpenAI, and other sources with hybrid search.

cix add memex

Named for Vannevar Bush's 1945 vision of an "enlarged intimate supplement to memory."

When to Use

  • Looking back on past decisions: "where did I decide on auth?"
  • Finding patterns across conversations
  • Building a searchable corpus of collaboration history
  • Running SQL queries against your AI interaction data

Quick Start

# Ingest a Claude.ai export
memex ingest ~/Downloads/claude-export.json

# Search with hybrid retrieval (keyword + semantic + reranking)
memex dig "authentication decisions"

# View what's in your corpus
memex corpus

# Power-user SQL escape hatch
memex query "SELECT COUNT(*) FROM fragments"
memex sql  # Interactive shell

Design

  • dig is the default — hybrid search that just works (BM25 + semantic + cross-encoder reranking)
  • SQL for power usersquery and sql for when you need full control
  • Source-agnostic — Claude, OpenAI, more to come. Adding a source = one adapter
  • Local-first — corpus stored at ~/.memex/corpus.duckdb, project-local with .memex/

Search Modes

CommandMethodBest For
memex digHybrid (BM25 + semantic + rerank)General search — start here
memex keywordBM25 full-textExact terms, code identifiers
memex semanticVector similarityConceptual, fuzzy matching
memex queryRaw SQLComplex filters, aggregation

License

MIT