
Korg Recall Mcp
io.github.New1DirectionPublished by GitHub account New1Directionv0.1.1Updated Oct 24, 2026
Cross-vendor semantic memory: recall across Claude Code / Codex / Grok sessions by meaning.
Overview
Records an AI coding agent's actions into a tamper-evident, hash-chained ledger that can be verified, replayed, and rewound.
- What you can do
- Korg acts as an MCP-callable audit sink: an MCP-compatible coding agent calls its tools to append each session step to an append-only, SHA-256 hash-chained ledger with causal ordering. A separate verifier checks the chain and DAG, and the ledger can be rewound to an earlier sequence point, restoring the workspace snapshot. It also supports deterministic replay, projection rebuilds, and per-event signatures.
- When to use it
- Use it when you want an auditable, replayable record of what a coding agent did in a local workspace, or when you need to roll an agent's changes back to a prior step. It is aimed at local, single-user development workflows rather than shared or hosted environments.
- Requirements
- Runs locally over stdio as the npm package @korgg/recall-mcp. The README describes building from source with a Rust toolchain (cargo) and, for the Python bridge, maturin; the crate is not yet published to crates.io. No authentication, environment variables, or headers are declared. Optional live local models are used via a provider flag.
Installation
In SourceWeft
- Open Korg Recall Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: README.md at commit b26e1f4
Tools
0Version history
1- v0.1.1LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts