Skip to main content
Glama

[!TIP] 처음 오셨나요? 빠른 시작을 통해 npm install부터 첫 번째 지속적 에이전트 세션까지 약 60초 만에 완료할 수 있습니다.


Waypath란 무엇인가요?

Waypath는 코딩 에이전트와 1인 개발자를 위한 로컬 우선 지식 엔진입니다. 프로젝트 결정 사항, 엔티티 관계 및 세션 아티팩트를 단일 SQLite 파일에 저장하고, 가벼운 CLI를 통해 Claude Code, Codex 또는 MCP 클라이언트와 같은 모든 에이전트 호스트에 그래프 인식형, 진실 우선 컨텍스트를 제공합니다.

클라우드 메모리 서비스와 달리 Waypath는 다음과 같은 특징이 있습니다:

  • 완전히 로컬 환경에서 실행됩니다.

  • 벡터 블롭 대신 **표준 진실 스키마(canonical truth schema)**를 소유합니다.

  • 명시적 승격 + 검토 게이트를 통해 모든 메모리를 일급 객체로 취급합니다.

  • 필수 런타임 서비스 없이 77kB의 npm 패키지로 제공됩니다.

Related MCP server: wadachi

왜 Waypath인가요?

문제

Waypath의 해결책

에이전트가 세션 간 기억을 잊음

지속적인 SQLite 진실 커널

RAG가 관련 없는 청크를 반환함

그래프 확장을 포함한 FTS5 + RRF 하이브리드 랭킹

메모리 서비스가 조용히 환각을 일으킴

명시적 page → promote → review 거버넌스

클라우드 종속성, 데이터 유출

모든 것이 사용자가 소유한 하나의 로컬 .db 파일

호스트별 도구 (Claude, Codex, Cursor)

단일 파사드, 가벼운 호스트 심(shim), 네이티브 MCP 서버

설치

[!IMPORTANT] Node.js ≥ 22가 필요합니다. Node 22.5+는 네이티브 node:sqlite 드라이버를 활성화하며, 이전 22.x 버전은 자동으로 better-sqlite3로 대체됩니다.

npm install -g waypath

확인:

waypath --help
waypath source-status --json

빠른 시작

1. 세션 부트스트랩 (Codex 예시):

waypath codex --json \
  --project my-project \
  --objective "ship v2 of the retrieval pipeline" \
  --task  "refactor hybrid ranker" \
  --store-path ~/.waypath/my-project.db

2. 관련 컨텍스트 회상:

waypath recall --query "hybrid ranker decisions" --json

3. 추출된 통찰력을 캡처하고 검토를 통해 승격:

waypath page    --subject "hybrid ranker v2 design"
waypath promote --subject "hybrid ranker v2 design"
waypath review-queue --json

4. MCP 서버로 실행 (Claude Code, Cursor, 모든 MCP 클라이언트용):

waypath mcp-server --store-path ~/.waypath/my-project.db

작동 방식 확인

$ waypath codex --json --project auth-service \
    --objective "migrate to passkeys" --task "design flow"
{
  "host": "codex",
  "session_id": "auth-service:passkey-flow",
  "context_pack": {
    "truth_highlights": {
      "decisions": [
        "Use WebAuthn level 2 with user verification required",
        "Argon2id for password fallback hashing"
      ],
      "entities": ["UserSession", "AuthGateway", "RefreshToken"],
      "contradictions": []
    },
    "recent_pages": [
      "Session storage design — promoted 2026-04-12"
    ]
  }
}

명령어 영역

영역

명령어

세션 부트스트랩

codex, claude-code, mcp-server

회상

recall, explain, graph-query, history

페이지 (추출된 지식)

page, promote, refresh-page, inspect-page

검토 거버넌스

review, review-queue, inspect-candidate, resolve-contradiction

가져오기 / 스캔

import-seed, import-local, scan

상태

