
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 分