SuperAPIAI Directory

memex

github.com · AI agents

Watches git repos and builds a temporal knowledge graph of modules, symbols, decisions and open problems via Graphiti and Neo4j, served to AI coding agents.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

memex provides persistent engineering context memory for AI coding agents. The core problem it solves is: coding agents typically work from a snapshot of the code, and when a teammate pushes, another agent edits a file, or a branch moves, the agent still acts on what it previously read. memex continuously builds a bitemporal knowledge graph of the codebase, keeping the agent's engineering context up to date as the code changes.

Main Capabilities

  • Builds a bitemporal knowledge graph: covering modules, symbols, decisions, issues, evidence, and code evolution.
  • Serves via the MCP protocol: for Claude Code, Cursor, Gemini CLI, and any MCP client.
  • Parsing and storage: parses using Tree-sitter and Gemini Flash, writes to Neo4j via Graphiti.
  • 14 MCP tools: eight read, four write, two analyze.
  • Hierarchical clustering: memex cluster runs the hierarchical Leiden algorithm on a heterogeneous edge graph.
  • Three-tier confidence decay: confidence is not a mutable number that is stored, but is computed at query time from base_confidence, verification status, time since last reinforcement, and access count.
  • Live context (v1): integrates Claude Code and Codex, starts each session with the correct context, checks each edit against the current code, and tells the agent the specific changes.
  • Token savings measurement: tracks token reduction metrics and human review actions in a local SQLite database (~/.config/memex/telemetry.db), queryable via CLI or HTTP MCP transport, returning aggregate information such as period summaries, top tools, agent clients, and verification health.
  • Hermes integration: read-only integration, memex provides repository engineering context through a bounded ContextPacket, and does not ingest Hermes's state.db, transcripts, prompts, or tool results.
  • Self-hosted team deployment: supports a shared team setup with one Neo4j plus one memex-server, with authentication enabled by default and the Neo4j port not exposed to the host.

Usage

  • Installation: can be installed via the Claude Code marketplace; after installation or upgrade, the first launch downloads Python dependencies (about 40 seconds), which may exceed Claude Code's MCP connection timeoutOnce, it is recommended to warm up first and then restart. If it still shows a connection timeout, open /mcp and reconnect memex. If the tool reports that it cannot connect to Neo4j, start Neo4j (for example, docker start memex-neo4j), and the tool will recover without needing a restart.
  • Manual wiring: can be configured in .claude/settings.json, ~/.cursor/mcp.json, ~/.gemini/settings.json, and ~/.codex/config.toml.
  • Prerequisites: requires a Neo4j 5 server that the user runs themselves (Docker is not required). The hook only writes to the project configuration of the checked-out project itself; memex does not request or store client credentials.
  • Team deployment: see docker/TEAM-DEPLOY.md for the complete process, how to obtain the initial admin key, and the down -v pitfall to avoid.
  • Development: uv sync --all-extras installs the development toolchain; uv run pytest -m "not integration" runs the offline test suite; run uv run ruff check . before submitting a PR. Version upgrades require synchronously updating pyproject.toml, npm/package.json, server.json, and the team Docker image tag.

Applicable Scenarios

  • Developers using AI coding agents such as Claude Code, Cursor, Gemini CLI, and Codex who want the agent to always work based on the latest code context.
  • Team collaborative development requiring a shared engineering knowledge graph and context service.
  • Projects that need to track token savings and manual review operations.
  • Scenarios that need to provide repository engineering context in read-only form to personal memory systems such as Hermes.

Limitations

  • Requires a Neo4j 5 server that the user runs themselves.
  • The Hermes integration is read-only; memex does not ingest Hermes's state.db, transcripts, prompts, or tool results.
  • memex is not a source of personal memory or raw session state.
  • The first startup may download Python dependencies and exceed Claude Code's MCP connection timeout once.
  • The project uses the MIT license.

Other Information

  • Evaluation records are in BENCHMARK.md, release history is in CHANGELOG.md, the reporting process is in SECURITY.md, and contribution methods are in CONTRIBUTING.md.
  • The v1 design and evaluation records are in docs/v1/, and the v0.9 architecture is in docs/architecture/v0.9/.
  • Author: Hill Patel (@STiFLeR7); core contributors and maintainers include Hill Patel (architect and maintainer) and Nirvaan Lagishetty (lead contributor and maintainer).
  • The name comes from the memex concept proposed by Vannevar Bush in 1945.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools