SuperAPIAI Directory

rekindle

github.com · AI coding

Session continuity: start-of-session reports with gap detection and scoring, structured end-of-session capture and BM25 memory search, stored in local SQLite.

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

About this tool

Purpose

Rekindle addresses the problem of AI coding assistants losing project context between sessions. Based on data from 43 sessions, the author points out that existing memory tools (such as Mem0, Letta, Zep) focus on retrieval accuracy, but none of them solve the session orientation problem of "whether the AI loaded the correct context at the start of a session and whether it can detect what it has missed." Rekindle is positioned as an MCP continuity engine, focusing on session orientation rather than just storage.

Main Capabilities

  • Session startup orientation: boot_report runs the orientation pipeline before any work begins, loading identity, recent context, memory health, and missing-context warnings.
  • Session end capture: end_session stores structured continuity records, including checkpoints, decisions, open loops, and more, rather than just summaries. All records carry type, source, and session_id metadata.
  • Surviving mid-session compaction: The PreCompact hook triggers automatically before mid-session compaction, saving reasoning chains, failed approaches, relational texture, and tone; it provides three read modes to control token cost: summary (one paragraph, cheap), structured (decisions/loops/warnings, moderate), and raw (full transcript excerpts, expensive, only on demand).
  • Search and management: BM25-based full-text search, ranked with importance weighting; memories are organized by category (preference, lesson, context, relationship, general) and project scope.
  • Gap detection and scoring: Flags missing identity, empty categories, and stale data, providing a transparent checklist so users understand the degree of the AI's orientation.
  • Session startup delivery (optional): Via the SessionStart hook, automatically delivers a budget-limited orientation package on startup, resume, /clear, and /compact (capped at 8000 valid UTF-8 bytes), and generates a receipt recording what was actually sent.

Usage

Requires Node.js 20 or higher. Use npx rekindle init to create a .rekindle/ directory in the project (containing a SQLite database, identity template, continuity policy, project registry, capture directory, transcript directory), then add the MCP server configuration for the client.:

  • Claude Code: Add to ~/.claude.json
  • Claude Desktop: Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude)
  • Cursor: Add to .cursor/mcp.json in the project root

Then fill in .rekindle/identity.md and paste the startup instructions into the project's CLAUDE.md.

Optional hooks (all require explicit request; not installed by default init):

  • Enable PreCompact protection: npx rekindle setup-hooks
  • Enable session-start delivery: npx rekindle setup-delivery
  • Do everything in one line: npx rekindle init --with-hooks --with-delivery

The policy file .rekindle/policy.json controls transcript handling, startup byte budget, and required/optional package sections. Required sections are atomic: when they don't fit, a bounded failure list is emitted rather than partial anchors; optional sections are omitted entirely and recorded in the receipt. You can set "transcript_mode": "excluded" to prevent SessionStart from reading transcript files, and set "background_writes_allowed": false to make the PreCompact hook exit directly.

Storage root resolution order: REKINDLE_BASE_DIR (explicit takes precedence), derived from REKINDLE_DB_PATH, an existing .rekindle/ in the current working directory, an existing .rekindle/ in the home directory, otherwise the home directory—never the process spawn point.

When to Use

Suitable for users who use Claude Code (or Cursor) for long-term project development and need to re-explain project context every session. The author describes its evolution path as "session 1 stores, session 2 remembers, session 10 anticipates." It is also suitable for scenarios where you want the AI to automatically reorient at session boundaries and need transparent scoring and gap detection.

Limitations and Caveats

  • All data is stored locally and is not sent to external servers; there are no network calls, no HTTP, no telemetry, and no analytics. The MCP server communicates via stdio.
  • Transcripts contain conversation text; if a session contains secrets or credentials, transcript capture should not be enabled.
  • Hook installation is optional; both capture hooks and delivery hooks must be explicitly requested.
  • The SQLite database is an ordinary file and is not encrypted; use OS-level disk encryption when needed.
  • .rekindle/ is gitignored, and the init command handles this automatically.
  • boot_report reads local files, and the path is not sandboxed; it should only be used with trusted MCP clients and prompts.
  • The Cursor hook payload contains the account email and workspace path; by default the adapter extracts only the session ID and workspace root, and the raw payload, email, and path are not written to receipts or any artifacts.
  • The delivery package is capped at 8000 valid UTF-8 bytes; when exceeded, the model only sees the beginning and no error is reported; truncation is marked within the package, and the receipt only proves it was emitted, not that the model saw it.
  • Requires Node.js 20 or higher.

Version Highlights

Currently v0.3.3, which includes version-consistent MCP metadata and package documentation, and builds on v0.3.2's one-command session-start delivery installer. v0.3.1 "Five Measurement Gates" includes startup delivery, budget packages and receipts, desktop-safe storage, dual-channel guidance, and the Cursor adapter, with published measurement evidence. v0.3.0 "Surviving the Long Midfield" adds the PreCompact capture system, open loops, and review tracking. v0.4 planning includes spreading activation, embedding-based semantic search, gap analysis tools, and an evaluation framework. The project includes 169 automated tests covering storage CRUD and FTS5 ranking, the localization domain, the capture manager, delivery, hook setup, and MCP integration (10 tools plus package-derived server metadata).

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools