
Agent Postbox
io.github.Aethelgard-Systems由 GitHub 帳號 Aethelgard-Systems 發布v0.2.1更新於 Oct 29, 2026
Verifiable agent handoffs over GitHub Issues and PRs: bounded writes, read-back, evidence log.
概覽
把 GitHub 儲存庫變成 AI 代理的信箱,讓代理之間交接任務、留言、貼標籤與審查 PR,並附上回讀回執與簽章證據日誌。
- 可以做什麼
- 讀取寄給本代理的 issue 與 PR 收件匣,並讀取單一 issue 或 PR 及其留言
- 張貼附回執、經回讀確認的留言,新增或移除定址、認領與允許的標籤
- 提出新 issue,含重複檢查與每日上限
- 審查 PR(核准、要求修改、留言),綁定到 head commit,且拒絕審查自己的 PR
- 建立、讀取並確認含驗收條件的交接,綁定所讀文字的雜湊值
- 驗證雜湊鏈與 Ed25519 簽章的證據日誌,並管理寫入回執
- 適用情境
- 適合在同一個 GitHub 儲存庫上執行多個編碼代理的開發者,希望代理之間的交接可被驗證,而不只是口頭回報狀態,同時合併與核准仍由人掌握。
- 執行需求
- 本機 Node.js 20 以上版本的行程(npm 套件,stdio 或選用 HTTP 傳輸)。需要一個 GitHub 儲存庫,並為每個代理準備獨立的 GitHub 身分與僅限該儲存庫的細粒度權杖(Issues 與 Pull requests 讀寫、Metadata 讀);預設拒絕傳統權杖。權杖從 AGENT_POSTBOX_TOKEN 讀取,設定檔指定儲存庫、代理名稱、標籤與上限。需要連線至 api.github.com。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agent Postbox,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
agent-postbox
Verifiable handoffs for MCP agents. agent-postbox makes agent handoffs over GitHub verifiable – with read-back and evidence instead of bare status messages.
AI coworkers collaborate through GitHub Issues and pull requests – with bounded writes, receipts and four-eyes review.
You already have a durable, auditable, human-readable coordination system: your GitHub repository. agent-postbox turns it into a mailbox for AI agents, so they can hand work to each other, report results and review each other's pull requests, while every write stays small, verified and attributable, and every decision stays with a human.
It is a small Model Context Protocol server (stdio or Streamable HTTP) plus a CLI. Zero runtime dependencies.
A shared inbox delivers a message. agent-postbox proves the handoff happened – read-back of every write, an acknowledgement bound to the exact text the agent read, no self-review, and a signed evidence log you can verify.
Release: v0.2.1 · For: developers running several coding agents (Claude Code, Codex, Cursor, …) on one GitHub repo · Zero runtime dependencies.
Try it in 30 seconds
No GitHub account, token or network needed – the demo runs two agents against an in-memory GitHub with synthetic data:
Windows PowerShell blocks npm with “running scripts is disabled on this system”? Use npm.cmd run demo or node examples/offline-demo/demo.mjs instead – same demo, no policy change needed.
You will see a builder and a reviewer hand work to each other, a lost network response reconciled instead of posted twice, and three unsafe actions refused (self-review, a human-only label, a token in a comment). Details and limits: examples/offline-demo.
npm run demo:handoff shows the v0.2 flow: a planner hands a task to a builder, the builder's acknowledgement is bound to the text it read (an edited handoff is refused until re-read), and the signed evidence log is verified – then tampered with and caught.
Why
Multi-agent setups usually fail in boring ways: an agent claims it posted something it did not, posts the same thing twice after a timeout, approves its own work, treats text in an issue as an order, or leaks a token into a comment. agent-postbox addresses exactly those failure modes and nothing else.
Non-goals
Not an agent framework, not a runtime, no database, no dashboard, no worktree orchestration, no role model. Bring your own agents; agent-postbox is only the mailbox.
Tools
The complete tool list costs under 4,500 characters of model context (tested).
Quick start
- One identity per agent. Each agent needs its own GitHub identity so that authorship and four-eyes review are real – a dedicated machine account with a fine-grained personal access token limited to one repository (Issues: read/write, Pull requests: read/write, Metadata: read), or a GitHub App installation token. Classic tokens are refused by default.
- Install (Node.js ≥ 20):
- Configure –
agent-postbox.config.json: - Check without writing anything:
- Connect your MCP client (example for clients using the common
mcpServersformat). For clients that speak Streamable HTTP, runagent-postbox serve --transport http --port 8471instead and point them athttp://127.0.0.1:8471/mcp(other hosts needAGENT_POSTBOX_HTTP_TOKEN): - Copy
templates/AGENTS.mdandtemplates/pull_request_template.mdinto your repository so agents and humans share one protocol.
Step-by-step setup: docs/getting-started.md. A walk-through with two agents reviewing each other is in examples/two-agent-review.
Configuration
CLI
All output is JSON. Refusals exit with code 2 and a stable error code (POLICY, SECRET, LIMIT, SELF_REVIEW, UNKNOWN_OUTCOME, READBACK_MISMATCH, …).
Evidence log (v0.2)
Next to the receipts file, agent-postbox keeps <receipts>.evidence.jsonl: one line per receipt state change, hash-chained and
signed with the agent's Ed25519 key. It holds keys, kinds, states, read-back verdicts and hashes – never bodies, titles or tokens.
agent-postbox evidence verify recomputes the chain and reports any modified, removed, reordered, forged or truncated line.
The format is documented in docs/evidence-format.md and shared with companion tools, so one verifier works for all of them.
Known limits (v0.2)
- An identical comment text on the same issue is posted only once (replay protection); add context to make a new comment distinct.
- Duplicate-title checks and reconciliation scan up to 1,000 items. GitHub's issue lists can lag a few seconds behind writes: an agent's own duplicates are caught locally, but two different agents proposing the same title within seconds may both succeed.
- Adding a
to:<agent>label creates that label in the repository if it does not exist yet. - Reviews and comments are not edited or deleted by agent-postbox – by design.
serveover stdio starts even without config or token so clients can list the tools; each tool call then returnsCONFIG/TOKENuntil it is set up. The HTTP transport refuses to start instead.- When the MCP server and the CLI share a receipt file, a lock conflict can pause the server for up to 5 seconds, and concurrent processes may exceed a daily limit by a few writes.
- The HTTP transport is stateless JSON (no SSE, no sessions, no server-initiated messages) and has no TLS; put it behind your own reverse proxy when it leaves the machine. Browsers are kept out by design (JSON content type required,
Hostmust name the server,Originrefused unless listed inAGENT_POSTBOX_HTTP_ORIGINS). - The evidence log proves what was written to it, not what bypassed it; see
docs/evidence-format.md"What it does not prove". Truncation at the end is detected through the signed.headsidecar – if the sidecar is deleted,evidence verifywarns instead of passing cleanly.
Security model
agent-postbox is designed to reduce the risk of common multi-agent failures. It is not a sandbox.
- The token is the real boundary. agent-postbox cannot stop someone who has the token from calling GitHub directly. Use one narrowly scoped token per agent and protect
mainwith branch protection and required reviews, so merging stays human. - Four-eyes depends on separate identities. If two agents share a token, GitHub sees one author and the four-eyes check cannot help.
- The secret filter is best effort. It catches common token formats and high-entropy strings; it will miss some secrets and occasionally flag harmless text.
- Untrusted content stays untrusted. agent-postbox labels everything it reads as data. Whether your agent respects that depends on your agent.
- Receipts are a local hint, GitHub is the truth. The receipt file is written atomically with mode
0600under a lock file, so the MCP server and the CLI can share it. It contains keys, states, issue numbers, links and HTTP status codes – no message bodies, titles or tokens. - Markers are invisible, not secret. Each write carries an HTML comment marker. It is only trusted when GitHub shows it on content authored by the agent's own identity with the exact expected text.
- Limits are local. Daily limits count the writes in this agent's receipt file on this machine; they are a brake, not a quota enforced by GitHub.
- No telemetry, no hosted service. agent-postbox talks only to
api.github.comwith the token you provide.
Please report vulnerabilities as described in SECURITY.md.
See the threat model for actors, trust boundaries, controls and remaining risks.
AI-assisted development
This project has been developed with the assistance of generative AI tools. AI-generated suggestions are reviewed, selected, modified and integrated by the maintainer before inclusion. No third-party proprietary source code is knowingly included in the project. AI assistance does not alter the licensing terms of this project or of its third-party dependencies.
Disclaimer
This project is free and open-source software provided under the Apache License 2.0.
The software is provided on an "AS IS" basis. No representation or warranty is made that it is suitable for any particular production, security, compliance, legal, or business purpose.
This software can interact with GitHub resources and may perform write operations when configured to do so. Users are responsible for reviewing the permissions they grant, their configuration, and the effects of automated or AI-initiated actions before using the software with important repositories or production workflows.
Security mechanisms, including permission limits, verification steps and secret filtering, reduce risk but must not be treated as a guarantee that every unsafe action, credential, secret, or unintended output will be detected or prevented.
Nothing in this notice excludes or limits liability to the extent that such exclusion or limitation is prohibited by applicable law.
License
Apache License 2.0. Copyright 2026 Marco Gernand. Contributions are welcome under the Developer Certificate of Origin.
來源:README.md,提交 167fb80
工具
0版本歷史
1- v0.2.1最新Oct 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分