source-status, health, db-stats, rebuild-fts

유지보수

backup, benchmark, export

전체 도움말: waypath --help.

아키텍처

Waypath는 가벼운 파사드 뒤에 4개의 독립적인 커널로 구축되었습니다:

flowchart TD
    subgraph HOST[" Host Shims "]
        direction LR
        CX["codex"]
        CC["claude-code"]
        MC["mcp-server"]
    end

    Facade["<b>Facade</b><br/><code>createFacade()</code>"]

    TK["<b>Truth Kernel</b><br/>decisions · entities · preferences<br/>temporal validity · supersede"]
    AK["<b>Archive Kernel</b><br/>evidence · content-hash dedup<br/>FTS5 index"]
    ON["<b>Ontology</b><br/>graph traversal<br/>pattern expansion"]
    PR["<b>Promotion Engine</b><br/>candidate review<br/>contradiction detection"]

    HOST --> Facade
    Facade --> TK
    Facade --> AK
    Facade --> ON
    Facade --> PR

    classDef kernel fill:#21262d,color:#c9d1d9,stroke:#30363d,stroke-width:1px
    classDef facade fill:#1f6feb,color:#ffffff,stroke:#58a6ff,stroke-width:2px
    classDef host fill:#161b22,color:#c9d1d9,stroke:#30363d,stroke-width:1px
    class TK,AK,ON,PR kernel
    class Facade facade
    class CX,CC,MC host
  • 진실 커널(Truth kernel) — 표준 결정, 엔티티, 선호도, 시간적 유효성 (supersede + history를 포함한 스키마 v3).

  • 아카이브 커널(Archive kernel) — 콘텐츠 해시 중복 제거 및 FTS5 전문 검색 인덱스를 갖춘 원시 증거 저장소.

  • 온톨로지 계층(Ontology layer) — 엔티티/결정 컨텍스트 확장을 위한 그래프 탐색 (패턴: project_context, person_context, system_reasoning, contradiction_lookup).

  • 승격 엔진(Promotion engine) — 후보 검토, 모순 탐지, 대체 흐름.

단일 createFacade()가 14개의 동사를 노출합니다. 호스트 심(shim)은 이를 각 에이전트의 부트스트랩 프로토콜에 맞게 조정합니다.

구성

Waypath는 기본적으로 설정이 필요 없습니다. 검색 가중치, 어댑터 토글 또는 검토 임계값을 조정하려면 작업 디렉토리에 config.toml을 배치하거나 WAYPATH_CONFIG_PATH를 해당 파일로 지정하세요:

[source_adapters]
jarvis-memory-db = true
jarvis-brain-db  = false

[retrieval.source_system_weights]
truth-kernel = 1.2

[retrieval.source_kind_weights]
decision = 0.9
memory   = 0.5

[review_queue]
limit = 12

환경 변수를 통해 무엇이든 재정의할 수 있습니다:

export WAYPATH_RECALL_WEIGHT_SOURCE_SYSTEM_TRUTH_KERNEL=1.8
export WAYPATH_REVIEW_QUEUE_LIMIT=8

우선순위: 환경 변수 재정의 > config.toml > 내장 기본값.

MCP 서버

Waypath는 두 번째 바이너리로 네이티브 MCP(Model Context Protocol) 서버를 제공합니다:

waypath-mcp-server

또는 메인 CLI를 통해 실행:

waypath mcp-server --store-path ~/.waypath/project.db

MCP를 통해 노출되는 도구: recall, page, promote, review, graph-query, source-status.

요구 사항

  • Node.js ≥ 22.0 (필수)

  • Node.js ≥ 22.5 권장 — 네이티브 node:sqlite 활성화

  • better-sqlite3는 22.0–22.4 버전 또는 네이티브 sqlite를 사용할 수 없는 경우 자동으로 사용되는 선택적 대체 라이브러리입니다.

