Reef

me.reefwith由 reefwith.me 發布官方發布者v1.0.1更新於 Oct 24, 2026

Shared, living memory for you and your people — coves your AI assistant can read and write.

已驗證Streamable HTTP可網頁執行效率與工作流知識與記憶

概覽

AI 產生的概覽

Reef 是僅限邀請的遠端共享記憶服務,讓 AI 助理在多次對話之間讀寫依權限劃分的「cove」記憶空間。

可以做什麼
  • 載入助理可見頁面的索引,包含路徑、標題、標籤與一行描述
  • 依路徑讀取指定頁面,並在頁面正文中搜尋,遵循相同的存取規則
  • 把值得保留的事實暫存為帶日期的收件匣項目,再整理成正式頁面並標出過時或矛盾的內容
  • 寫入並版本化頁面,附上說明上傳檔案
  • 在顯示確切文字與可讀取名單後,把內容移入共享 cove
適用情境
適合希望助理在不同對話之間記住事實,或與伴侶、家庭、小型專案、客戶共享一份刻意整理、經過篩選的記憶,而不必每次重新交代背景的情境。
執行需求
需要把服務商的遠端 MCP 連接器加入 Claude、ChatGPT 桌面版或 Codex 等用戶端。必須持有邀請,並以受邀電子郵件透過 OAuth 登入。另有可選的 Python 與 Node.js 命令列套件,可用環境變數指定其他伺服器位址或無頭存取權杖。
安裝前請注意
僅限邀請,使用者規模仍小。共享 cove 對所有受邀者可見,且共享是永久的:無法取消共享,確認前應檢查助理準備移入的內容。助理可以寫入、版本化並附加檔案到記憶中。登入權杖快取在使用者私有設定檔中,無頭存取權杖可透過環境變數設定。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Reef,將其新增到工作區。
  2. 連接 所需的 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/me.reefwith%2Freef/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。 客戶端會在首次連接時完成 OAuth 登入。

{
  "mcpServers": {
    "reef": {
      "type": "http",
      "url": "https://reefwith.me/mcp"
    }
  }
}

README

reef

Shared, living memory for you and the people you share your life with — and for the AI assistants you both already use.

[PyPI] [npm] [Python] [MCP] [Live]

Your assistant forgets you between conversations. reef gives it a memory that lasts — and one your partner, your household, or your project can share.

  • Ask once. Tell your assistant the boiler is a Vaillant. Next month, in a different conversation, it still knows.
  • Share on purpose. Your private notes stay private. A shared cove holds only what you deliberately put there.
  • Bring your own assistant. Claude, ChatGPT desktop, or Codex. reef is a remote MCP connector, not another chat app.

Try it

You need an invitation — reef is invite-only. Once you have one:

bash
uv tool install reef-cli   # or: npm install -g @haai/reef-clireef loginreef load-index

To use it from an assistant instead, add https://reefwith.me/mcp as a remote MCP connector and sign in with the address you were invited on.

In Claude Code, the plugin carries that connector and three commands with it:

bash
claude plugin marketplace add diepzee/reefclaude plugin install reef@haai

/reef:recall answers from memory rather than from guesswork, /reef:remember files something away, and /reef:whats-new reports what the other people's assistants have been writing.

There is a browser app too, at reefwith.me/app. Use it to read and edit pages without an assistant.

How memory is organised

Memory lives in coves. You get one private cove the first time you sign in. You can create any number of shared ones — a household, a school circle, an accountant, a small project.

Private coveShared cove
Who can read itOnly youEveryone invited
CreatedAt first sign-inBy whoever needs it
NamedAlways personalBy you, for you
People joinNeverBy email invitation from the owner

You name shared coves for yourself. Your name for a cove is yours alone. Two households can each have a family without either knowing the other exists, and nobody can take a name from anybody else.

Sharing is deliberate and permanent. Moving something out of your private cove takes two steps. First your assistant shows you the exact text and names everyone who will be able to read it. Only then does it move.

Writing private content into a shared cove any other way is refused — not discouraged, refused. And there is no un-sharing.

How your assistant reads it

reef loads an index first, then pages — the LLM Wiki pattern, adapted for shared, permissioned memory.

  1. The assistant calls load_index and gets a map of every page it may see: path, title, tags, and a one-line description. No page bodies.
  2. It reads the map, decides what this conversation needs, and fetches only that with read_pages.
  3. It fetches again as the topic moves. When the map alone cannot settle what to read, search_pages matches words inside page bodies — and because it runs under the same row-level security as every read, a search can never surface a page its caller could not open.

The index is rebuilt from the database on every call, so it cannot fall out of date.

How your assistant writes it

Nothing is recorded silently. Mid-conversation, a fact worth keeping goes through remember, which stages it as a dated line in that cove's inbox — and before the conversation ends, the assistant says what it is keeping so you can strike anything first.

An inbox entry is not memory yet. A tidy-up — ask for one any time — compiles inboxes onto real pages, flags pages that have gone stale, and surfaces contradictions between your pages and shared ones instead of silently picking a winner. Deliberate capture, reviewed by you, is the design: reef will not transcribe your conversations behind your back.

How your privacy is protected

The database enforces it, not the application code.

Every page, file, and membership is guarded by PostgreSQL Row-Level Security. A query with a forgotten filter returns nothing rather than somebody else's data. Getting it wrong fails closed.

This works only because the app connects as an ordinary database role. A superuser ignores every policy, so reef runs as rif_app — which can read and write rows but cannot change the schema. Migrations and backups use a separate, more privileged credential. See scripts/provision_app_role.py.

Your data stays yours

