smoke-harness
Skill204 starsChanged 2 months agoMITView on GitHub
Smoke-test caliper's harness against the real agent CLIs. Use after changing a backend harness, MCP wiring, or anything an attempt runs through (runner, attempt, workdir, judge), and before opening that PR.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- evaluate-skillSkill
- grill-skillSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Read every failure: before touching code. Each line names the task, the outcome, and the judge's or assert's evidence.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Smoke the harness
Unit tests fake the agent CLIs. The smoke evals in tests/*-smoke.eval.yaml run the real ones, so they are the evidence that a harness change works end to end. They call paid models, which is why CI skips them and why you run only the backends your change reaches.
Steps
Plan. From the repo root, with the dev environment active:
python .agents/skills/smoke-harness/scripts/smoke.py --dry-runWith no arguments the script picks the backends this branch touched (a backend's own harness file reaches that backend; shared
caliper/code reaches all of them) and skips any whose CLI caliper cannot find (its*_CLI_PATHoverride, install locations, thenPATH). Name backends to override:smoke.py codex pi, or pin a model withclaude-code:claude-haiku-4-5-20251001. Done when the plan lists a run for every backend your change reaches. A backend skipped for a missing CLI is unverified: say so in your report and in the PR, never as a pass.- Run the same command without
--dry-run. Each spec runs once (--k 1) and the script checks its saved results JSON: one attempt per task, every attemptpass, a transcript saved, no hook failures, the requested backend recorded, user customizations off. Done when the script exits. Exit 0 means every check passed; 1 lists each failing check under its spec; 2 means nothing could run. Read every failure before touching code. Each line names the task, the outcome, and the judge's or assert's evidence; the full results JSON sits in the directory printed on the last line. Sort each failure into one bucket:
- Your change: fix it and rerun from step 2.
- Flake: an
infra_error/timeout, or a judge misreading a correct transcript. Rerun that backend once; a second failure is not a flake. - Environment: CLI not logged in, the network down for
mcp-remote-smoke, port 8765 taken formcp-header-smoke. Report it as unverified.
Done when every failure sits in a bucket and every your change failure passes on rerun.
- Report the plan, the result line per spec, and anything unverified. That report is the PR's evidence for a harness change.
Adding a smoke spec
A new tests/*-smoke.eval.yaml needs an entry in SPECS in scripts/smoke.py naming the backends it runs under, matching the "Run it" comment at the top of the spec.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

