Marrow

io.github.aryawidjaja由 GitHub 帳號 aryawidjaja 發布v0.8.0更新於 Oct 24, 2026

Shared memory for parallel AI coding agents. Local, free, with rooms and file claims.

發布方自己的服務:Marrow

概覽

AI 產生的概覽

Marrow 為編碼代理提供可共享、可檢索的專案記憶,並帶有房間、檔案佔用與可稽核帳本。

可以做什麼
Marrow 把專案事實與決策存成 markdown 檔案,透過排序檢索與關聯連結回傳相關記憶,而不是每次工作階段都載入固定的記憶檔案。它提供機器層級的 hive,讓某個專案中的代理回想另一個專案的內容;提供具名房間,讓平行代理互相提問與交接工作;也提供盡力而為的檔案佔用,以減少衝突。每次寫入、編輯與回想都會記入僅追加、雜湊鏈結的帳本,本機儀表板則以圖形呈現記憶。
適用情境
當程式庫累積的事實超過約一百條、多個代理或工具平行工作,或希望跨專案、跨機器、跨隊友共享記憶時,值得加入。對於單機上的小型單一儲存庫專案,內建記憶通常已經夠用。
執行需求
以本機程序在使用者機器上執行(僅桌面端)。可透過 Claude Code 外掛、Homebrew、安裝指令碼、Scoop 或 Claude Desktop 安裝包安裝;鉤子需要 jq,Windows 上還需要 Git for Windows。選用的跨裝置共享需要自架閘道與一個 MARROW_TOKEN 值。未宣告需要帳號或 API 金鑰。
安裝前請注意
記憶會寫入專案的 .marrow/ 目錄,可被編輯或刪除。跨裝置共享會把所選專案的記憶經由你自架的閘道傳輸,僅由單一 bearer token(MARROW_TOKEN)保護;請以 HTTPS 執行並備份其資料磁碟區。代理可以新增、編輯、取代與合併記憶,檔案佔用可能阻擋偵測到的本機衝突。語意搜尋首次使用時會下載小型嵌入模型。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Marrow,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[Marrow and Spinal Cloud]

marrow

Memory that keeps working after Claude's runs out — shared across your projects, machines and tools.

[Release] [License] [Website] [Built with Rust] [Stars]

[MCP] [Claude Code] [Cursor] [Codex]

Claude's memory stops at 25KB. This one doesn't.

Claude Code's built-in memory loads the first 200 lines of one file into every session. That is fine for a young project. A codebase two years old knows more than fits in 200 lines, and everything past the cut is simply dropped.

Marrow retrieves instead of loading. Ask a question and it returns the twenty memories that answer it, plus the ones linked to those, out of however many thousand you have.

At 1,000 project facts that is 2.1× less context per turn (p = 0.002) and $0.50 a task instead of $0.90. Numbers and method below.

It also does three things the built-in memory does not:

  • One brain across projects. Built-in memory is per repository. Marrow's hive lets an agent in api recall what webapp knows.
  • One brain across machines and teammates. Built-in memory is explicitly machine-local. Marrow syncs through a relay you run, or Spinal Cloud if you would rather not.
  • One brain across tools. Claude Code, Cursor and Codex read and write the same memory over MCP.

And because several agents share it, it also keeps them from colliding: a file another live session is editing is claimed, and every agent's actions land in one append-only, hash-chained record you can read.

Free forever, AGPL-3.0, runs on your machine. Every memory is a markdown file you can open and delete.

Does it actually help? We measured it

[Context per turn stays flat for Marrow from 10 to 1,000 project facts, while a CLAUDE.md climbs from 20,962 to 51,141 tokens per turn]

The usual way to tell an agent how your project works is to write it all into a CLAUDE.md, which it then reads on every single turn. That is fine for ten things. A codebase a couple of years old knows a thousand.