Pages are Markdown from the moment you write them. The web app exports:

  • current content, as a Markdown archive or JSON, and
  • everything, as one download with full revision history and your stored file bytes.

Both are plain files that outlive this deployment. Export is one-way, out of reef — nothing here locks your memory in.

Using the CLI

Two packages, both installing a reef command:

InstallWhat you get
Pythonuv tool install reef-cliEvery MCP tool as a named command
npmnpm install -g @haai/reef-clilogin, tools, and call

Named commands use hyphens: load_index becomes load-index. Every result is JSON, and an error such as not_found also exits non-zero.

bash
reef read-pages personal profile.md preferences.mdreef write-page personal plans.md --body-file ./plans.md \  --message "Add the summer plan" --title Plansreef add-file personal ./lease.pdf --description "Signed rental agreement"reef call read_pages '{"cove":"personal","paths":["plans.md"]}'

reef call takes any MCP tool name and a JSON object, so it reaches everything the named commands do. Large inputs can come from a file or stdin; uploads are encoded for you.

Both packages sign in through the same browser flow. Each caches its own token, so logging in with one does not log in the other. Tokens live in a user-private config file.

Set REEF_MCP_URL to point at another server, or REEF_ACCESS_TOKEN for a headless run.

Run reef tools for the live schemas, and reef <command> --help for arguments.

Agent skill: skills/reef/SKILL.md teaches an assistant the retrieval protocol, private-by-default writing, optimistic locking, and when it must ask you before acting.

Status

Live since 6 August 2026 at reefwith.me, deployed on Railway behind WorkOS AuthKit, and in daily use.

Complete and reviewed: the schema and access control, index and page reads, versioned writes, and section-level sharing. Also multi-user coves with owner-managed invitations, file storage, the browser app, import, backup, and export.

Tests run against a real PostgreSQL, not a mock.

Known gaps, honestly:

  • Few people are on it. Growth is one invitation at a time, by design.
  • The context ceiling has not been measured on a phone.

An independent scheduled job now writes a daily pg_dump to R2. Every run observed from 24 August through 10 September 2026 uploaded successfully and passed the script's byte-count check. Separately, a 7 August production dump passed a restore drill. Railway-managed backup status and R2 retention controls remain unverified.

Everything outstanding is tracked in the "Open items" list at the top of docs/runbook.md.

Development

You need Docker and uv. just is optional but does the setup for you.

bash
just setup   # dependencies, database, and the roles the tests needjust test    # lint, Python suite, frontend suitejust dev     # serve the app locally

just on its own lists every task. Without it:

bash
docker compose up -d              # PostgreSQL on port 5433uv sync && (cd frontend && bun install)uv run pytest                     # builds its own schema in rif_test

A cluster created before the test roles existed is missing them, and the suite says so loudly rather than testing a weaker shape. just db-roles repairs it.

Two things about the local database are deliberate, not accidental:

  • It does not run the app as a superuser. A superuser ignores Row-Level Security, so the security tests would pass without proving anything. See the comment in docker-compose.yml.
  • It creates a separate non-owner role for tests. A table's owner is not bound by column grants. Without that role, a test asserting "a member cannot rename a cove" would pass for the wrong reason.

Migrations seed one person and their coves. Nobody else is seeded, on purpose. An email address is the key a first sign-in binds against, and a migration does not re-run to correct a wrong guess. Everyone else arrives by invitation.

Write your PR title as a Conventional Commit (PRs are squash-merged, so the title is what decides the release version), and add a one-sentence fragment under changes/ if a person using reef would notice the change — see docs/releasing.md.

Documentation

DocumentWhat it covers
docs/spec.mdThe design and why it is shaped this way
docs/runbook.mdDeploying, and what is still open
docs/restore.mdBackup and restore
docs/competitor-research.mdThe market around it

Licence

The server — everything at the repository root — is AGPL-3.0-or-later. Read it, run it for yourself, fork it. The one condition that bites is the network one: if you run a modified reef as a service other people use, you owe them your changes. That matches what reef asks of itself. If somebody else is holding your memory, you should be able to see the code that holds it.

The parts you install rather than host are MIT, because a licence should not be a reason to hesitate over a client:

PartLicence
The server (src/, this repository)AGPL-3.0-or-later
clients/python — reef-cli on PyPIMIT
clients/ts — @haai/reef-cli on npmMIT
plugins/reef — the Claude Code pluginMIT

Copyright is held by Haai BV.

A note on the name

The product is reef, and so is the Python module. rif was the working name, and it survived far longer than intended.

What is still called rif is everything a running system remembers, because those are not names anybody reads — they are keys something already wrote down:

Still rifWhat it isWhy it stays
app_name="rif"Piccolo's key in the migration tableRenaming it makes Piccolo find zero applied migrations and replay the whole chain against a populated database
rif_roster, rif_admit_member, …SQL helper functionsThey are the row-level-security boundary; renaming them is live DDL on the part of the system that must not be got wrong
rif, rif_authz, rif_probedatabase rolesRLS is only enforced against the right roles, and the suite asserts privileges as rif_probe
RIF_*environment variablesTwelve are set on Railway, including the signing key and the open door; a renamed variable that nobody set reads as absent
diepzee/reefthe repositoryA plugin submission under review points at this URL

The rule, if you are adding something: if the database or the deployment will remember the name, it is rif. If a person will read it, it is reef.

來源:README.md,提交 4cba886

工具

0
該伺服器需要登入,因此 SourceWeft 無法在沒有帳號的情況下讀取其工具,也未收錄。已連接帳號所能看到的內容可能因帳號及其權限而異。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具15 分

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

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