Plumb

io.github.plumbkit由 GitHub 帳號 plumbkit 發布v0.26.2更新於 Oct 30, 2026

LSP-backed IDE intelligence plus concurrency-safe, transactional edits for AI coding agents.

已驗證STDIO僅桌面知識與記憶開發者工具

概覽

AI 產生的概覽

本機 MCP 伺服器,為編碼代理提供 IDE 等級的程式碼智慧(LSP 符號、參照、重構),並支援安全的事務式檔案編輯與多代理協作。

可以做什麼
  • 在儲存庫中定位:工作階段啟動回傳工作區、分支、提交、診斷與專案記憶
  • 搜尋與瀏覽程式碼:符號搜尋、定義、參照、大綱、呼叫階層,可選拓撲索引
  • 重構與編輯:重新命名符號、替換符號本體、安全刪除、檔案編輯、可回滾的多檔案事務
  • 檢查程式碼健康:寫入後附上語言伺服器診斷結果
  • 協調多個代理:感知同儕工作階段、代理間信箱、可選意圖宣告與共享發現
  • 透過分級控管執行 git 操作,並在終端機儀表板查看活動
適用情境
適合讓代理在真實程式碼庫中長時間無人看管地修改程式碼,需要原子寫入、依路徑加鎖、回滾與過期編輯防護,而非整檔重寫。也適合多個代理在同一儲存庫協作、需要看到彼此變更並交接工作的情境。
執行需求
需在本機安裝單一二進位檔(Homebrew、Go 或預先建置版本),並以其 setup 指令連接代理。完整 LSP 功能要求 PATH 中有 gopls、pyright 等語言伺服器;tree-sitter 搜尋不需語言伺服器。僅支援 macOS 與 Linux,Windows 尚不支援。透過 config.toml 或環境變數設定。
安裝前請注意
它會寫入儲存庫:編輯、多檔案事務與重構會改動檔案;git 操作受 allow_destructive、allow_push 等設定控管,預設關閉。共享背景守護程序服務所有代理,並在磁碟上保留各專案索引與全域統計資料庫。同儕工作階段與代理信箱會在同一工作區的代理之間共享活動紀錄與訊息。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

[CI] [Go Reference] [Go Report Card] [License: MIT]

[plumb]

IDE intelligence for agents — guardrails for unattended work, coordination for fleets.

Plumb is an MCP server that gives a coding agent the intelligence layer of an IDE — LSP-backed semantics, a tree-sitter code index, and project memory — inside guardrails: atomic, lock-serialised writes with transactional rollback, scoped filesystem and git access, and a daemon that survives its own crashes. And because every agent you run shares that one daemon, plumb is also the coordination layer between them: peers see the writes others made, message each other, and hand off work instead of duplicating it. A single binary; nothing else to install.


Why Plumb

LLM agents usually work by reading whole files into the context window — token-heavy, lossy at scale, blind to symbol semantics, and unsafe to let loose on a real repo. Plumb is built on four pillars, in priority order.

1. Reliability & write-safety

Leaving an agent to edit a codebase for an hour is only viable if writes can't corrupt files and a crash can't wedge your session.

  • Atomic I/O — every write is staged in a temp file and renamed into place. No partial writes, ever. Symlink-aware, CRLF-tolerant.
  • Per-path locking — the daemon serialises concurrent writes to the same file across every session and chat window. No races.
  • Multi-file transactions — apply edits across dozens of files with guaranteed atomic rollback if any step fails.
  • Crash-resilient daemon — plumb serve is a reconnecting proxy. If the daemon crashes or hangs, it respawns one and replays the handshake; the agent never notices. In-flight writes are never silently re-run.
  • Optimistic concurrency — mtime/sha guards catch stale edits before they clobber newer changes.

