
Kage
com.kage-core由 kage-core.com 發布v2.3.0更新於 Oct 24, 2026
Verified memory for coding agents: claims cited against code, stale withheld, savings receipts.
概覽
Kage 為編碼代理提供經核驗、隨 git 追蹤的儲存庫記憶,並可委派編碼任務並自行複核其結論。
- 可以做什麼
- Kage 把程式碼庫的長期知識——決策、缺陷修正、慣例、維運手冊——以純 Markdown 概念檔案形式保存在 .agent_memory/ 下,並在代理開始任務或開啟檔案時召回相關內容。每筆記憶都會引用它所描述的程式碼,Kage 在寫入時、召回時以及 diff 改動被引用程式碼時核驗這些引用,不再相符的記憶會被扣留。它也扮演協調者:依據儲存庫記憶為編碼代理產生簡報,在獨立的 git worktree 中執行,並在合併前自行重跑測試、diff 大小、引用存在性等檢查。其他指令還包括儲存庫健康掃描、節省帳本、團隊技能檔案與本機儀表板。
- 適用情境
- 當你希望編碼代理跨工作階段、跨機器重用團隊累積的知識,而不是反覆重讀或重新詢問時,適合加入。也適合需要委派編碼任務、且結果由工具核驗而非代理自述的情境。適用於記憶可以隨程式碼一起存放在 git 中的儲存庫。
- 執行需求
- 以 stdio 本機程序方式執行,透過 npx 從 npm 套件 @kage-core/kage-graph-mcp 安裝。需要 Node.js 18+ 與一個 git 儲存庫;README 稱無需帳號、資料庫或 API 金鑰。桌面應用僅支援 macOS arm64;可選的區域網路存取需在 .agent_memory/config.json 中手動開啟,並搭配配對密鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Kage,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Kage manages your memory and agents
State an intent. Kage's orchestrator briefs a coding agent from your repo's own memory, runs it in an isolated git worktree — a single run or a multi-wave goal — and re-runs the checks itself rather than trusting the agent's report:
A real receipt from this repo's own run history. Every row is a command Kage ran or a fact
it inspected — never a claim the agent made about itself. kage merge only lands the code once
the claim holds, and ratifies what the agent learned, so the next brief, yours or a teammate's,
starts smarter.
That memory is the decisions behind your codebase, the runbook for a tricky deploy, the root cause of a gnarly bug — captured as your agents work and checked against the actual code, so what gets reused stays true. It's kept as plain Markdown files in your repo, conformant to the Google Open Knowledge Format (OKF) so there's no lock-in, and shared with your whole team through git. No account, no database, no API key.
[npm version] [downloads] [license] [zero-dependency retrieval] [no account] [Built on Google Open Knowledge Format]
[Kage in numbers: 98.7% R@10 recall, 0% stale served, 18% faster than grep, zero-dependency retrieval, 360+ tests passing, 15 agents supported]Website · Docs · Live viewer · npm · Book a demo
Works with Claude Code · Codex · Cursor · Windsurf · Gemini CLI · Cline · Goose · Roo Code · Kilo Code · OpenCode · Aider · Claude Desktop · Copilot · OpenClaw · Hermes · any MCP client
🌐 English · 简体中文 · 日本語 · 한국어 · Español · Português (Brasil) · Français · Deutsch · हिन्दी
Install
One command, inside your repo, then restart your agent. That's the whole setup.
It creates .agent_memory/, builds the code graph, writes the AGENTS.md / CLAUDE.md
policy that tells agents to use Kage, auto-detects and wires your agents, and configures
.gitignore + the packet merge driver. Requires Node.js 18+. No account, no API key.
Or just ask your agent to set it up. Paste this into Claude Code, Cursor, or any coding agent:
Set up Kage (verified memory for coding agents, https://github.com/kage-core/Kage) in this repo: run
npx -y @kage-core/kage-graph-mcp install, then tell me to restart you.
Other ways (plugin · per-agent · memory-only)
Delegate work (the orchestrator)
Every run works in its own git worktree. The checks that decide the verdict on the receipt above — tests, diff size, citations — are commands Kage runs itself, never the agent's self-report.
- The app.
kage app --project <dir>starts (or reuses) the local daemon and opens the same room, runs board, and memory view in a UI. From a checkout,npm start --prefix shellruns it as a native window — a thin Electron shell with no HTML of its own, it just loads the daemon's own page — andnpm run dmg --prefix shellbuilds a macOS.dmg(arm64 only; Windows/Linux packaging isn't built yet). - From your phone. The daemon can also bind to your machine's LAN address, gated by a
pairing secret required on every request, reads included. Today that means setting
"lan": truein.agent_memory/config.jsonby hand — there's no--lanflag or app toggle yet. - Add a project without a terminal.
kage projects add <dir> --agent clauderegisters another repo the same way the app's "+" button does, thenkage app --project <dir>opens it.
Desktop app
A thin native shell (macOS, arm64 only) over the same daemon the CLI runs — dock presence,
a global hotkey, native notifications. Download the latest .dmg from
GitHub releases (look for a
Kage-<version>.dmg asset).
Unsigned builds show macOS's "unidentified developer" prompt on first launch — right-click the app in Finder and choose Open once. Once installed, it checks for updates on launch and every 4 hours and installs on restart; ad-hoc (unsigned) builds can't self-install and notify you instead, linking back to the releases page.
Prefer the CLI? The one-line install works everywhere the app doesn't need to:
What is Kage
Kage is an orchestrator for coding agents, built on a memory layer. As your agent works, it captures what it learns
(decisions, bug fixes, conventions, how the code fits together) as
Open Knowledge Format (OKF)
concept files committed in your repo under .agent_memory/. The next session (yours or a
teammate's) starts already knowing it, instead of re-reading or re-asking.
Three things make it different from other memory tools:
- It's collaborative. The knowledge one person (or their agent) figures out becomes the whole team's. Memory is shared through git, so a teammate's next session starts with what you just learned, not a blank slate.
- It's standard & git-native. Memory is a conformant OKF bundle — plain Markdown in your repo, reviewed in the same PR as the code, readable by any OKF tool — not locked in one machine or a vendor's cloud. Your knowledge stays yours.
- It's verified. Every memory cites the code it's about, and Kage checks those citations against your actual files at write time, at recall time, and when a diff changes the code. Memory that no longer matches the code is withheld, so the agent never acts on a stale claim.
Kage called it. Google standardized it.
From day one, Kage kept agent memory as plain files in your repo — no cloud, no database, no lock-in, while everyone else was building memory clouds. In June 2026, Google Cloud shipped the Open Knowledge Format: knowledge as Markdown in git, vendor-neutral, no account — the exact thesis Kage already ran on. So Kage adopted OKF as its standard, and supercharges it with the layer OKF deliberately leaves out:
- Verification — OKF stores what you wrote down; Kage checks every concept against your real code and refuses hallucinated citations at write time.
- Freshness — OKF has no notion of staleness; Kage catches drift the moment your code changes and withholds memory that's no longer true.
- Code-grounding — a deterministic code graph anchors each concept to the exact symbols it describes — the layer OKF leaves to tooling.
The trust metadata rides in OKF-legal x-kage-* fields, so a Kage bundle stays 100%
conformant and opens in any OKF consumer, including Google's own visualizer.
OKF standardizes the store; Kage is the verification and freshness layer Google left out.
How it works
Once installed, it's ambient. You don't run anything by hand:
- Recall before acting. At the start of a task (and the moment the agent opens a file), Kage surfaces the relevant verified memory for it. Stale or deleted memory is left out.
- Capture as it works. Durable learnings become packets. A memory that cites a file which doesn't exist is rejected on the spot, so hallucinations never enter storage.
- Stay honest as the code moves. When a diff changes code that a memory cites, that
memory is flagged at commit/PR time (
kage pr check) and withheld from recall until it's re-verified or replaced, so knowledge can't quietly rot.
Watch it happen in the local dashboard (kage viewer): packets, the memory↔code graph,
trust gates, and live events stream in as the agent works. Wrap anything in
<private>…</private> and it's never stored.
`kage viewer`: the memory engine underneath the orchestrator above — your team's decisions, runbooks, and bug fixes (purple), kept in the repo and linked to the code they are about (blue).
Why Kage
Most memory tools (claude-mem, agentmemory, mem0, Zep) store memory per-machine or in a cloud you don't own, and never re-check it against the code. Kage keeps it in your repo and verifies it, so it stays your team's and stays true as the code changes.
Features
- Truth Report.
kage scanreads any repo in ~60s and surfaces its highest-risk knowledge gaps: undocumented hot files, untested hot paths, complexity hotspots, unresolved code debt, and bus-factor-1 files, plus duplicate implementations, dead exports, and doc lies when they exist. Every finding cited tofile:line. Zero setup, nothing generated, runs before you install anything. - Savings receipts.
kage gainskeeps a per-repo value ledger (tokens + $ the agent didn't have to re-spend), every number traceable to a logged event; the agent relays it after each recall. - Team skills.
kage skillsturns durable, verified procedures into.claude/skills/<name>/SKILL.mdfiles agents auto-load, committed and shared, no cloud. - Personal memory & sync.
kage learn --personalkeeps cross-machine notes in~/.kage/memory, recalled as a clearly separated lower-trust section and synced over your own git remote. - Self-healing session loop. Uncaptured sessions are auto-distilled into pending drafts
you review;
kage resumeopens each session with a "previously…" digest;kage repairfixes broken packets and indexes in one command.
Benchmarks
- 18% faster than grep at equal correctness on real code-navigation tasks (N=3 suite,
same agent/model; reproduce with
kage benchmark --project . --compare). - LongMemEval-S retrieval: 98.72% R@10 / 99.79% R@20 / 0.909 MRR — ahead of plain BM25 at every depth except R@5, where BM25 edges it (96.60% vs 96.17%; full table in benchmarks/LONGMEMEVAL.md). The retrieval path itself is dependency-free: BM25 + sparse lexical scoring, no embeddings, no network.
- Memory Correctness Under Change: 0% stale-served (memory whose code was deleted or changed is withheld), vs 100% for capture-everything stores.
- Trust benchmark: 100/100, covering hallucination rejection, stale exclusion, and live
grounding (
kage benchmark --trust --project .).
Methodology, commands, and caveats: docs/BENCHMARKS.md.
Daily commands
Full CLI and MCP reference: docs. Delegating work to coding agents (dispatch → verified claim → merge): docs/DELEGATION.md.
Storage
Everything lives in .agent_memory/: packets/ is durable repo memory (git-tracked OKF Markdown);
graph/, code_graph/, structural/, and indexes/ are rebuildable with kage refresh;
reports/ holds the value ledger and health reports. Capture scans for secrets and PII
before writing.
Standard format — Open Knowledge Format (OKF). Kage's memory is an
OKF bundle:
plain Markdown concept files with YAML frontmatter, readable by any OKF consumer
(including Google's visualizer). Run kage okf migrate to render the store as an OKF
bundle under .agent_memory/okf/. Kage adds the lifecycle OKF leaves out — grounding,
verification, and freshness — carried in OKF-legal x-kage-* fields, and can import
any third-party OKF bundle. The round-trip is lossless. See OKF_STANDARD.md.
Development
Contributing & community
Kage is built in the open and we'd love your help. Four runtime dependencies (the retrieval core uses none), no account, no cloud — it's a friendly codebase to jump into.
- CONTRIBUTING.md — dev setup, project layout, conventions.
- ROADMAP.md — where Kage is headed, and where to plug in.
- Good first issues · Help wanted — scoped places to start.
- Discussions — questions, ideas, show-and-tell.
By participating you agree to our Code of Conduct.
License
GPL-3.0-only. See LICENSE. Releases before the GPL switch were MIT.
來源:README.md,提交 e7cc087
工具
0版本歷史
1- v2.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分