We gave a coding agent the same task and the same repo three ways: nothing, everything in a CLAUDE.md, and the same facts in Marrow. 75 runs.

  • A CLAUDE.md costs more the more your project knows. 21k tokens per turn at 10 facts, 51k at a thousand. Marrow stays flat: 24.1k, 23.7k, 24.3k. At a thousand facts that is 2.1× less context (p = 0.002) and $0.50 a task instead of $0.90.
  • Below roughly a hundred facts, just write the file. Marrow loses that one, 0.87×, and takes more turns. We would rather say so than pretend it wins everywhere.
  • An agent with no project memory broke things. It invented a database table, reached for uuid4 where ids are meant to be sortable, and wrote a naive timestamp. Both of the arms that had the knowledge got those right.

Method: same fixture repo and prompt each time, graded by running the code rather than reading it, with bootstrap intervals and a permutation test over 6 runs per cell. There is more on the numbers at marrow.works.

What about Claude Code's built-in memory?

Fair question, and the honest answer is that for a small project you may not need this.

Claude Code ships auto memory: Claude writes notes to ~/.claude/projects/<project>/memory/, and a MEMORY.md index is loaded into every session. It is on by default and it costs nothing. Use it and be happy until one of these starts to bite:

Built-in auto memoryMarrow
How memories reach the modelFirst 200 lines / 25KB of one index file, every sessionRanked retrieval: the matches, plus what they link to
What happens when it outgrows thatClaude is told to delete entriesNothing; retrieval just searches more
ScopeOne repositoryEvery project on the machine
Across your machinesNo — "files are not shared across machines"Yes, via a relay you run or Spinal Cloud
Across toolsClaude Code onlyClaude Code, Cursor, Codex, any MCP client
Shared with teammatesNoYes
Record of what agents didNoAppend-only, hash-chained, auditable
Flags memory that code has outgrownNoYes, for anchored Rust symbols

The rule of thumb: under a hundred facts, one repo, one machine, one tool — use the built-in. Marrow starts paying for itself past that, and our own benchmark says so out loud (we lose at 10 facts).

The two are not exclusive. Auto memory is Claude's private scratchpad; Marrow is the shared record.

Get started

Claude Code, one command:

/plugin marketplace add aryawidjaja/marrow/plugin install marrow@marrow

Then install the binaries it drives (brew install aryawidjaja/marrow/marrow, or irm marrow.works/install.ps1 | iex on Windows) and restart.

Everything else — Cursor, Codex, Claude Desktop, or if you would rather not use a plugin:

bash
brew install aryawidjaja/marrow/marrow    # macOS/Linux; Windows: irm marrow.works/install.ps1 | iexmarrow setup                              # add --global to wire every repo at once

marrow setup seeds your brain with what it can work out about the repo on its own, so the first session is not empty, and reports anything still missing. Restart your agent afterwards. The hooks need jq and never block your work when Marrow is unavailable. Already mid-session? Run /marrow-save to keep what is worth carrying forward.

Changed your mind? marrow uninstall puts everything back and keeps your memories. More ways to install, including the no-terminal Claude Desktop bundle, are further down.

The memory lives in .marrow/ in your project.

See your brain

Marrow isn't a black box, it's a graph you can explore, like a second brain.

bash
marrow-serve          # opens the dashboard at http://localhost:8088

Every memory is a neuron, grouped into the area it belongs to, so the graph has real structure instead of being a hairball. Links connect memories that share a topic, a tag, or related meaning (from embeddings). Browse the tree, drag, zoom, click to read, filter, and add, edit, or delete memories right there. The Hive tab shows every project at once.

Your memories are organised, not a pile

Every memory lives in an area of the project: auth, billing, infra. The agent files it as it writes, so the brain has a shape you can navigate instead of one flat heap.

project  →  area  →  topic  →  versions
bash
marrow areas          # the map: auth 11 · billing 10 · infra 23 · monitoring 10

