knowledge

io.github.To0wnn由 GitHub 帳號 To0wnn 發布v0.39.3更新於 Nov 7, 2026

Self-hosted shared memory and docs for Claude Code, Codex and Antigravity agents, with a graph UI

概覽

AI 產生的概覽

自架共享記憶服務,以純 Markdown 筆記讓 Claude Code、Codex 與 Antigravity 代理在你自己的多台電腦間讀寫。

可以做什麼
  • 儲存、搜尋並回想所有已連線代理共享的筆記,以本機嵌入依語意查找
  • 把筆記存成純 Markdown 檔案,附每專案索引、慣例規則與重複檢查
  • 以筆記中的一行把任務從一個代理交接給另一個,只在一台機器、獨立 git 分支中執行一次
  • 透過手機網頁應用操控代理:收件匣、聊天、即時追蹤 worker 以及允許/拒絕審核
  • 在圖譜介面瀏覽筆記,並在管理頁管理裝置權杖
適用情境
適合在一台或多台電腦上執行兩個以上編碼代理,並希望筆記與任務交接保存在自己的伺服器、而非第三方服務的情況。
執行需求
需要一台執行 Docker 的伺服器,約 2 GB 記憶體供伺服器映像使用;每台用戶端電腦需要 git 與 Python 3.9 以上版本。需設定 KNOWLEDGE_UI_PASSWORD 供網頁介面使用,並為每台裝置使用裝置權杖(Authorization 標頭)。多台電腦或手機存取需透過反向代理提供 HTTPS,並把 host:port 加入 KNOWLEDGE_ALLOWED_HOSTS。
安裝前請注意
在純 HTTP 下,介面密碼與裝置權杖會以可讀形式經過網路,localhost 以外應使用 HTTPS。聊天中的代理可編輯其資料夾內的檔案,其他動作需你審核;worker 會執行代理工作階段並消耗用量額度。安裝腳本會關閉 Claude 的本機自動記憶,權杖存放在作業系統鑰匙圈中。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

knowledge

[LongMemEval-S R@5] [Real questions, top 5] [Clients CI] [Release] [License: MIT]

Your coding agents share one memory and hand work to each other across your own PCs — and you steer them from your phone. Self-hosted, plain Markdown.

Works with Claude Code, Codex and Antigravity (agy, Gemini) on Linux, macOS and Windows. Made for solo developers and homelabbers with two or more PCs and two or more agents who want their notes to stay on their own server.

  • One memory, every agent. Tell Claude Code something on your laptop; Codex on your desktop knows it. Notes are plain Markdown files on your disk, found by meaning (98.8% R@5 on LongMemEval-S, embeddings run locally).
  • Agents hand work to each other. One line in a note hands a task to another agent; it runs once, on one of your PCs, in its own git branch, and the result comes back to whoever asked.
  • You steer from your phone. An inbox of what needs you, chats with the agents on your PCs, and Allow/Deny for each risky step, in a web app you install on your phone.
[The web UI map: notes grouped into topics, links between them] [The Agents view: what needs you on the left with Reply, the open chat with the agent on the right]

Made-up demo notes from demo/.

You can use it in two layers. Memory is the server plus one agent: five minutes, nothing else on your PCs. Cockpit adds the companion on each PC, so tasks run as workers and you can chat and approve from your phone.

Quickstart: Memory

You need Docker and about 2 GB RAM on the server, and git plus Python 3.9 or newer on each PC.

1. Run the server.

sh
git clone https://github.com/To0wnn/knowledge && cd knowledgemkdir data && echo "KNOWLEDGE_UI_PASSWORD=<a long password>" > .envdocker compose up -d

2. Get the first token. The first start makes one admin token and prints it once, with the next steps:

sh
docker compose logs knowledge

Tokens for more devices: open http://localhost:8766/ui, sign in with the password and use the admin page (Admin); it shows the install line with your server address filled in.

3. Connect an agent on the same PC:

sh
curl -fsSL https://raw.githubusercontent.com/To0wnn/knowledge/main/install.sh | sh   # Linux, macOS
powershell
irm https://raw.githubusercontent.com/To0wnn/knowledge/main/install.ps1 | iex        # Windows

