Agent Cockpit
v0.1.0Evidence-chain whiteboard for AI research agents: every claim traces back to its run and code.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cockpit_overview
開工先呼叫:要你處理的事、待重驗的結論與原因、裁決結果、未回報的變更、階段條件。
cockpit_plan
建立研究路徑(白板上的階段卡)。階段是資料不是提示詞:needs 列出這一關非叫不可的工具,human 表示要人看過才能結束。
| Parameter | Type | Description |
|---|---|---|
stages * | array |
cockpit_stage
更新階段狀態(todo / active / done)。done 會檢查這一關的 needs 是否都被呼叫過。
| Parameter | Type | Description |
|---|---|---|
id * | string | |
status * | string |
cockpit_task
建立或更新你的任務卡(一件工作一張卡,每一輪更新同一張)。
| Parameter | Type | Description |
|---|---|---|
next * | string | 下一步 |
state * | string | |
summary * | string | 這一輪做了什麼 |
title * | string | |
why * | string | 為什麼這樣做 |
id | string | 更新既有任務時帶上;新任務不用給 |
progress | number | |
stage | string | |
step | string | 例如「第 2/4 步」 |
where | string | 分支或 worktree |
cockpit_run
執行實驗並記錄(命令、commit、用到的程式碼雜湊、寫出的檔案)。結論只能引用這裡記到的輸出。
| Parameter | Type | Description |
|---|---|---|
command * | string | 在專案根目錄執行的命令,例如 python3 eval/run.py --arm combo |
cockpit_claim
登記一個結論。evidence 必須是 cockpit_run 寫出的檔案;JSON 檔可用 key 指定欄位(會讀出實際數值)。
| Parameter | Type | Description |
|---|---|---|
evidence * | array | |
hypothesis * | string | 這個結論支撐哪個假設,例如 H-M01 |
text * | string | |
id | string |
cockpit_hypothesis
建立或更新假設(方案空間)。改成 verified/refuted 前,必須先有證據鏈完整的結論撐著。
| Parameter | Type | Description |
|---|---|---|
id * | string | |
label * | string | |
status * | string | |
group | string | |
one | string | 一句話說明 |
value | string |
cockpit_premise
登記一個還沒驗證、卻被拿來當地基的前提。grounds 是它所依據的檔案,檔案一改風險自動升高。
| Parameter | Type | Description |
|---|---|---|
risk * | string | |
text * | string | |
used_by * | string | 哪些結論或推理用到它 |
grounds | array |
cockpit_decide
請人裁決。blocking=true 時請停下來,告訴使用者到駕駛艙裁決,回來再呼叫 cockpit_decisions。
| Parameter | Type | Description |
|---|---|---|
options * | array | |
question * | string | |
reason * | string | |
recommendation * | integer | 建議選項的索引(從 0 開始) |
blocking | boolean | |
grounds | array | 依據的結論 id |
task | string |
cockpit_decisions
取回人類在駕駛艙的裁決與留言(含 cockpit 自動送出的)。
cockpit_report
回報這一輪改了哪些檔案(沒改就給空陣列)。沒回報的變更會標紅並擋下 commit。
| Parameter | Type | Description |
|---|---|---|
files * | array | |
summary * | string | |
why * | string | |
next | string | |
task | string |
cockpit_review
程式碼審查。不給 findings:裝了 open-code-review 就跑 ocr review,沒裝就用內建的規則審查(預設只看改到的行,all=true 看全部);給 findings:Delegation mode,由你審查後回報。審查結果會沿證據鏈標出受威脅的結論。
| Parameter | Type | Description |
|---|---|---|
all | boolean | |
findings | array |
canvas_list
列出畫布(這個專案的研究白板)與各種卡片的數量。
canvas_read
讀一張卡片的內容(給 id),或整張白板的摘要(不給 id)。
| Parameter | Type | Description |
|---|---|---|
id | string |
canvas_search
在白板上搜尋卡片(標題、內文)。
| Parameter | Type | Description |
|---|---|---|
query * | string |
canvas_createNode
建一般卡片(筆記、論文、網頁、文件、資料表)。結論、任務、執行等研究卡片請用 cockpit_* 工具。
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
title * | string | |
body | string | |
ref | string |
canvas_link
連兩張卡片。kind:branch / reference / cites / similarity / flow / owns / uses / link。
| Parameter | Type | Description |
|---|---|---|
from * | string | |
kind * | string | |
to * | string | |
label | string |
canvas_diagram
用 md² 架構圖格式(meta / nodes / groups / edges)描述專案結構;paths 把圖的節點對應到真實路徑。
| Parameter | Type | Description |
|---|---|---|
diagram * | object | |
paths | object |
canvas_structure
重建程式碼圖:裝了 graphify 就跑 graphify update .,沒裝就用內建的輕量版。回傳核心節點、社群、意外連結;給 file(與 funcs)就回傳改它會影響到哪些函式。
| Parameter | Type | Description |
|---|---|---|
file | string | |
funcs | array |