상태

  • 버전: 0.1.0 — 첫 번째 공개 릴리스

  • 테스트: 131개 통과 (단위 + 통합 + 벤치마크)

  • 안정적인 인터페이스: CLI (26개 명령어), MCP 서버, 파사드 API

  • 보류 중: 호스팅 배포, 다중 사용자 동기화, 적응형 랭킹 피드백

대안과의 비교

Waypath

클라우드 메모리 (mem0, zep)

벡터 전용 RAG

로컬 우선

✓

✗

상황에 따라 다름

표준 진실 스키마

✓

✗

✗

그래프 인식 회상

✓

부분적

✗

명시적 검토 게이트

✓

✗

✗

MCP 서버 내장

✓

✗

✗

원파일 설치

✓

서비스 필요

다양함

기여

Waypath는 호스트 심(shim), 소스 어댑터 및 버그 수정을 환영합니다. 좋은 첫 번째 이슈는 해당 라벨이 지정되어 있습니다.

개발 환경 설정, 코드 스타일 및 PR 흐름은 **CONTRIBUTING.md**를 읽어보세요.

PR을 제출하기 전:

npm run build
npm test

라이선스

MIT © TheStack.ai — LICENSE를 참조하세요.

Available Tools

11 tools
waypath_graph_queryA

Read-only traversal of the Waypath knowledge graph from a specific entity id. Returns neighbors, edges, and related facts using one of four traversal patterns. Use this when you already have a resolved entity id (from waypath_recall results or from prior context); for free-text lookup use waypath_recall instead. Does not write to the database.

Inputs: entityId (required), pattern.

waypath_healthA

Read-only end-to-end health check: SQLite connectivity and migration version, FTS5 index sync status, source adapter probe results, and truth-kernel row counts. Safe to call any time and from any context. Use as a single diagnostic entrypoint before opening a support issue; for adapter-specific detail call waypath_source_status. Takes no parameters.

Inputs: no named parameters.

waypath_pageA

Synthesize a human-readable knowledge page about a subject by aggregating and summarizing matching truth-kernel and archive entries. Returns a structured page object plus a markdown summary. The synthesis is deterministic for a given store state and does not call out to any LLM or network service. Read-only with respect to promoted memory; may cache synthesis artifacts in the local store. Use for briefings or handoffs when a recall result would be too fragmented; for targeted lookup use waypath_recall instead.

Inputs: subject (required).

waypath_promoteA

WRITE: submit a candidate for promotion into the Waypath truth-kernel. Creates a new candidate row in the local SQLite review queue — it does NOT promote immediately. A human (or agent with explicit authority) must call waypath_review to accept or reject the candidate before it becomes queryable by waypath_recall. Use when you want to persist a decision, preference, or fact; use waypath_review_queue to list pending candidates and waypath_review to act on them.

Inputs: subject (required).

waypath_recallA

Read-only hybrid search over the local Waypath SQLite memory store. Runs FTS5 lexical search fused with graph-aware Reciprocal Rank Fusion (RRF) across truth-kernel and archive tables and returns ranked entries with source, score, and snippet. Use before answering any question that may depend on prior decisions, preferences, or project facts; call this instead of waypath_graph_query when you have a free-text query rather than a known entity id. Does not write to the database and does not hit the network.

Inputs: query (required).

waypath_refresh_pageA

WRITE: rebuild an existing knowledge page against the current store state and update its cached summary/markdown. Use on pages flagged "stale" by waypath_review_queue, or after a large batch of promotions that should be reflected in a briefing page. Idempotent — calling twice with no intervening writes produces the same output. Does not call any external service.

Inputs: pageId (required).

waypath_resolve_contradictionA

WRITE: resolve a detected contradiction between two or more preferences sharing the same key by keeping exactly one preference and marking the others as superseded. Intended for user-scoped or project-scoped preference collisions surfaced by waypath_review_queue. Use waypath_review_queue first to see active contradictions and their preference ids. This call persists to the local store and is the destructive side of contradiction handling — the non-kept preferences are no longer returned by waypath_recall.