It finds Claude Code, Codex and agy, asks y/n for each, and asks for the server address (http://localhost:8766) and the token. Run the same line again later to update. Only the plugin, without the companion (a work laptop, an SSH server): add -s -- --plugin-only after sh (docs/clients.md).

4. Try it. Tell Claude Code: "save to knowledge: we deploy with ./deploy.sh" (the installer turns Claude's own local auto-memory off, so it writes a memo on the server). Then start Codex (or agy), on this pc or another, and ask "how do we deploy?". It answers from the shared memory.

More than one PC? Put the server behind HTTPS (a reverse proxy) and add its host:port to KNOWLEDGE_ALLOWED_HOSTS in .env; then run the install line on every PC with a token per device. Over plain HTTP the password and tokens cross the network readable. All settings: docs/server.md.

Add the Cockpit

The install line also sets up the companion, a small local service on each PC (127.0.0.1:47321, starts at logon). With it:

  • Workers. A task handed to an agent runs as a fresh headless session in its own git worktree and branch, at most one per agent by default, paused at 90% of the agent's usage limit. Workers are off until you tick "Workers allowed" on the companion's page. Follow a worker to watch it live in the chat view, steer it between steps, or take it over as a chat. docs/tasks.md
  • Chats from your phone. Open the web UI on your phone and install it as an app; start a chat with Claude Code, Codex or agy in a project folder on one of your PCs. The answer streams in as in a terminal. Attach files or screenshots, or speak your message (any OpenAI-compatible speech-to-text server, one is bundled). docs/chats.md, docs/voice.md
  • Approvals. Without YOLO, an agent in a chat may edit files in its folder and asks you for anything else: Allow once, Allow for this chat or Deny, on the phone or in the Inbox. docs/chats.md
  • Inbox and Machines. One board of what needs you, what runs and what is done; per PC its agents, workers, usage and a fixed set of remote actions (no remote shell). docs/companion.md

To use it from your phone, the server must be reachable from the phone over HTTPS. Link a project folder once by asking your agent to run the skill knowledge-init.

Compared with

Each of these is good at its own part; knowledge is the one that combines shared memory, hand-overs and a phone cockpit across several agents and PCs.

ToolWhat it does wellWhere knowledge differs
claude-memAutomatic session memory for Claude Code, localOne server for Claude Code, Codex and agy on all your PCs; plain Markdown you edit
basic-memoryLocal Markdown knowledge base over MCPAdds shared multi-PC serving, house-rule lint, duplicate checks and agent hand-overs
Happy, Omnara, Claude Code Remote ControlSteer a running agent session from your phoneAlso memory and tasks between agents; self-hosted, no third-party relay
Conductor, SupersetRun parallel agents in worktrees on one Mac or desktopWorkers on any of your PCs (Linux, macOS, Windows), started from a shared task list
Vibe KanbanKanban board that runs coding agents in worktreesTasks are lines in your notes, agents hand them to each other, steered from the phone

Honest limits

  • A server to run: Docker, about 2 GB RAM, an image of about 1.5 GB (the embedding model ships in it).
  • HTTPS for more than one PC or the phone: you put a reverse proxy in front.
  • Agents: Claude Code, Codex and Antigravity (agy) only.
  • Notifications: a Matrix room or an ntfy topic (set a few values in .env) and desktop notifications in an open browser tab; no phone push without one of those (docs/server.md).
  • One admin: password sign-in is for one person; several people need a reverse proxy with forward auth.
  • One maintainer, built for their own use first. Issues and pull requests welcome.

Known gaps: docs/ROADMAP.md.

How it works

  • Server (server/): Python in one Docker container, MCP over streamable HTTP plus the web UI. All notes sit in memory; search and embeddings (EmbeddingGemma, ONNX) run locally, nothing leaves the machine.
  • Notes: plain Markdown in data/, with a MEMORY.md index per project, a few house rules and a lint that keeps agent memory findable and free of duplicates.
  • Plugin (plugin/): one folder that installs in Claude Code, Codex and agy: the MCP server, session-start context, hand-over checks each turn, and development skills. Tokens live in the OS keyring.
  • Tasks: a hand-over is a line in a note (- open until <date> [<Owner>, <ID>] from <Requester>, start ...: <what>); the server decides when it may start and gives it to one machine only.
  • Companion (clients/, plugin/companion): pulls tasks, actions and chat messages from the server; the server never connects to your PCs.

Documentation

PageContents
server.mdRunning the server, .env settings, proxy sign-in, notifications
clients.mdThe installer, updates, linking folders, Windows, skills, usage limits, secret guard
memory.mdMCP tools, session start, projects, lint, duplicates, secrets, search quality
tasks.mdTask lines, leases and nonces, results, workers, usage limit, mission map
companion.mdThe companion, machines, own devices, remote control, YOLO safety
chats.mdAgents (what needs you, what runs, chats) and approvals
voice.mdSpeaking chat messages: set up speech to text
web-ui.mdViews, routes, graph, installing as an app (PWA, cookies)
security.mdThe security model in one page
development.mdTests, CI, plugin versions, screenshots
ROADMAP.mdKnown gaps

License

MIT, see LICENSE.

The server image includes the EmbeddingGemma model weights. Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms; its use is also subject to the Gemma Prohibited Use Policy. The weights are not modified.

來源:README.md,提交 744bd0c

工具

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

版本歷史

15
  1. v0.39.3最新Nov 7, 2026
  2. v0.37.2Nov 6, 2026
  3. v0.37.1Nov 5, 2026
  4. v0.36.0Nov 5, 2026
  5. v0.35.0Nov 5, 2026
  6. v0.30.0Nov 3, 2026
  7. v0.28.0Nov 3, 2026
  8. v0.27.0Nov 3, 2026
  9. v0.22.0Nov 1, 2026
  10. v0.20.2Nov 1, 2026
  11. v0.19.1Nov 1, 2026
  12. v0.17.0Nov 1, 2026
  13. v0.14.2Oct 31, 2026
  14. v0.12.6Oct 30, 2026
  15. v0.12.5Oct 29, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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