Your agent sees that same map the moment a session starts, so it knows what the project knows before it answers. It can also weight a recall toward one area without hiding the rest:

bash
marrow add --kind decision --topic jwt-expiry --area auth "We use 15-minute JWTs."

Nothing is forced. If a memory fits no area, it stays unfiled and is still fully searchable. A wrong area is worse than none.

One brain across your projects

By default each project has its own brain. Opt any project into a machine-wide hive with one command, and your agents can recall across all of them:

bash
cd ~/code/webapp && marrow hub register --name webappcd ~/code/api    && marrow hub register --name api
marrow hub recall "how do we do auth"   # searches every project, tagged by project

Now an agent working in api can ask what webapp knows. In the dashboard, the Hive tab shows a central core neuron (you) with every project orbiting it, bridged where they share ideas.

Give your agents a room to talk

Once a project joins the hive, its agents can open named rooms, ask each other questions, reply, and hand work over without relying on one giant chat. Claude Code, Codex, Cursor, and other MCP agents on the same machine can use the same channel.

Agents check the inbox when they start and before touching work another session may own. You can read every room in the dashboard's Channel tab, so the coordination stays visible instead of happening behind your back.

One brain across your devices (beta)

Each project is local and private by default. Share the one project you want synced, and the rest stay on your machine. It's like sharing a repo, not your whole disk.

bash
# once, on a server (Docker, Fly.io, any host; see deploy/)MARROW_TOKEN=$(openssl rand -hex 16) marrow-server
# then in the project you want shared, on each machineMARROW_TOKEN=<the-token> marrow share --gateway https://your-gateway --space team-app

Same gateway + space + token on two machines routes their MCP memory tools to one remote project store. A decision saved through an agent on your laptop is available to an agent on your desktop. Every other project is untouched. The backbone currently uses one bearer token; run it on infrastructure you control over HTTPS and back up its data volume.

bash
marrow status     # shows whether this project is shared or localmarrow unshare    # back to local, nothing is deleted

Your agent is told which mode it is working in. You can configure sharing from the dashboard's Manage Projects panel. The local dashboard still visualizes the local project store; shared-memory reads and writes happen through the agent's MCP tools. Full scope and deployment guidance are in deploy/README.md. Code anchors and freshness checks need the source tree, so they remain local-only.

More install options

Prebuilt binaries, no Rust:

bash
curl -fsSL marrow.works/install.sh | sh

From source:

bash
cargo install --git https://github.com/aryawidjaja/marrow marrow-cli marrow-mcp marrow-web marrow-server

This puts marrow, marrow-mcp, marrow-serve, and the cross-device marrow-server on your PATH.

Windows

powershell
irm marrow.works/install.ps1 | iex

Or with Scoop:

powershell
scoop install https://github.com/aryawidjaja/marrow/releases/latest/download/marrow.json

Either way you get marrow, marrow-mcp, marrow-serve and marrow-server, no admin rights, no Rust, semantic search already built in.

Just want it in Claude Desktop? Download marrow-mcp.mcpb from Releases and double-click. No terminal at all: it asks which project to remember and that is the whole setup.

The hooks that warm-start sessions and stop two agents editing the same file are shell scripts, so they need Git for Windows and jq. The installer says so if either is missing:

powershell
winget install Git.Git jqlang.jq

Without them memory still works; the automatic coordination stays off. Prefer WSL2? Install the Linux way inside it and everything behaves exactly as it does on Linux.

Bringing in an existing project

A fresh brain starts empty. To seed it from docs you already have, the first warm start nudges your agent to run marrow ingest, it lists your README and docs/ and distills them into memory. After that, later sessions can start with those memories available. Any time, run /marrow-save to preserve the decisions and discoveries worth carrying forward.

Using Cursor, Codex, or other MCP agents

The automatic hooks are Claude Code specific, but any MCP agent gets the full memory toolset. Register the server for every Claude Code project:

