SuperAPI AI Directory

waypath

Local-first memory CLI for coding agents: SQLite-backed context, graph-aware recall via FTS5 and RRF, and governed memory with promote and review gates.

Open website

About this tool

Waypath is a local-first knowledge engine for coding agents and independent developers. It stores project decisions, entity relationships, and session artifacts in a single SQLite file, then provides graph-aware, fact-first context to any agent host (Claude Code, Codex, or MCP clients) through a lightweight CLI. Unlike cloud memory services, Waypath runs entirely on the user's machine, has a canonical fact schema rather than vector chunks, treats each memory as a first-class citizen with explicit promotion and review gates, and ships as a 77 kB npm package with no required runtime services.

Main capabilities:

  • Local-first storage: all data is kept in a single SQLite file, with zero cloud dependency.
  • Graph-aware recall: context retrieval via FTS5 full-text indexing and RRF fusion, with support for entity/decision context expansion.
  • Governed memory: each memory goes through candidate review, contradiction detection, and supersession processes, with explicit promotion and review gates.
  • Multi-host adaptation: can run as an MCP server for Claude Code, Cursor, and any MCP client.
  • Four independent kernels: fact kernel (canonical decisions, entities, preferences, temporal validity; schema v3 supports supersession and history), archive kernel (raw evidence storage, content-hash deduplication, and FTS5 full-text indexing), ontology layer (graph traversal, with patterns including project_context, person_context, system_reasoning, contradiction_lookup), promotion engine (candidate review, contradiction detection, supersession processes).
  • A single createFacade() exposes 14 verbs, and host shims adapt it to each agent's bootstrap protocol.

Usage: Install: npm i -g waypath Requires Node.js ≥ 22; 22.5+ is recommended to enable the native node:sqlite driver; 22.0–22.4 automatically falls back to better-sqlite3. Typical flow:

  1. Bootstrap a session (using Codex as an example).
  2. Recall relevant context.
  3. Capture distilled insights and promote them through review.
  4. Run as an MCP server (for Claude Code, Cursor, any MCP client). Full help: waypath --help. The MCP server can be started via a standalone binary or the main CLI, and the exposed tools include: recall, page, promote, review, graph-query, source-status. Configuration: zero configuration by default. You can place config.toml in the working directory (or point to a config file with WAYPATH_CONFIG_PATH) to adjust retrieval weights, adapter switches, or review thresholds; it can also be overridden via environment variables. Priority: environment variable overrides > config.toml > built-in defaults.

Use cases:

  • Provide persistent project context across sessions for coding agents such as Claude Code and Codex.
  • For individual developers or small teams that need local storage and do not want to depend on cloud services.
  • For agent workflows that need graph-structured relationship recall and memory governance (review, contradiction detection, supersession).

Limitations and status:

  • Version 0.1.0, the first public release.
  • Tests: 131 passing (unit + integration + benchmark).
  • Stable interfaces: CLI (26 commands), MCP server, facade API.
  • Deferred features: hosted deployment, multi-user sync, adaptive ranking feedback.
  • Requires Node.js ≥ 22.0.
  • Licensed under MIT.