See it run: docs/demos/ — two-agents-one-file.sh (a stale write is refused, nothing is lost) and daemon-respawn.sh (below — the daemon is killed mid-session; the agent's next edit still succeeds):

[daemon-respawn.sh: the daemon is killed mid-session and the agent's next edit still succeeds]

2. Multi-agent coordination

One daemon serves every agent you run — which makes it the natural place for agents to see and talk to each other, not merely avoid each other's writes. Locks stop two agents corrupting a file; coordination stops them duplicating a task, rebasing onto a function signature a peer is mid-rewrite of, or shipping a change a peer's in-flight work is about to invalidate.

  • Peer awareness (on by default) — workspace_sessions names every active session and the writes it made, as the daemon recorded them. Recorded activity, not another agent's say-so: an agent about to start a task can see that a peer is already in those files. (Read-only operations never appear, and a write that failed or was refused is kept but marked [failed — no change applied] — so "a peer is working here" and "this landed" are distinguishable at a glance.)
  • An agent-to-agent mailbox (on by default, same workspace) — leave_note / check_messages give sessions a threaded channel: hand a change to the peer already rewriting those files, or ask a peer to measure a behaviour instead of assuming it. Messages ride on ordinary tool results, so a working agent receives them without polling.
  • Advisory intents (opt-in: [collab] intents) — share_intent declares what an agent is working on; a peer whose write touches a claimed path gets a hint at the moment of the would-be collision. Intents are deliberately labelled as unverified claims, kept distinct from the daemon-recorded activity feed, and never block anything.
  • Durable findings (opt-in: [collab] knowledge_handoff) — share_findings turns what an agent just learned into a searchable, secret-scrubbed project memory immediately, so the knowledge outlives the session that produced it.

Coordination is advisory by design — the write-safety above never depends on agents cooperating. Reference: Cross-agent sharing in the tool docs and the [collab] config section.

3. Semantic intelligence

The same primitives your editor has, exposed as structured tools:

  • LSP-backed refactors — rename_symbol, replace_symbol_body, safe_delete_symbol understand scope, types, and references.
  • Real diagnostics inline — actual gopls/pyright output is appended to every write, so the agent learns it broke the build immediately.
  • Symbol search — scoped to your code, no stdlib or dependency noise.

4. Context efficiency & safety controls

  • Read only what you need — symbols or line ranges, not 2,000-line files.
  • Scoped access you control — a per-connection path allowlist (read-only vs read-write roots) plus tiered git gating (destructive and network operations are off by default and need explicit confirmation). See SECURITY.md.
  • One-round-trip bootstrap — session_start returns workspace, branch, recent commits, diagnostics, and project memory.

See the measured, reproducible numbers behind this: docs/use-cases.md — reading one function is 2.9×–33.4× less context than the whole file (the ratio is how much of the file you didn't need), and find_references returns the real call sites where a text search is 60% noise. The page publishes the losses too: read_multiple_files costs 1.31× more payload than reading the files natively (down from 1.32×, but still a loss — see Scenario 10 for why it isn't smaller). Every figure is regenerated by scripts/measure-use-cases.py.


Get started

Plumb is a single binary — from zero to your first answer:

1. Install

sh
# Homebrew (macOS + Linux) — recommendedbrew install plumbkit/plumb/plumb
# or with Gogo install github.com/plumbkit/plumb/cmd/plumb@latest
# or grab a prebuilt binary: https://github.com/plumbkit/plumb/releases

macOS note: prebuilt binaries are not yet notarised — on first run you may need xattr -d com.apple.quarantine ./plumb, or right-click → Open. Homebrew installs avoid this.

2. Connect your agent

sh
plumb setup claude-code      # also: claude-desktop, codex, gemini, cursor, …

plumb setup writes the MCP config for you — no hand-editing JSON.

3. Open your project and try it

Make sure the language server you need is on your $PATH (gopls for Go, pyright for Python, …), then point your agent at a real question. In Claude Code:

sh
cd your/projectclaude "Use plumb to orient in this repo (session_start), then show meeverywhere <Handler> is called and what would break if I changed its signature."

Plumb resolves the workspace and runs session_start for orientation, then answers with real LSP and topology data — actual call sites and blast radius — instead of guessing from file dumps. It's read-only; nothing is modified. (Any connected agent works — just paste the prompt.)

No go.mod/pyproject.toml and not a git repo? Run plumb init once to pin the workspace root (it also seeds .plumb/context.md and project config).

Full walkthrough → docs/getting-started.md.


Language support (honest version)

Plumb negotiates LSP capabilities per language and also ships a built-in tree-sitter index for search and navigation with no language server. Support comes in tiers — we'd rather be precise than claim a big number.

TierLanguagesWhat you get
First-class (CI-tested, real-binary integration)Go (gopls), Python (pyright)Full LSP: definitions, references, rename, diagnostics, hierarchies + all write tools
ValidatedJava (jdtls), Rust (rust-analyzer), Swift (sourcekit-lsp), TypeScript/JS (typescript-language-server), Zig (zls), Kotlin (kotlin-lsp), HTML (vscode-html-language-server)Full LSP; just put the server on $PATH and it activates automatically (exclude any language with [lsp.<lang>] enabled = false). HTML carries one caveat: that server has no filesystem access, so it answers only from documents already opened
Search & navigation (tree-sitter, no LSP needed)31+ incl. JS/TS/TSX, Ruby, C, C#, Elixir, Scala, PHP, JSON, CSS, SCSS, XML, Lua, C++, Objective-C, Dart, Bash, SQL, HCL, Dockerfile, TOML, YAML, MarkdownRanked symbol search, outlines, graph exploration via the Topology index

Real-binary validation has been exercised on macOS and Linux — as of 2026-08-21, all nine adapters pass their integration tests against real server binaries on both. Details, including three toolchain traps that look like adapter bugs, are in docs/adding-an-lsp.md. Windows is tracked but not yet supported — the daemon's Unix-socket architecture needs a port.


How it works

plumb serve is a thin, reconnecting stdio proxy. The real work happens in one shared background daemon, so language servers stay warm across chats.

mermaid
flowchart TD    A1["Claude"] --> S1["plumb serve *"]    A2["Codex"] --> S2["plumb serve *"]    A3["Gemini"] --> S3["plumb serve *"]    S1 --> K["plumb.sock"]    S2 --> K    S3 --> K    K --> D["plumb daemon **"]    D --> SDB[("stats.db ***<br/>global — all projects")]    D --> G["gopls → /projects/foo"]    D --> P["pyright → /projects/bar"]    G --> F1[("/projects/foo/.plumb/ ***<br/>topology.db · memory.db")]    P --> F2[("/projects/bar/.plumb/ ***<br/>topology.db · memory.db")]

* plumb serve is a reconnecting proxy — if the daemon crashes or hangs it respawns one and replays the handshake, so your session survives without the agent noticing.

** one shared process, reused across every conversation.

*** SQLite. One global stats.db (tool stats + episodic summaries); two per-project indexes under each workspace's .plumb/ — topology.db (the code graph) and memory.db (memory search). Schema details → docs/architecture.md.

Servers stay warm across chats, per-path locks are shared across every connection, and symbol indexes update live after each write. Full architecture → docs/architecture.md.


Monitoring (TUI)

Run plumb with no arguments for a live dashboard — see what your agent is doing in real time: every tool call as it happens, daemon health, per-tool stats, and streaming logs you can follow and filter. The fastest way to catch a runaway loop or confirm an edit landed.


Core capabilities

Plumb exposes 61 tools. The ones you'll use constantly:

session_start · workspace_symbols · get_definition · find_references · rename_symbol · edit_file · transaction_apply · diagnostics

The rest cover filesystem reads/writes, LSP hierarchies, tiered git, an optional local Topology index (ranked search + blast-radius/route analysis, no language server needed), durable per-project memory, and cross-agent coordination (peer sessions, an agent mailbox, opt-in intents and knowledge handoff). Full API reference: docs/tools.md.


Configuration

Global or per-project config.toml, or environment variables. Run plumb config show to see the resolved config with provenance.

toml
[edits]strict = true                  # require read_file before edit_filerate_limit_per_minute = 30     # bound runaway agent loops
[git]allow_destructive = false      # reset/checkout/rebase off by defaultallow_push = false             # push/fetch/pull off by default

Full settings reference: docs/configuration.md.


The hard part

Agents can already read code well enough; writing it unsupervised — concurrently, transactionally, recoverably — is what's still unsolved. Plumb is the bet that this is the half worth getting right first. It's early, and the language coverage says so: a small validated core, the rest clearly marked experimental.


Roadmap

Plumb is pre-1.0. The core — write-safety, the resilient daemon, the topology index, and project memory — is in daily use. The road to 1.0 is mostly about proving it beyond the validated core and smoothing distribution. Issues and ideas welcome.

Shipped

  • Concurrency-safe, atomic, transactional writes with rollback
  • Crash-resilient reconnecting daemon
  • Tree-sitter topology index + per-project memory
  • Cross-agent coordination: peer awareness + agent mailbox (default on), intents + knowledge handoff (opt-in)
  • Go and Python LSP adapters validated (real-binary)

Getting to 1.0. Rather than jump from 0.9 straight to 1.0, Plumb ships a series of focused minor releases — 0.10 through 0.19 — each with one coherent theme. 0.19.x is the last 0.x release; 1.0 follows it as a deliberate stability commitment. Native Windows support is intentionally a post-1.0 (1.1) item, not a 1.0 gate. The themed plan:

  • 0.10 — distribution + honest claims (Homebrew, semantic re-rank → GA)
  • 0.11 — validate the experimental LSP adapters on real binaries (zls ✓ validated; Kotlin ✓ validated on JetBrains' kotlin-lsp)
  • 0.12 — Swift on Xcode via Build Server Protocol guidance
  • 0.13 — daemon robustness (git-write crash safety, liveness probe)
  • 0.14 — agent ergonomics + tool surface
  • 0.15 — honesty + full config surface
  • 0.16 — stabilisation + cross-platform proving
  • 0.17 — distribution + discoverability (registries)
  • 0.18 — proof + docs
  • 0.19 — soak + feedback, the last 0.x (rolling patches, not a formal RC)
  • 1.0 — general availability: the stability + validated-core promise

Full detail, rationale, and the post-1.0 items (Windows, tree-sitter cleanup) are in docs/roadmap.md.

Contributing

See CONTRIBUTING.md and AGENTS.md for architecture and code style. We follow Australian English in all prose. By contributing you agree to the Code of Conduct.

License

MIT — see LICENSE.

來源:README.md,提交 330cdcb

工具

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

版本歷史

12
  1. v0.26.2最新Oct 16, 2026
  2. v0.26.0Oct 16, 2026
  3. v0.25.1Oct 15, 2026
  4. v0.24.0Oct 10, 2026
  5. v0.23.0Oct 7, 2026
  6. v0.22.0Oct 5, 2026
  7. v0.21.0Oct 2, 2026
  8. v0.20.3Sep 30, 2026
  9. v0.20.2Sep 23, 2026
  10. v0.20.1Sep 17, 2026
  11. v0.20.0Sep 17, 2026
  12. v0.19.4Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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