Agent Cockpit

v0.1.0
io.github.chutingyean/agent-cockpit Checked 17 hours ago Published 25 days ago

Evidence-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 表示要人看過才能結束。

ParameterTypeDescription
stages *array

cockpit_stage

更新階段狀態(todo / active / done)。done 會檢查這一關的 needs 是否都被呼叫過。

ParameterTypeDescription
id *string
status *string

cockpit_task

建立或更新你的任務卡(一件工作一張卡,每一輪更新同一張)。

ParameterTypeDescription
next *string下一步
state *string
summary *string這一輪做了什麼
title *string
why *string為什麼這樣做
idstring更新既有任務時帶上;新任務不用給
progressnumber
stagestring
stepstring例如「第 2/4 步」
wherestring分支或 worktree

cockpit_run

執行實驗並記錄(命令、commit、用到的程式碼雜湊、寫出的檔案)。結論只能引用這裡記到的輸出。

ParameterTypeDescription
command *string在專案根目錄執行的命令,例如 python3 eval/run.py --arm combo

cockpit_claim

登記一個結論。evidence 必須是 cockpit_run 寫出的檔案;JSON 檔可用 key 指定欄位(會讀出實際數值)。

ParameterTypeDescription
evidence *array
hypothesis *string這個結論支撐哪個假設,例如 H-M01
text *string
idstring

cockpit_hypothesis

建立或更新假設(方案空間)。改成 verified/refuted 前,必須先有證據鏈完整的結論撐著。

ParameterTypeDescription
id *string
label *string
status *string
groupstring
onestring一句話說明
valuestring

cockpit_premise

登記一個還沒驗證、卻被拿來當地基的前提。grounds 是它所依據的檔案,檔案一改風險自動升高。

ParameterTypeDescription
risk *string
text *string
used_by *string哪些結論或推理用到它
groundsarray

cockpit_decide

請人裁決。blocking=true 時請停下來,告訴使用者到駕駛艙裁決,回來再呼叫 cockpit_decisions。

ParameterTypeDescription
options *array
question *string
reason *string
recommendation *integer建議選項的索引(從 0 開始)
blockingboolean
groundsarray依據的結論 id
taskstring

cockpit_decisions

取回人類在駕駛艙的裁決與留言(含 cockpit 自動送出的)。

cockpit_report

回報這一輪改了哪些檔案(沒改就給空陣列)。沒回報的變更會標紅並擋下 commit。

ParameterTypeDescription
files *array
summary *string
why *string
nextstring
taskstring

cockpit_review

程式碼審查。不給 findings:裝了 open-code-review 就跑 ocr review,沒裝就用內建的規則審查(預設只看改到的行,all=true 看全部);給 findings:Delegation mode,由你審查後回報。審查結果會沿證據鏈標出受威脅的結論。

ParameterTypeDescription
allboolean
findingsarray

canvas_list

列出畫布(這個專案的研究白板)與各種卡片的數量。

canvas_read

讀一張卡片的內容(給 id),或整張白板的摘要(不給 id)。

ParameterTypeDescription
idstring

canvas_createNode

建一般卡片(筆記、論文、網頁、文件、資料表)。結論、任務、執行等研究卡片請用 cockpit_* 工具。

ParameterTypeDescription
kind *string
title *string
bodystring
refstring

canvas_diagram

用 md² 架構圖格式(meta / nodes / groups / edges)描述專案結構;paths 把圖的節點對應到真實路徑。

ParameterTypeDescription
diagram *object
pathsobject

canvas_structure

重建程式碼圖:裝了 graphify 就跑 graphify update .,沒裝就用內建的輕量版。回傳核心節點、社群、意外連結;給 file(與 funcs)就回傳改它會影響到哪些函式。

ParameterTypeDescription
filestring
funcsarray