KMP (Kernel Memory Protocol) — temporal, multidimensional, auditable AI agent memory.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
/plugin marketplace add underpass-ai/kmp
/plugin install kmpPlugins overview
<h1 align="center">KMP — Agent memory that remembers why</h1>
<p align="center">
<img src="docs/assets/kmp-wordmark.svg" width="680" alt="KMP">
</p>
<p align="center">
<strong>Local first. Evidence attached. Time included.</strong>
</p>
<p align="center">
<a href="https://github.com/underpass-ai/kmp/actions/workflows/quality-gate.yml"><img src="https://github.com/underpass-ai/kmp/actions/workflows/quality-gate.yml/badge.svg" alt="CI"></a>
<a href="https://github.com/underpass-ai/kmp/releases"><img src="https://img.shields.io/github/v/release/underpass-ai/kmp" alt="Release"></a>
<a href="https://crates.io/crates/kmp-mcp"><img src="https://img.shields.io/crates/v/kmp-mcp" alt="crates.io"></a>
<a href="LICENSE"><img src="https://img.shields.io/github/license/underpass-ai/kmp" alt="License"></a>
</p>
<!-- kmp:public-overview:begin -->
KMP gives Codex and Claude Code local-first memory that preserves what
happened, when and why. It stores decisions and evidence, not transcripts,
on embedded SQLite, and exposes them through ten memory tools plus three
semantic view tools over a shared ChronoLoom view.
Ask **“Show me the memory behind this decision.”** The agent retrieves the
evidence, opens ChronoLoom at the relevant moment and lights up the proof path.
You can click, filter, pan, undo or take control of the same view at any time.
<!-- kmp:public-overview:end -->
## Why KMP?
Agents are good at doing the work in front of them. Tomorrow is harder. A
decision survives, its rationale disappears, and somebody gets to rediscover
the same incident from scratch.
KMP gives the agent a typed, temporal memory instead of a bag of text:
- evidence decides what can be claimed;
- relations carry the reason two memories belong together;
- time travel is explicit, cursor-based and auditable;
- old decisions are superseded, never quietly rewritten;
- `UNKNOWN` is an honest answer when the evidence is not there.
The normal path runs entirely on your machine. No KMP account. No hosted
memory server. No Underpass cloud.
## Install. Run setup. Done.
### Codex CLI
```bash
codex plugin marketplace add underpass-ai/kmp --ref marketplace
codex plugin add kmp@underpass
```
Then ask Codex to run `kmp-setup` and restart Codex once.
### Claude Code
```text
/plugin marketplace add underpass-ai/kmp@marketplace
/plugin install kmp@underpass
/kmp:setup
```
Restart Claude Code once. Verify either host with its `kmp-doctor` workflow,
or from a terminal:
```bash
kmp-mcp info
kmp-mcp doctor
```
That is the happy path. The plugin owns the MCP registration, so do not add a
second KMP server by hand. Store selection and repair live in
[Embedded KMP](docs/embedded/README.md).
## Talk to it like a human
You normally ask for the outcome. The KMP skill chooses the memory moves.
| You say | The agent does | You get |
|:--|:--|:--|
| “Continue the KMP documentation work.” | Wakes `project:kmp` before re-deriving it. | Current decisions, constraints and next actions. |
| “Why did we choose SQLite?” | Asks memory and follows the stored evidence. | A grounded answer, or `UNKNOWN`. |
| “What happened yesterday?” | Resolves the interval and navigates every temporal page. | Ordered memory from that period. |
| “Remember that retries are capped at two because logs showed amplification.” | Records the decision, its evidence and meaningful relations. | Durable state with an auditable why. |
| “Show the proof between this incident and that decision.” | Traces the typed path and inspects its evidence. | The stored connection, rationale and sources. |
| “Undo that decision.” | Writes a state that supersedes the old one. | Both decisions remain visible in time. |
| “Save the project memory.” | Publishes the maintained project bundle and shows its diff. | Reviewable `.kmp/memory.jsonl`. |
KMP is memory, not surveillance. Store durable decisions and evidence, not
transcripts.
It also waits to be asked. A session that never mentions memory makes no KMP
call at all — the agent works from what is in front of it. Naming KMP, running
a `/kmp:*` command, or opting in from your project's `CLAUDE.md` or `AGENTS.md`
is what opens a route. If you would rather it enter known work on its own:
```bash
kmp-mcp config memory-routing always
kmp-mcp config memory-routing on-request # the default
```
## How it works — the 10-second version
```mermaid
flowchart LR
U[You] --> H[Codex or Claude]
H --> S[KMP skill]
S -->|chooses a move| M[kmp-mcp]
M --> K[embedded kernel]
K --> D[(.kernel/\nSQLite)]
K --> V[local read-only viewer]
```
The plugin installs the skills and declares one local MCP process. The skill
turns intent into one or more of thirteen typed tools. `kmp-mcp` validates the
request, and the kernel reads or writes the local graph-temporal store. The
agent—not KMP—turns returned evidence into conversational prose.
## ChronoLoom — memory you can see
Ask your agent: **“Show me the memory behind this decision.”** ChronoLoom
opens on the evidence and lights up its proof path.
**You control the same view:** your agent can steer it; you can click, filter,
pan or undo at any time.
[Explore ChronoLoom](crates/kmp-viewer/README.md) ·
[Technical architecture](docs/architecture/README.md)
### Who owns what?
| Layer | Owns | Does not own |
|:--|:--|:--|
| Plugin | Installation, host discovery, skills and the single MCP declaration. | Memory semantics or a second tool vocabulary. |
| Skills | When to recover, ask, navigate, audit, write, diagnose, save or restore. | Persistence. |
| <code>kmp‑mcp</code> | The schema-checked thirteen-tool boundary over local stdio. | Choosing a workflow from user prose. |
| Kernel | Validation, temporal storage, traversal, deterministic retrieval and proof. | Generating prose or inventing rationale. |
Human workflows such as `kmp-setup`, `kmp-doctor`, `kmp-info`, `kmp-catchup`,
`kmp-save`, `kmp-restore` and `kmp-revert` compose the MCP surface. They are
not extra memory verbs. The machine-checked ownership map is
[`plugins/kmp/capabilities.json`](plugins/kmp/capabilities.json).
<details>
<summary><strong>The thirteen MCP moves</strong></summary>
Ten over memory, three over the view a person is looking at.
| Tool | Purpose |
|:--|:--|
| `kmp_wake` | Recover compact state before continuing work. |
| `kmp_ask` | Retrieve evidence for a semantic question, or `UNKNOWN`. |
| `kmp_goto` | Jump to memory at a time, sequence or ref. |
| `kmp_near` | Inspect the temporal neighborhood around a cursor. |
| `kmp_rewind` | Move backward through memory. |
| `kmp_forward` | Move forward through memory. |
| `kmp_trace` | Prove the path between two refs owned by an explicit `about`. |
| `kmp_inspect` | Inspect one object inside an explicit `about`, with its links and evidence. |
| `kmp_write_memory` | Validate and record a decision, constraint or outcome. |
| `kmp_ingest` | Ingest an exact canonical memory graph. |
| `kmp_view_open` | Open or rehydrate a ChronoLoom view over an about. |
| `kmp_view_apply_intent` | Move that view by declaring meaning — focus, clock, zoom, filters, selection — under optimistic concurrency. |
| `kmp_view_get_state` | Read the view's semantic state, never its pixels. |
The view tools never write memory: they carry a closed, semantic vocabulary
with no coordinates in it, and a person at the loom has right of way — an
intent prepared against a stale revision conflicts rather than yanking the
view away.
`tools/list` from the running server is authoritative for schemas, outputs and
the relation vocabulary.
</details>
## Local means local
| Boundary | Default behavior |
|:--|:--|
| Memory | Stored on your machine, normally in the repository's `.kernel/`. |
| MCP transport | Local stdio between the agent host and `kmp-mcp`. |
| Viewer | Read-only loopback HTTP, normally rooted at `http://127.0.0.1:7317/`, behind a random per-session capability. |
| External services | None required. |
| Underpass | Receives no memory and operates no service in this path. |
| Updates | Setup may contact GitHub Releases for checksummed packages. |
| Cloud agents | Evidence returned to a cloud agent follows that host's data policy. |
`.kernel/` is machine state and is ignored by git. A project-scoped store also
maintains `.kmp/memory.jsonl`; it leaves your machine only if you deliberately
commit or copy it.
## Language without flattening the evidence
KMP never translates or rewrites stored evidence. The agent asks first in the
user's language. If the result is `UNKNOWN`, it may retry the query once per
configured fallback language; English is the default fallback. Only the query
changes. Evidence, refs, relation `why` and source metadata stay exactly as
stored, and the agent answers in the user's language.
```bash
kmp-mcp config ask-fallback-languages en,fr
kmp-mcp config ask-fallback-languages none
```
Fallback tags whose primary language is `zh`, `ja`, or `th` are rejected until
Ask supports word segmentation for those scripts. Their stored memory remains
byte-exact and inspectable; word-based semantic retrieval is not supported yet.
Temporal requests such as “yesterday” use temporal navigation, not semantic
Ask fallback.
## Shared memory, when you actually need it
Several machines can share one live KMP service through the Kubernetes
topology backed by Neo4j, Valkey and NATS JetStream. It is still free, open
source and self-operated. “Enterprise” describes the operational shape—not a
paid tier or an Underpass-hosted product.
It also means owning infrastructure, TLS, identity, authorization and
observability. Keep it local until those responsibilities buy you something.
Then read [Enterprise KMP](docs/enterprise/README.md).
## Project status
KMP is pre-1.0: useful today, actively evolving, and explicit about sharp
edges. Release automation builds `kmp-mcp` for Linux x86_64/arm64, macOS
arm64/x86_64 and Windows x86_64. The embedded path is the default; the remote
API is versioned `vWhat people ask about kmp
What is underpass-ai/kmp?
+
underpass-ai/kmp is plugins for the Claude AI ecosystem. KMP (Kernel Memory Protocol) — temporal, multidimensional, auditable AI agent memory. It has 0 GitHub stars and its last recorded update is dated 2026-09-02.
How do I install kmp?
+
You can install kmp by cloning the repository (https://github.com/underpass-ai/kmp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is underpass-ai/kmp safe to use?
+
Our security agent has analyzed underpass-ai/kmp and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.
Who maintains underpass-ai/kmp?
+
underpass-ai/kmp is maintained by underpass-ai. The last recorded GitHub activity is dated 2026-09-02, with 6 open issues.
Are there alternatives to kmp?
+
Yes. On ClaudeWave you can browse similar plugins at /categories/plugins, sorted by popularity or recent activity.
Deploy kmp to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/underpass-ai-kmp)<a href="https://claudewave.com/repo/underpass-ai-kmp"><img src="https://claudewave.com/api/badge/underpass-ai-kmp" alt="Featured on ClaudeWave: underpass-ai/kmp" width="320" height="64" /></a>More Plugins
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Academic Research Skills for Claude Code: research → write → review → revise → finalize
Create beautiful slides on the web using a coding agent's frontend skills
A Claude Code plugin that shows what's happening - context usage, active tools, running agents, and todo progress
A skill to stop your coding agent from burying the answer. ADHD-friendly output.