JR

janbjorge/rekal

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

52 stars 4 forks 品質 80 トレンド 8MIT

janbjorge/rekal は [https://github.com/janbjorge/rekal. からインポートされた MCP サーバーの候補です

概要

janbjorge/rekal は [https://github.com/janbjorge/rekal. からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

LLMの長期メモリ 1つのSQLiteファイル、クラウドなし、APIキーなし。**

rekal は、セッション全体でAI コーディングエージェントの永続的なメモリを提供する MCP サーバーです。 Memories は SQLite にローカルに保存され、ハイブリッド検索 (BM25 キーワード + ベクトルセマンティック + レジデンシーデケイ) で取得されます。 何もあなたの機械を残しません。

使い方 · クイックスタート · インストール · セットアップ · 更新 · ツール · フードの下 · トラブルシューティング

任意の MCP 対応エージェントで動作します。: クロード コード、コーデック、OpenCode、Cursor CLI。

使い方

  1. 店舗 エージェントは[memory_store]で耐久性のある事実を保存します:好み、決定、非明らかな発見。 2.Index. rekal は SQLite に記述し、2 つのインデックスをビルドします: BM25 キーワードのインデックスと 384 次元のベクトルの埋め込み、ネットワーク呼び出しなしでローカルで計算されます。 3。リコール。 後にエージェントが memory_build_context を呼び出します。 リカルは、キーワードのマッチをブレンドし、類似性を分離し、単一のスコアに反復し、関連するフロアの上にトップヒットを返します。

すべての状態は単一のファイルです。[~/.rekal/memory.db]。 スコアリング式、スキーマ、および埋め込みモデルについては、フードを参照してください。

クイックスタート(ロードコード)

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

rekal

Long-term memory for LLMs. One SQLite file, no cloud, no API keys.

rekal is an MCP server that gives AI coding agents persistent memory across sessions. Memories are stored locally in SQLite and retrieved with hybrid search (BM25 keywords + vector semantics + recency decay). Nothing leaves your machine.

How it works · Quickstart · Install · Setup · Updating · Tools · Under the hood · Troubleshooting

Works with any MCP-capable agent: Claude Code, Codex CLI, OpenCode, Cursor CLI.

Session 1:   "I prefer Ruff over Black"  → memory_store(...)
Session 47:  "Set up linting"            → memory_build_context("formatting preferences")
                                          ← "User prefers Ruff over Black" (0.92)
                                          Sets up Ruff without asking.

How it works

  1. Store. The agent saves a durable fact with memory_store: a preference, a decision, a non-obvious discovery.
  2. Index. rekal writes it to SQLite and builds two indexes over it: a BM25 keyword index and a 384-dimensional vector embedding, both computed locally with no network calls.
  3. Recall. In a later session the agent calls memory_build_context. rekal blends keyword match, semantic similarity, and recency into a single score and returns the top hits above a relevance floor.

All state is a single file: ~/.rekal/memory.db. For the scoring formula, schema, and embedding model, see Under the hood.

Quickstart (Claude Code)

uv tool install rekal                            # 1. install rekal (or: pip install rekal)
claude mcp add --scope user rekal -- rekal mcp       # 2. register the MCP server (all projects)
claude plugin marketplace add janbjorge/rekal    # 3. add the plugin marketplace
claude plugin install rekal-skills@rekal         # 4. install the plugin

Then add "autoMemoryEnabled": false to ~/.claude/settings.json so Claude Code’s built-in memory doesn’t compete with rekal.

Restart Claude Code and the agent has persistent memory. For what each step does, the other agents (Codex CLI, OpenCode), and the rationale behind disabling built-in memory, read on.

Install

pip install rekal
# or
uv tool install rekal

Requires Python 3.11+. On first run, rekal creates ~/.rekal/memory.db. To upgrade an existing install later, see Updating.

Setup for Claude Code

Three steps: add the MCP server, install the plugin, and disable built-in memory.

1. Add the MCP server. This gives Claude Code the memory tools:

claude mcp add --scope user rekal -- rekal mcp
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "rekal": { "command": "rekal", "args": ["mcp"], "env": { "REKAL_PROJECT": "my-project" } } } }