bash
claude mcp add marrow -s user -- marrow-mcp --root .

For one project, add the same server to .mcp.json (Claude Code), .cursor/mcp.json (Cursor), or your Codex TOML.

Semantic search

Builds that ship with the local embedding model (the marrow-semantic formula, and the Windows and install.sh builds) use meaning-based recall by default, so a note about "JWT" is found by searching "login security". The plain marrow formula is keyword-only and smaller:

bash
brew install aryawidjaja/marrow/marrow-semantic   # multilingual, downloads a small model on first use

marrow status shows the mode; marrow embed none switches back, marrow embed fastembed switches on. Semantic search also powers the "related meaning" links in the dashboard graph.

CLI

Your agent drives Marrow for you, but you can too:

bash
marrow add --kind decision --topic auth "We use short-lived JWTs."   # savemarrow search "token expiry" --weight 1                              # find (0=keyword, 1=semantic)marrow hub recall "rate limiting"                                    # search the whole hivemarrow list-stale --repo .                                           # notes whose code driftedmarrow consolidate --repo . --apply                                  # merge duplicatesmarrow audit                                                         # prove the ledger untampered

marrow add writes a plain markdown file under .marrow/memory/, the YAML frontmatter is metadata, the text below is the memory. The SQLite index is a rebuildable cache over these files.

It doesn't forget the old stuff

The obvious worry with a memory that only ever grows: does the good idea from four months ago just sink? Two things stop it.

Recall follows the links. Ask a question and Marrow doesn't only return what matched your words. It takes the matches and spreads outward through the graph, a few links at a time, weakening with each step. So a note that shares none of your vocabulary still surfaces if it sits behind one that does. That old decision stays reachable through its neighbours, which is exactly what the links are for.

And the brain strengthens what it uses. Every recall is recorded. A memory the agents keep reaching for gets easier to reach again; one nobody has ever touched stays where it is. Recall a thing enough and it comes to you.

When a decision changes, the agent supersedes the old memory instead of appending another active version. Marrow preserves the lineage so the current answer stays clear without losing history.

What's under the hood

  • Staleness detection for Rust: a memory can cite a Rust symbol; Marrow fingerprints it and flags the note when that symbol changes, while tolerating formatting changes and supported relocations.
  • Consolidation: finds genuine duplicates (a near-identical restatement, or a pair that are mutually each other's closest match) and merges them, preserving lineage. It will not merge notes that are merely similar.
  • Associative recall: a question returns the matches and the memories connected to them, found by following links, shared topics and related meaning outward from the hits.
  • Hive mind: sessions join warm, publish best-effort file claims, and read a live activity trail. Claude Code hooks can block a detected local collision, but deliberately fail open rather than risk blocking work when their prerequisites are unavailable.
  • Audit & provenance: every write, edit, and recall lands in an append-only, hash-chained ledger; any answer traces back to its sources. Turn signing on and marrow audit also catches a memory file edited on disk behind Marrow's back.
  • Typed & validated: every memory is a fact or a decision (or an entity), filed in an area under a short topic; bad writes are rejected with the reason, so the brain can't fill up with junk.
  • Expiry & confidence: a memory can say how sure it is, and can carry an expiry date for things that are only true for now. Marrow retires them when they lapse.
  • Runs anywhere: offline single binaries; markdown is the source of truth, SQLite a disposable cache.

The name

Marrow is where the immune system's memory begins: the quiet layer that remembers while the rest of the body keeps changing. Your agents share one too, but it stays yours, on your machine and on your terms.

License

The engine (crates/) is AGPL-3.0-only; the embeddable Python backend (python/marrow-anthropic) is Apache-2.0. Using Marrow from your agent over MCP or the CLI is a separate process, not a derivative work. A commercial license is available, see COMMERCIAL.md.

來源:README.md,提交 9339f0c

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.8.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Marrow 整合