
Korg Recall Mcp
io.github.New1Direction由 GitHub 帳號 New1Direction 發布v0.1.1更新於 Oct 24, 2026
Cross-vendor semantic memory: recall across Claude Code / Codex / Grok sessions by meaning.
概覽
將 AI 程式助理的操作記錄到可防竄改的雜湊鏈帳本中,支援驗證、重播與回溯。
- 可以做什麼
- Korg 是可透過 MCP 呼叫的稽核接收端:相容 MCP 的程式助理呼叫其工具,把每個工作階段步驟附加到僅可附加、具 SHA-256 雜湊鏈與因果順序的帳本中。獨立的驗證器可檢查雜湊鏈與因果 DAG,帳本還能回溯到較早的序列點並還原工作區快照。此外也支援確定性重播、投影重建與逐事件簽章。
- 適用情境
- 當你需要可稽核、可重播的程式助理操作記錄,或需要把助理所做的變更回溯到先前某一步時使用。它面向本機單人開發流程,而非共用或託管環境。
- 執行需求
- 以 npm 套件 @korgg/recall-mcp 透過 stdio 在本機執行。README 說明可從原始碼建置,需要 Rust 工具鏈(cargo),Python 橋接還需 maturin;該 crate 尚未發佈到 crates.io。未宣告任何驗證、環境變數或標頭。可選的本機即時模型透過 provider 參數使用。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Korg Recall Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
korg
A tamper-evident, SHA-256-chained ledger for AI agents. Every step your agent takes is recorded in a hash chain anyone can verify — edit one event and the chain names it. No trust in the producer, no blockchain.
[CI] [License: MIT OR Apache-2.0] [Rust 2021]
30-second quickstart
Build the standalone verifier (~10s cold — it compiles only the ledger crates), verify a recorded Claude Code session, then rewrite one event and watch the chain catch it:
[korg-verify catching a single rewritten event in an agent ledger]
No Rust toolchain? Drop the same file into the in-browser verifier — it runs locally and sends nothing.
Validated across three vendors (N=3)
The same korg-ledger@v1 format ingests traces from three architecturally different production agents, with causal structure (spec §2a) preserved through the round-trip:
Because all three land in one format, one verifier checks them all — and it has byte-identical Rust, Python and JS implementations, differentially fuzzed against each other with 0 divergences. Known limits are written down rather than hidden: see the Grok Heavy limitations (ingest order vs. wall-clock concurrency, cross-agent chatroom edges).
Full demo: record → verify → rewind
[korg demo — record, verify, and rewind an AI agent session as a hash-chained ledger]
AI agents are black boxes. When they fail, you can't debug. When they succeed, you can't reproduce it. When they do something wrong, you can't undo it.
Korg fixes this.
What Korg Does
[!NOTE] Universal Ingestion Integration Mode: Korg v1 is an MCP-callable audit sink. Any MCP-compatible coding agent (Claude Code, Codex, etc.) can call korg's tools to record its session as a causally-linked, replayable, rewindable ledger. The agent must be instructed to log its actions — typically via system prompt or MCP server configuration. Fully passive auditing without agent cooperation is on the roadmap for future versions.
[!WARNING] Trust Boundary & Deployment Scope: Korg v1 is designed strictly for local, single-user workspaces. Multi-tenant and networked deployments require cryptographic authentication and permission bounds that are not yet shipped. Running the server on an untrusted or public network exposes workspace read/write access.
Korg is a cognitive hypervisor — a runtime layer that sits beneath your AI agents and governs every decision they make.
It doesn't replace your LLM. It governs what the LLM does.
Every agent action is:
- Appended to an immutable, cryptographically-signed ledger
- Ordered with Hybrid Logical Clocks (causal, deterministic, globally consistent)
- Replayable — rebuild exact state at any point in history
- Reversible — rewind the ledger to any prior sequence point
Try the Time-Travel Demo
You can run the built-in sandbox demo to see cognitive time-travel in action. The demo sets up a temporary workspace with a buggy Python script, lets a simulated coding agent make a wrong edit, catches the test failure, rewinds the workspace and ledger to before the edit, and speculatively commits the correct fix:
You will see the complete, colorized time-travel sequence:
No other AI agent runtime lets you do this.
Core Architecture
Korg is built on the same theoretical foundations that make databases and operating systems reliable — applied to AI cognition for the first time.
Quick Start
Build from source
The crate is not yet published to crates.io; install from source:
Python bridge (for korgex / korgchat)
Run your first campaign
Rewind & Verify
Honest by construction, with any model. The default provider is a hermetic deterministic stub (fixture-only, zero dependencies).
--provider ollamaruns a real local model on arbitrary tasks — Korg asks OpenAI-compatible providers for strictly valid JSON (response_format: json_object), so even a small (7B) local model lands a real patch reliably (measured 5/5 with qwen2.5:7b). Either way the attestation is measured, never fabricated: when the model produces a patch, the ledger attests the realgit difffile count and changed paths; if it declines or writes a non-compiling change, Korg reports it honestly (an honest null — zero changed, zero attested — or a failedcargo check). The pipeline cannot attest a number the worktree does not actually show — that is the guarantee, independent of model quality.
Verify it in your browser — sends nothing. Zero-install, client-side verifiers (Web Crypto) for any
korg-ledger@v1journal or Certificate: verify a session · verify a Certificate · time-travel explorer. They hash-chain, check the causal DAG, validate Ed25519 signatures, and re-derive the human summary from the events — all locally.
Speculative branch/fork and named checkpoints (
korg fork,korg checkpoints list|restore) are planned, not yet shipped. The reversibility surface today iskorg rewind.
Cognition Modes
Korg adapts its intelligence tier based on task complexity. Modes are governed exclusively through the capability resolver — every switch is ledger-logged.
Why Korg Exists
Current AI coding agents are probabilistic black boxes. They:
- Can't be replayed — same prompt, different output, every time
- Can't be rewound — one wrong action and you're manually diffing git history
- Can't be audited — no record of what the agent decided and why
- Can't be governed — no way to set policy boundaries at runtime
Korg treats AI cognition the same way a hypervisor treats compute and Git treats code:
If it's not in the ledger, it didn't happen.
Comparison
Korg is not an agent framework. It's the governance kernel that runs beneath all of them.
Technical Stack
Architecture Deep Dive
→ Read the full technical write-up
Real-World Audit Ledger Example
You can inspect a real-world cognitive audit ledger produced by Korg. This NDJSON file records a live session where Claude Code was prompted to call Korg's MCP tools to refactor a function and rename all call sites, capturing the full HLC causal graph and actor_id recorder metadata:
The short version:
- CapabilityResolver — the single authority for all runtime state. All reads and writes flow through it. No secondary state stores.
- CapabilityJournal — the append-only WAL. Every cognitive event is sealed here with an HLC timestamp, causation chain, and cryptographic signature.
- ProjectionEngine — pure state folds over the journal. Any read model can be rebuilt deterministically from the raw event stream.
- ExecutionCheckpoint — snapshot of
{ledger_offset, projection_state, lease_map, workspace_tree_hash}. Restores full runtime state in O(1) without replaying the entire event stream. - CapabilityExecutor — executes the physical effect DAG. Failures trigger automatic micro-healing before escalating.
System overview
Status
Korg is in active development, built on a frozen korg-ledger@v1 spec with cross-language conformance (Rust + Python + JS). Test footprint: 300+ Rust tests across the workspace plus Python/JS conformance suites, CI-gated (build · tests · cross-language oracle · differential fuzz) and green on main.
Shipped:
- Append-only, hash-chained cognitive ledger with HLC ordering
- Deterministic replay and projection rebuilds
- Reversible execution — rewind the ledger to any prior sequence point (tamper-evident
LedgerRewind) - Per-event Ed25519 signatures + structural anchoring (
korg-ledger@v1§8) - Certificate (
korgcert@v1) — a public, independently-verifiable certificate of agent work, with zero-install in-browser verifiers - Honest pipeline (
korg run-once) — real patch → realcargo check→ an attested mutation count that equals the realgit diff; never fabricates (reports an honest null instead) - Live local model (
--provider ollama) — real per-persona work on arbitrary tasks - Multi-agent swarm (Captain, Harper, Benjamin, Lucas, Evaluator) — genuine worker subprocesses doing real, measured, attested work with DAG data-flow between personas
- Zero-config Claude Code capture (PostToolUse/Stop hooks → verifiable per-session ledgers)
- Micro-healing effect layer · TUI dashboard + Web cockpit
- Cryptographic provenance attestation · single-authority CognitionMode governance
- Preview / dry-run mode (
--preview)
Planned / not yet shipped:
- Speculative branches / fork + execution-checkpoint restore CLI (primitives exist; CLI planned)
-
cargo install korgon crates.io · npm-published verifier - Live network anchoring resolver (trusted-time witness — the remaining honest limit)
- Remote swarm workers · WASM backends · IDE language-server integration · distributed checkpoint sync
- Fully passive capture without agent cooperation
License
Licensed under either of MIT or Apache-2.0 at your option.
Built with Rust. Governed by invariants. No black boxes.
來源:README.md,提交 b26e1f4
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分