
Agent Cockpit
io.github.chutingyean由 GitHub 帳號 chutingyean 發布v0.1.0更新於 Nov 7, 2026
Evidence-chain whiteboard for AI research agents: every claim traces back to its run and code.
概覽
本機白板兼 MCP 伺服器,記錄 AI 研究代理的計畫、實驗執行、結論與程式碼,並標出證據已失效的結論。
- 可以做什麼
- 記錄研究計畫、階段、任務卡、假設與前提
- 執行實驗並登錄結論,證據須來自已記錄執行所寫入的檔案與欄位
- 檢查證據鏈:待決事項、需複核的結論與未回報的變更總覽
- 向人類提出決策請求並讀取回覆
- 回報變更的檔案並執行程式碼審查,內建程式碼圖與影響分析
- 讀取與編輯白板畫布:列出、搜尋、建立節點、連結、繪製架構圖
- 適用情境
- 適合多個 AI 代理在同一個研究儲存庫協作、需要知道程式碼變更後哪些結果仍然成立,並希望把未回報的變更、待答問題與失效結論集中顯示在一塊本機白板上的情境。
- 執行需求
- 以 npm 套件 @tingyen/agent-cockpit 透過 stdio 在本機執行。需要 Node.js 22.13 以上(供 node:sqlite 使用)與 git;python3 僅示範專案需要。目標目錄必須是 git 儲存庫。未宣告帳號、API 金鑰或環境變數。白板僅綁定 127.0.0.1。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agent Cockpit,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[Agent Cockpit: every research claim, traceable to the code that produced it]
[tests] [license: AGPL-3.0-or-later] [node >= 22.13] [MCP: any agent]
English · 繁體中文
Agent Cockpit is a local whiteboard plus an MCP server for AI agents that do research. Any agent that speaks MCP (Claude Code, Codex, Cursor, Gemini CLI, …) draws its work onto the same board: the plan, the tasks, every experiment run, every claim, and the code each run depended on. A deterministic engine keeps checking the whole evidence chain. When any link changes, the cards that depend on it turn red. You can tell which results still hold, and why, without reading the code.
Replay of a real session: Claude Code and Codex complete a small study from an empty repo. An unreported edit breaks one claim, and the cockpit raises a decision and writes a brief. A human picks "restore", and an agent carries it out.
Why
After a few days of research with AI agents, the same things keep going wrong:
- Claims lose their footing silently. An agent edits the grader, the data pipeline or a statistics helper, and results that were "verified" no longer hold. Nobody notices.
- Changes go unreported. Files change and no agent says so, or an agent says it changed something it didn't.
- Decisions pile up, assumptions harden, loops spin. Questions meant for a human wait unanswered, untested premises become foundations, and an agent keeps tweaking hyperparameters "one more time".
- The code grows faster than you can read it.
Agent Cockpit turns these into rules a machine can check, and shows the result on one board.
Features
- Evidence chains, down to a JSON field. A claim must cite a value that a recorded run actually wrote. Each run records the hash of its script, of every file the script depends on, and of each function it reaches. If any of those changes, the run goes stale and every claim built on it is flagged for recheck. Revert the change and the hashes match again, so the claims recover.
- Works with any MCP agent. Agent identity comes from the MCP handshake.
cockpit initwrites the config for Claude Code, Cursor, VS Code and Gemini CLI, and prints the command for Codex. - One write gate. Every write from MCP, the CLI or the board passes through the same validator. Non-compliant writes are rejected with a reason the agent can act on. Rejections are logged too.
- Unreported changes get caught. Real file changes are detected whether or not an agent reports them. Unreported changes block
git commit, and Claude Code cannot end its turn until it reports them. - Built-in code graph and code review, no extra installs. A lightweight graphify-style call graph supplies dependency closures, communities, core nodes and impact analysis. A rule-based reviewer looks at the changed lines every time a file changes. Install the real graphify or open-code-review and they are used automatically.
- Human decisions in the loop. Agents ask through
cockpit_decideand wait. When a change breaks claims, the cockpit raises a decision itself and writes a one-page evidence brief, laid out by answer-me-with-html. - Replay. Everything is an append-only event, so you can scrub or play the board back to any moment. A brief stays available even after the problem is fixed.
- Local and deterministic. The board binds to 127.0.0.1. Every check is a plain rule, with no LLM calls and zero tokens.
Quick start
Requires Node.js 22.13+ (for the built-in node:sqlite), git, and python3 for the demo project.
Then, in a second terminal, break something and watch the board:
[The board after the grader was changed: dependent claims turn red, the cockpit raises a decision]
Use it on your own research repo
No clone needed:
Prefer a permanent cockpit command? npm install -g @tingyen/agent-cockpit.
init only writes inside your repo. Open the repo in your agent and it reads AGENTS.md and the MCP config. The tutorial walks through every agent step by step.
Claude Code plugin. Adds a skill that teaches Claude when and how to use Agent Cockpit, including how to set it up:
The same skill lives in skills/agent-cockpit/SKILL.md for other agents that read SKILL.md files. The MCP server is also listed in the MCP Registry as io.github.chutingyean/agent-cockpit.
How it works
- Content hashes, not timestamps. Staleness is decided by comparing hashes, so reverting a file restores validity exactly.
- Function-level precision. For Python dependencies, a change to a function the run never reaches does not make the run stale. Changes to reachable functions, imports or module-level code always do.
- Event sourcing.
.cockpit/events.jsonlis the single source of truth, and it doubles as the agents' work log. Commit it. The board is a pure projection (reduce→derive), which makes replay possible.
MCP tools
Canvas tools: canvas_list, canvas_read, canvas_search, canvas_createNode, canvas_link, canvas_diagram (architecture diagrams in md²'s format) and canvas_structure (code graph and impact analysis).
CLI
npm install -g @tingyen/agent-cockpit gives you a global cockpit command. Otherwise use npx -y @tingyen/agent-cockpit <command>, or node bin/cockpit.mjs from a clone.
Every command accepts --repo <path>; the default is the current directory.
Project layout
Documentation
- Tutorial: from the demo to your own project, every agent, replay, and a recorded real session
- Recorded session: the events, the code the agents wrote, and their output
Acknowledgements
Agent Cockpit fuses ideas from six projects into one evidence graph: research-cockpit (claims, hypotheses, premises, decisions), graphify (code graph), open-code-review (code review), Understand-Anything (summaries, layers, tours, personas), md² (architecture diagram format) and answer-me-with-html (one-page briefs). See THIRD_PARTY_NOTICES.md for what is bundled and under which license.
License
Copyright (C) 2026 chutingyean
Agent Cockpit is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. If you modify it and let others use it over a network, you must offer them the source code of your version. Third-party components keep their own licenses; see THIRD_PARTY_NOTICES.md.
來源:README.md,提交 a968c6b
工具
0版本歷史
1- v0.1.0最新Nov 7, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分