The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
feat(kicad): bump to autonomous-circuit 9fcfc9c — Sol 6.1, Case phase, team (#2155)
31803smith311d89b152e6
diff --git a/store/agents/kicad/README.md b/store/agents/kicad/README.mdindex 0a385cd18..2fb1eca47 100644--- a/store/agents/kicad/README.md+++ b/store/agents/kicad/README.md@@ -4,7 +4,7 @@pipeline of [Autonomous Circuit](https://github.com/autonomous-ai/autonomous-circuit): describe a boardin the chat pane and get a real KiCad project — a wired schematic, copper KiCad's own ERC/DRC haschecked, a prototype packet a fab can quote — with the project's own live board view in the pane beside-the agent. Runs on Codex (GPT-6 Astra) with the upstream tile's exact arguments: approvals off, sandbox+the agent. Runs on Codex (GPT-6.1 Sol) with the upstream tile's exact arguments: approvals off, sandboxoff (kicad-cli, pcbnew and Freerouting do not survive it), and Circuit's Stop hook that finishes a buildand asks once for the firmware. What the person flashes, they flash from the pane's Flash button.@@ -36,7 +36,13 @@ a 1.4 GB download, 1.3 GB on disk; the manifest points the pipeline at it with `firmware toolchain** (Arm GNU 14.2, pico-sdk 2.2.0, picotool, plus cmake and ninja from PyPI wheels —~1.1 GB more; the manifest exports `PICO_SDK_PATH`, `PICO_TOOLCHAIN_PATH`, `CMAKE_PREFIX_PATH`,`KICAD_HARNESS_CMAKE`, `KICAD_HARNESS_NINJA`, because since 2026-10-01 the Firmware phase is done only-when the recipe's binary exists), and the built viewer. git is optional: without it the pinned commit arrives as GitHub's tarball. On Linux there is+when the recipe's binary exists), **CadQuery 2.7** for the Case phase (in its own venv under `upstream/toolchain/case`, ~870 MB, built+with the uv `runtimes.sh` fetches; the manifest exports `KICAD_CASE_PYTHON`), and the built viewer —+about 4 GB in all. What it does not carry is `arduino-cli` with the esp32 core: an ESP32 board's+firmware builds only on a machine that has them (`brew install arduino-cli`, then+`arduino-cli core install esp32:esp32`), and the doctor warns when they are missing. New Codex+projects run the contract-first team, whose jobs are `codex exec --output-schema`; the doctor+reports a Codex too old for that as a miss. git is optional: without it the pinned commit arrives as GitHub's tarball. On Linux there isno relocatable KiCad artifact, so KiCad stays a system install (apt/dnf/flatpak) named by`KICADPY_CLI` / `KICADPY_PYTHON`, and the doctor says so.diff --git a/store/agents/kicad/VERSIONS b/store/agents/kicad/VERSIONSindex bcc9b172f..e7023ec1f 100644--- a/store/agents/kicad/VERSIONS+++ b/store/agents/kicad/VERSIONS@@ -2,11 +2,13 @@# Since 2026-09-29 the v2 pipeline lives on `main` (PR #34 merged it; #39/#41 added the Firmware# tab, the firmware step and the Flash button; #42/#43/#44 on 2026-10-01/02 made the Firmware phase# wait for a built binary, vendored the RP2040 toolchain with cmake + ninja, added the read / checker-# / power-entry rules, the module cards and the Export Gerber button). A newer KiCad tile is a bump-# of UPSTREAM_COMMIT to a later commit on main. The fetch is by commit, so a branch commit would work too.+# / power-entry rules, the module cards and the Export Gerber button). #45–#62 to 2026-10-29 moved the+# tile to GPT-6.1 Sol, added the Case phase (CadQuery, the Case tab, Bambu plates and Open in Bambu),+# the contract-first team for new Codex projects, the print team and the plate and publish rules.+# A newer KiCad tile is a bump of UPSTREAM_COMMIT to a later commit on main. The fetch is by commit, so a branch commit would work too.UPSTREAM_NAME="autonomous-circuit"UPSTREAM_REPO="https://github.com/autonomous-ai/autonomous-circuit.git"-UPSTREAM_COMMIT="0e0ea33030658b10e724e19a6ef1d5b732f03284"+UPSTREAM_COMMIT="9fcfc9c4e80cd5067bf372ef15df5480ba4237a8"# Everything but its product library and examples (118 MB a board build never reads).UPSTREAM_SPARSE_MODE="no-cone"UPSTREAM_SPARSE="/* !/products/ !/examples/"diff --git a/store/agents/kicad/harness.json b/store/agents/kicad/harness.jsonindex 25ca0b1f8..f4f876bac 100644--- a/store/agents/kicad/harness.json+++ b/store/agents/kicad/harness.json@@ -21,6 +21,7 @@],"env": {"KICAD_HARNESS_PYTHON": "${dsh}/upstream/harness/kicad/toolchain/python",+ "KICAD_CASE_PYTHON": "${dsh}/upstream/harness/kicad/toolchain/case-python","CIRCUIT_PYTHON": "${dsh}/toolchain/python","KICAD_HARNESS_ROOT": "${dsh}/upstream","KICAD_HARNESS_BLOCKS": "${dsh}/upstream/packages/golden-blocks/blocks",@@ -41,7 +42,7 @@},"args": ["-m",- "gpt-6-astra",+ "gpt-6.1-sol","-c","model_reasoning_effort=high","-c",diff --git a/store/agents/kicad/toolchain/doctor.sh b/store/agents/kicad/toolchain/doctor.shindex 0f7c2a5fe..3b50d10d7 100755--- a/store/agents/kicad/toolchain/doctor.sh+++ b/store/agents/kicad/toolchain/doctor.sh@@ -17,6 +17,12 @@ harness_node 22.12 >/dev/null || truevenv=0.venv/bin/python -c 'import sys; sys.exit(0 if sys.version_info >= (3, 10) else 1)' >/dev/null 2>&1 \|| { echo "miss .venv (the pipeline's Python >= 3.10) — run toolchain/setup.sh"; venv=1; }+# New Codex projects run the contract-first team, whose jobs are `codex exec --output-schema`; an older+# Codex starts the tile and then fails the first team job.+codex=0+if command -v codex >/dev/null 2>&1 && ! codex exec --help 2>/dev/null | grep -q -- '--output-schema'; then+ echo "miss codex $(codex --version 2>/dev/null | head -1) has no \`exec --output-schema\` — the KiCad team cannot run; update Codex"; codex=1+fikicad=0have="$(harness_kicad_version || true)"if [ "$have" = "$KICAD_VERSION" ]; then@@ -29,4 +35,4 @@ CIRCUIT_TOOLCHAIN="${CIRCUIT_TOOLCHAIN:-$PWD/upstream/toolchain}" CIRCUIT_PYTHONKICADPY_CLI="${KICADPY_CLI:-$KICAD_CLI}" KICADPY_PYTHON="${KICADPY_PYTHON:-$KICAD_PYTHON}" CIRCUIT_KICAD_CLI="${CIRCUIT_KICAD_CLI:-$KICAD_CLI}" \upstream/harness/kicad/toolchain/doctor.shcode=$?-exit $((code ? code : venv ? venv : kicad))+exit $((code ? code : venv ? venv : kicad ? kicad : codex))diff --git a/store/agents/kicad/toolchain/setup.sh b/store/agents/kicad/toolchain/setup.shindex 628daa8a7..78ebedbf1 100755--- a/store/agents/kicad/toolchain/setup.sh+++ b/store/agents/kicad/toolchain/setup.sh@@ -10,12 +10,16 @@ cd "$(dirname "$0")/..". toolchain/kicad.shharness_node 22.12 || exit 1harness_venv .venv 3.12 3.10 || exit 1+# uv on PATH for the package's CadQuery step (scripts/toolchain/install-cadquery.sh), which takes uv or+# a python3.12 the machine has; a new Mac has neither, and without it the Case phase never runs.+harness_uv || exit 1harness_kicad || exit 1toolchain/fetch-upstream.sh[ -x upstream/harness/kicad/toolchain/setup.sh ] || { echo "miss upstream/harness/kicad/toolchain/setup.sh"; exit 1; }# The package's setup also vendors the RP2040 firmware toolchain (Arm GNU + pico-sdk + picotool,# ~1.1 GB) and cmake + ninja as PyPI wheels — on this wrapper's venv Python, so a blank Mac needs-# neither (the Firmware phase is done only when the binary is built).+# neither (the Firmware phase is done only when the binary is built) — and CadQuery 2.7 for the+# Case phase (~870 MB, under upstream/toolchain/case; $KICAD_CASE_PYTHON runs on it).HARNESS_DSH_DIR="$PWD/upstream/harness/kicad" CIRCUIT_PYTHON="$PWD/toolchain/python" \PICO_TOOLS_PYTHON="$PWD/.venv/bin/python" \KICADPY_CLI="$KICAD_CLI" KICADPY_PYTHON="$KICAD_PYTHON" CIRCUIT_KICAD_CLI="$KICAD_CLI" \diff --git a/store/agents/kicad/toolchain/test_toolchain.py b/store/agents/kicad/toolchain/test_toolchain.pyindex 0078fc1fe..1f2c5fff3 100644--- a/store/agents/kicad/toolchain/test_toolchain.py+++ b/store/agents/kicad/toolchain/test_toolchain.py@@ -51,14 +51,14 @@ class ManifestTest(unittest.TestCase):self.assertTrue(rel.startswith(UPSTREAM_PKG + "/"), rel)self.assertEqual(m["workspace"]["marker"], "project.json")- def test_the_tile_runs_astra_with_the_upstream_hooks(self):+ def test_the_tile_runs_sol_with_the_upstream_hooks(self):# The same engine and arguments as upstream harness/kicad/harness.json: a person who installs# the tile from the store gets what the team runs, including the Stop hook that finishes a# build and asks once for the firmware. Claude would run without any hook at all.m = manifest()self.assertEqual(m["engine"], "codex")args = m["agent"]["args"]- self.assertEqual(args[:2], ["-m", "gpt-6-astra"])+ self.assertEqual(args[:2], ["-m", "gpt-6.1-sol"])self.assertIn("approval_policy=never", args)self.assertIn("sandbox_mode=danger-full-access", args)for event in ("Stop", "Interrupt"):@@ -84,6 +84,10 @@ class ManifestTest(unittest.TestCase):self.assertEqual(env["KICAD_HARNESS_NINJA"], "${dsh}/upstream/toolchain/pico/tools/bin/ninja")# setup hands the package its venv Python for the cmake/ninja wheelsself.assertIn('PICO_TOOLS_PYTHON="$PWD/.venv/bin/python"', (PACKAGE / "toolchain" / "setup.sh").read_text())+ # The Case phase's CadQuery Python, the package's own entry point into upstream/toolchain/case.+ self.assertEqual(env["KICAD_CASE_PYTHON"], "${dsh}/" + UPSTREAM_PKG + "/toolchain/case-python")+ # setup puts uv on PATH so the package's install-cadquery.sh can build that venv on a new Mac+ self.assertIn("harness_uv || exit 1", (PACKAGE / "toolchain" / "setup.sh").read_text())expected = ".agents/skills" if manifest()["engine"] == "codex" else ".claude/skills"self.assertTrue(env["CIRCUIT_SKILLS_DIR"].endswith(expected))@@ -137,6 +141,15 @@ class HandoffTest(unittest.TestCase):shutil.copy(TOOLCHAIN / "kicad.sh", self.install / "toolchain" / "kicad.sh")self.fake_kicad(versions_value("KICAD_VERSION"))self.env = {k: v for k, v in os.environ.items() if not k.startswith(("HARNESS_", "CIRCUIT_"))}+ # A Codex on PATH that has `exec --output-schema`, the team's job runner.+ self.bin = self.tmp / "bin"+ self.bin.mkdir()+ self.fake_codex("--output-schema <FILE>")+ self.env["PATH"] = f"{self.bin}:{self.env.get('PATH', '')}"++ def fake_codex(self, exec_help):+ (self.bin / "codex").write_text(f'#!/bin/sh\n[ "$1" = --version ] && echo "codex-cli 0.0.0"\necho "{exec_help}"\n')+ (self.bin / "codex").chmod(0o755)def tearDown(self):shutil.rmtree(self.tmp, ignore_errors=True)@@ -186,6 +199,13 @@ class HandoffTest(unittest.TestCase):out = self.run_script("doctor.sh")self.assertIn("warn autonomous-circuit @ 000000000000, VERSIONS pins", out.stdout)+ def test_doctor_with_a_codex_too_old_for_the_team_is_a_miss(self):+ self.fake_codex("--json")+ out = self.run_script("doctor.sh")+ self.assertEqual(out.returncode, 1)+ self.assertIn("has no `exec --output-schema`", out.stdout)+ self.assertIn("doctor.sh dsh=", out.stdout)+def test_doctor_relays_the_packages_failure(self):out = self.run_script("doctor.sh", STUB_EXIT="1")self.assertEqual(out.returncode, 1)