Skip to content
FunCoding

agent-cockpit

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.

Star
525
License
AGPL-3.0
Last commit
Nov 6, 2026

skills/agent-cockpit/SKILL.md

View on GitHub

Agent Cockpit

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.

1. Set up (only if the repo is not set up yet)

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

2. Start of every session

  1. Call 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.
  2. For answered decisions, call 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.
  3. Create or update your task card with cockpit_task (state, step, summary, why, next). Update the same card every round; pass its id.

3. Run experiments only through the cockpit

  • Use 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.
  • Write results to JSON files with stable top-level keys, so a claim can cite one field and other runs can write other fields to the same file.
  • Do not hand-edit result files. The cockpit notices and flags the claim.

4. Register claims

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.
  • If the run is stale (something it used has changed since), the claim is rejected. Re-run, then claim again with the new run. To update an existing claim, pass its id.
  • Set a hypothesis to verified or refuted with cockpit_hypothesis only after a valid claim supports it.

5. Report every file you change

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.

6. Ask the human

  • Use 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.
  • Use cockpit_premise for an assumption you are relying on but have not verified.

7. Code graph and review

  • 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.

When a call is rejected

The reason says what to fix. Common ones:

RejectionFix
The evidence file was not written by that runCite the run that wrote it, or re-run
The run is staleA 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 pendingWait for the human; read it with cockpit_decisions
A stage cannot closeCall the tools the stage requires first
The path is outside the repoUse a path inside the repo

Never

  • Run experiments outside cockpit_run.
  • Edit anything under .cockpit/.
  • Claim a number you did not get from a recorded run.
  • Leave a turn with unreported file changes.

Similar Skills

ask-matt

MAmattpocock/skills337k4,978 new stars in the last 7 days

chief-of-staff

MAmattpocock/skills337k4,978 new stars in the last 7 days

setup-matt-pocock-skills

MAmattpocock/skills337k4,978 new stars in the last 7 days

subagent-driven-development

OBobra/superpowers331k4,772 new stars in the last 7 days

autonomous-loops

AFaffaan-m/ECC315k4,381 new stars in the last 7 days

autonomous-agent-harness

AFaffaan-m/ECC315k4,381 new stars in the last 7 days