Inputs: key (required), keepPreferenceId (required), scopeRef, notes.

waypath_reviewA

WRITE: decide the fate of a pending promotion candidate. Setting status to "accepted" promotes the candidate into the truth-kernel so it becomes visible to waypath_recall; "rejected" discards it; "superseded" marks it as replaced by a newer candidate; the other states are non-terminal holding states. This call is the governance gate between waypath_promote and durable memory — do not accept without evidence. Call waypath_review_queue first to list candidates and their ids.

Inputs: candidateId (required), status (required), notes.

waypath_review_queueA

Read-only snapshot of everything awaiting human attention: pending promotion candidates, stale knowledge pages past their refresh threshold, and detected preference contradictions. Use at the start of a review or maintenance session to see outstanding work; then call waypath_review, waypath_refresh_page, or waypath_resolve_contradiction as appropriate. Takes no parameters.

Inputs: no named parameters.

waypath_session_startA

Read-only context pack builder for the beginning of a coding or planning session. Assembles a prioritized brief from recent decisions, active preferences, seed entities, and related graph context. Does not write to the database. Call once per session before substantive work; for mid-session lookups use waypath_recall or waypath_graph_query instead. All parameters are optional — pass what is known; omitted fields fall back to project defaults.

Inputs: project, objective, activeTask, seedEntities.

waypath_source_statusA

Read-only probe of the local source adapters Waypath can ingest from (filesystem snapshots, git repos, JCP live reader, etc.). Returns each adapter's availability, last-scan timestamp, and any configuration errors. Use to diagnose "why is my recall empty" or before running a large ingest. Does not write and does not hit the network. Takes no parameters.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose. For example, waypath_recall is for free-text search while waypath_graph_query is for entity-based traversal; waypath_promote, waypath_review, and waypath_review_queue form a distinct workflow. Descriptions clearly differentiate overlapping tools.

    Naming Consistency4/5

    All tools start with 'waypath_' and use snake_case. Most follow a verb_noun pattern (e.g., refresh_page, resolve_contradiction), but a few like session_start and source_status are noun_verb or noun_noun. Overall consistent enough for predictable navigation.

    Tool Count5/5

    With 11 tools, the set is well-scoped for a knowledge management system. It covers query, search, page generation, promotion workflow, health checks, and session context without being bloated or too sparse.

    Completeness4/5

    Major workflows are covered: submit candidates (waypath_promote), review (waypath_review, waypath_review_queue), retrieve (waypath_recall, waypath_graph_query), and page synthesis (waypath_page, waypath_refresh_page). Minor gaps include no explicit delete tool, but rejection and superseding serve similar purposes.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Local-first knowledge base that ingests activity from Slack, GitHub, agent sessions, and CLI, stores provenance in SQLite, and exposes the brain via MCP, CLI, Slack, and dashboard for recall and skill proposals.
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Persistent memory for AI agents built on the LLM Wiki pattern: a plain-Markdown brain (also a valid Obsidian vault) with SQLite metadata, local semantic search via fastembed (no API keys), one-call session context with project auto-detection, and a decision log with rationale. Works with Claude Code, Claude Desktop, Cursor, and any MCP client.
      31
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Gives every AI agent on a machine a shared, local-first long-term memory: 16 tools to save, search, edit and organize structured notes in one SQLite file, with attribution per client. Runs over stdio or localhost HTTP, so Claude Code, omp and any other MCP client recall the same facts, decisions and entities.
      16
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables Claude Code, Codex and other MCP agents to share one bounded, persistent memory across sessions, so a session starts from what earlier sessions learned instead of re-reading the repository. Storage and retrieval run locally on SQLite full-text search with per-client tokens and scopes, and optional local model enrichment, without any paid model in the path.
      1
      MIT