Memex

Logo

The extra-context layer for AI agents — L1 eviction, sticky L2/L3 context pools, context paging, cold-tier compression.

View the Project on GitHub QiuXu-Tech/memex

Integrations: use memex from any agent

memex is now an agent-agnostic memory layer. One core, four ways in:

                        ┌─────────────────────────────┐
                        │ @qiuxu/memex-core      │
                        │ store · retrieval · cold tier│
                        │ model profiles · manual      │
                        └─────────────┬───────────────┘
        ┌───────────────────┬─────────┴─────────┬───────────────────┐
        │                   │                   │                   │
  DSH bundle          MCP stdio server    Claude Code adapter   Codex adapter
  (native L1 eviction  (any MCP client:    (MCP + hooks +        (MCP + AGENTS.md)
   panel, routes)       Claude, Codex,     CLAUDE.md)
                        Gemini, Cursor…)
Agent Setup Capture Recall
DeepSeek Harness install bundle, enable L2/L3 in the ring/panel L1 eviction seam (verbatim spans) memory_search + auto-recall
Claude Code memex-claude init PreCompact hook archives the raw transcript; memory_write tools SessionStart catalog, UserPromptSubmit auto-recall, MCP tools
OpenAI Codex memex-codex init --write-config agent calls memory_write MCP tools + AGENTS.md guidance
Gemini CLI / Cursor / Cline / Windsurf / Zed … register the stdio MCP server agent calls memory_write MCP tools + resource

Shared data model

Security

Archives are verbatim user/agent output. Treat the memory root as sensitive: