ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
Work under Agent Cockpit, the evidence-chain whiteboard and MCP server for research repos. Use when a repo has a `.cockpit/` folder, an "Agent Cockpit" section in AGENTS.md, or `cockpit_*` MCP tools; or when the user asks to set up Agent Cockpit, track experiments, register results as claims, or check which results still hold.
Agent Cockpit records every experiment run, every claim and the code each run depended on, and keeps checking the chain. If anything a run used changes later, the run goes stale and the claims built on it need recheck. A human follows along on a local board. Your job is to keep that record honest.
The cockpit's own messages (rejections, overview, board text) are in Traditional Chinese. Read them carefully; they tell you exactly what to fix.
Check whether the cockpit_overview tool is available and the repo has a .cockpit/ folder. If not, and the user wants Agent Cockpit:
npx -y @tingyen/agent-cockpit init # run in the repo root; it must be a git repo
init writes the MCP config for Claude Code, Cursor, VS Code and Gemini CLI, adds the rules to AGENTS.md, a Claude Code Stop hook and a git pre-commit hook. It prints the command for Codex. Tell the user to restart the agent session so the cockpit MCP server loads, and to open the board:
npx -y @tingyen/agent-cockpit serve # http://127.0.0.1:4180
cockpit_overview first. It lists decisions waiting for a human, decisions already answered, claims that need recheck and why, unreported changes, and unmet stage requirements.cockpit_decisions and act on the answer. Before acting, check the overview and the board: if the work the decision asked for was already done (for example the re-run exists after the answer), do not do it again.cockpit_task (state, step, summary, why, next). Update the same card every round; pass its id.cockpit_run (or cockpit run -- <command> in a terminal). A number that did not come from a recorded run cannot be registered as a claim.cockpit_claim({ text, hypothesis, evidence: [{ run: "R3", path: "results/metrics.json", key: "combo.acc" }] })
path must be a file that run wrote; key names the field. The cockpit reads the actual value.id.verified or refuted with cockpit_hypothesis only after a valid claim supports it.Call cockpit_report({ files, summary, why, next }) after editing files (an empty files array if you changed nothing). Unreported changes turn red on the board, block git commit, and stop Claude Code from ending its turn.
cockpit_decide for choices a human should make: give options and a recommendation, and set it blocking when you must wait. Mark your task blocked, stop, and tell the user to answer on the board.cockpit_premise for an assumption you are relying on but have not verified.canvas_structure rebuilds the code graph. With { file, funcs } it returns every function affected by changing those functions.cockpit_review reviews the changed lines (open-code-review if installed, otherwise built-in rules). Fix high-severity findings, report, re-run and re-claim.canvas_diagram accepts an architecture diagram in md² format; canvas_createNode and canvas_link add notes and papers. Do not use them to create claims, runs or tasks.The reason says what to fix. Common ones:
| Rejection | Fix |
|---|---|
| The evidence file was not written by that run | Cite the run that wrote it, or re-run |
| The run is stale | A dependency changed after the run. Re-run and cite the new run |
A field is too short (summary, why, next) | Write a real sentence: what you did and why |
| A blocking decision is pending | Wait for the human; read it with cockpit_decisions |
| A stage cannot close | Call the tools the stage requires first |
| The path is outside the repo | Use a path inside the repo |
cockpit_run..cockpit/.MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days