<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://www.ankusdrive.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.ankusdrive.com/" rel="alternate" type="text/html" /><updated>2026-12-04T05:27:26+00:00</updated><id>https://www.ankusdrive.com/feed.xml</id><title type="html">AnkusDrive</title><subtitle>AnkusDrive is an open-source CLI and MCP server that lets AI agents model parts, make drawings and run FEM and multiphysics simulation in FreeCAD.</subtitle><entry><title type="html">How AnkusDrive is tested</title><link href="https://www.ankusdrive.com/blog/2026/12/04/how-ankusdrive-is-tested/" rel="alternate" type="text/html" title="How AnkusDrive is tested" /><published>2026-12-04T00:00:00+00:00</published><updated>2026-12-04T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/12/04/how-ankusdrive-is-tested</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/12/04/how-ankusdrive-is-tested/"><![CDATA[<p>An agent that drives CAD can fail in ways a unit test never sees, so AnkusDrive is tested in layers, and every layer runs on GitHub-hosted runners in the public repo.</p>

<p><b>Fast checks</b> run on every push and pull request without installing FreeCAD. They catch the codebase's most common slip, a worker command and its MCP tool drifting apart, and give a pull request a signal in about a minute.</p>

<p><b>The full suite</b> then runs on Linux and on Windows for every push to main and every pull request, fork pull requests included. Windows is provisioned the way a user installs it: the portable FreeCAD, then the project's own solver installer. A separate lane installs FreeCAD 1.1 from conda-forge daily to catch upstream build drift.</p>

<p><b>Heavy solves</b>, the live OpenFOAM, Elmer, openEMS, Bempp, YADE, preCICE and SU2 cases, take minutes each, so they run daily and whenever solver code changes. Their cheap analytic-oracle halves still run on every push.</p>

<p><b>Paid evals</b> run every Monday against the Anthropic API. They ask the questions pixel tests can't: when a render goes back to the model, can it say what it is looking at, and does each tool's description make Claude pick it?</p>

<p><b>An agent review</b> comments on every pull request. It's advisory only: it can't approve or merge, and merging stays a maintainer's call.</p>]]></content><author><name></name></author><category term="How it&apos;s tested" /><summary type="html"><![CDATA[An agent that drives CAD can fail in ways a unit test never sees, so AnkusDrive is tested in layers, and every layer runs on GitHub-hosted runners in the public repo.]]></summary></entry><entry><title type="html">When red CI isn’t a code bug</title><link href="https://www.ankusdrive.com/blog/2026/12/03/when-red-ci-isnt-a-code-bug/" rel="alternate" type="text/html" title="When red CI isn’t a code bug" /><published>2026-12-03T00:00:00+00:00</published><updated>2026-12-03T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/12/03/when-red-ci-isnt-a-code-bug</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/12/03/when-red-ci-isnt-a-code-bug/"><![CDATA[<p>The hosted FreeCAD suite went red on main one morning. Before touching any code, Claude Code checked whether the tests had run at all.</p>

<p>They hadn’t. Downloading FreeCAD from conda-forge kept failing on dropped connections, so the job died before a single test ran. The same commit had passed on main on the two previous days, and two pull-request runs built on it had passed too.</p>

<p>A quieter gap turned up on the way. Main had since moved on to a Dependabot bump of a GitHub Action that had never been tested, because merges made by Dependabot’s auto-merge don’t start workflows.</p>

<p>Rather than open a fix for a problem that wasn’t in the code, the session asked one question: run the suite on main now, or wait for the nightly? GC said “Run it now.” It passed on main’s newest commit in about two minutes.</p>

<p>The checklist it leaves behind for red CI: check that tests actually ran, compare against the same commit’s earlier runs, and check whether the newest commit was ever tested. Only then go looking for a code fix.</p>]]></content><author><name></name></author><category term="Build log" /><summary type="html"><![CDATA[The hosted FreeCAD suite went red on main one morning. Before touching any code, Claude Code checked whether the tests had run at all.]]></summary></entry><entry><title type="html">Moving AnkusDrive to mcp 2.x, tested on four versions</title><link href="https://www.ankusdrive.com/blog/2026/11/25/moving-ankusdrive-to-mcp-2-x-tested-on-four-versions/" rel="alternate" type="text/html" title="Moving AnkusDrive to mcp 2.x, tested on four versions" /><published>2026-11-25T00:00:00+00:00</published><updated>2026-11-25T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/11/25/moving-ankusdrive-to-mcp-2-x-tested-on-four-versions</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/11/25/moving-ankusdrive-to-mcp-2-x-tested-on-four-versions/"><![CDATA[<p>Issue #516 asked to move AnkusDrive’s MCP server to the mcp 2.x SDK without dropping 1.x users. It was one of five issues GC handed to parallel Claude Code agents; one agent took #516 and left the merge to GC.</p>

<p>The two SDK lines differ more than the version number suggests:</p>

<ul><li><b>Server class:</b> <code>FastMCP</code> became <code>MCPServer</code>.</li><li><b>Error text:</b> from 2.1 on, a failing tool reaches the client as a bare “Error executing tool X”, without the reason.</li><li><b>Tool calls:</b> <code>call_tool</code> now needs a context argument.</li><li><b>Threading:</b> 2.x runs sync tools in a thread pool, where 1.x ran them on the event loop.</li></ul>

<p>The port added a small compatibility module that picks the right server class, restores the error reason, and keeps per-call workspace pinning working across the thread hop. The dependency became <code>mcp&gt;=1.10,&lt;3</code>, with a contract test enforcing that ceiling.</p>

<p>Verification ran on mcp 1.10.0, 1.30.0, 2.0.0 and 2.3.0. <code>tools/list</code> returned the same 287 tools byte for byte on all four, the 35 MCP-related test files gave identical results, and a new stdio test fails on 2.3.0 if the error-text fix is removed. The automated review flagged one unused helper; GC said “Clean up, then merge,” and PR #524 closed the issue.</p>]]></content><author><name></name></author><category term="Build log" /><summary type="html"><![CDATA[Issue #516 asked to move AnkusDrive’s MCP server to the mcp 2.x SDK without dropping 1.x users. It was one of five issues GC handed to parallel Claude Code agents; one agent took #516 and left the merge to GC.]]></summary></entry><entry><title type="html">Agents that share a server stop stepping on each other</title><link href="https://www.ankusdrive.com/blog/2026/10/29/agents-that-share-a-server-stop-stepping-on-each-other/" rel="alternate" type="text/html" title="Agents that share a server stop stepping on each other" /><published>2026-10-29T00:00:00+00:00</published><updated>2026-10-29T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/10/29/agents-that-share-a-server-stop-stepping-on-each-other</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/10/29/agents-that-share-a-server-stop-stepping-on-each-other/"><![CDATA[<p>Several agents can share one MCP server. Claude Code subagents share their parent session’s. Until 0.5.7 the only way to keep their work apart was <code>use_workspace</code>, and its selection was server-wide, so one agent’s switch quietly retargeted every other agent’s calls. Now each call can name its own workspace.</p>

<p>Two FEM fixes ride along: a default mesh-size floor, so sliver edges in imported CAD no longer explode a mesh, and a CalculiX working directory per worker, so concurrent workspaces no longer share one.</p>

<p>Windows also gets the solvers that used to be Linux-only. OpenFOAM, FSI, molding, YADE, openEMS and Bempp run from the prebuilt solver image through Docker inside WSL, set up with one command, where they used to need hours of source builds.</p>]]></content><author><name></name></author><category term="v0.5.7" /><summary type="html"><![CDATA[Several agents can share one MCP server. Claude Code subagents share their parent session’s. Until 0.5.7 the only way to keep their work apart was use_workspace, and its selection was server-wide, so one agent’s switch quietly retargeted every other agent’s calls. Now each call can name its own workspace.]]></summary></entry><entry><title type="html">A result you can audit</title><link href="https://www.ankusdrive.com/blog/2026/09/23/a-result-you-can-audit/" rel="alternate" type="text/html" title="A result you can audit" /><published>2026-09-23T00:00:00+00:00</published><updated>2026-09-23T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/09/23/a-result-you-can-audit</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/09/23/a-result-you-can-audit/"><![CDATA[<p>0.5.6 is about trusting a result after the fact. Every tool call is now journalled, and a session can be exported as a Python script that regenerates the model and its simulations.</p>

<p>That script checks every number a solve reported, names the exact solver binary and version that produced it, and diffs the input deck the solver was handed. With one setting the journal also goes to disk, where it outlasts the session.</p>

<p>The same release made a Mac a real solver host. YADE, Elmer, openEMS and Bempp joined OpenFOAM in a new runtime-only solver container, about a fifth of the CI image’s download, signed and scanned, and it records which solvers it holds so <code>doctor</code> can’t report a missing one as ready.</p>]]></content><author><name></name></author><category term="v0.5.6" /><summary type="html"><![CDATA[0.5.6 is about trusting a result after the fact. Every tool call is now journalled, and a session can be exported as a Python script that regenerates the model and its simulations.]]></summary></entry><entry><title type="html">From 114k tokens to 31k</title><link href="https://www.ankusdrive.com/blog/2026/09/13/from-114k-tokens-to-31k/" rel="alternate" type="text/html" title="From 114k tokens to 31k" /><published>2026-09-13T00:00:00+00:00</published><updated>2026-09-13T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/09/13/from-114k-tokens-to-31k</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/09/13/from-114k-tokens-to-31k/"><![CDATA[<p>Before 0.5.5 a session paid about 114k tokens of tool definitions before its first call. The 281 tools are now grouped into 12 families that an install switches on, and the Claude Desktop extension starts with the model, drawing and analysis loop at about 31k.</p>

<p><code>run_script</code>, which runs agent-written Python with full file access, is off in the extension unless the user turns it on.</p>

<p>A reviewer guide now gives three example prompts, and their results are checked against the real server on every change. One is an FEM run on a cantilever, held to beam theory.</p>]]></content><author><name></name></author><category term="v0.5.5" /><summary type="html"><![CDATA[Before 0.5.5 a session paid about 114k tokens of tool definitions before its first call. The 281 tools are now grouped into 12 families that an install switches on, and the Claude Desktop extension starts with the model, drawing and analysis loop at about 31k.]]></summary></entry><entry><title type="html">Testing photoreal Blender rendering on macOS</title><link href="https://www.ankusdrive.com/blog/2026/09/13/testing-photoreal-blender-rendering-on-macos/" rel="alternate" type="text/html" title="Testing photoreal Blender rendering on macOS" /><published>2026-09-13T00:00:00+00:00</published><updated>2026-09-13T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/09/13/testing-photoreal-blender-rendering-on-macos</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/09/13/testing-photoreal-blender-rendering-on-macos/"><![CDATA[<p>PR #357 added photoreal rendering through Blender Cycles, plus an installer script, and had only been tested on Linux. GC asked Claude Code to “evaluate if blender cycles instructions for MacOS work.”</p>

<p>On an Apple Silicon Mac the path held up. The download matched its pinned hash, Blender 5.2.1 was detected with the Metal GPU as its render device, and all 18 Blender render tests passed along with the 7 in the photoreal suite. One thing worth knowing: the first render took 91.6 s while Metal compiled its kernels once, and later renders took about half a second.</p>

<p>The review found five small installer issues:</p>

<ul><li>No “already installed” check.</li><li>It assumed Homebrew installs into one fixed folder.</li><li>It didn't handle Intel Macs with Homebrew.</li><li>It could leave the disk image mounted after a failure.</li><li><code>--list</code> and <code>--help</code> gave misleading output.</li></ul>

<p>Fixing those turned up a bug Linux testing had missed: every successful install exited with status 1, because the cleanup step ran last and ended on a failing test.</p>

<p>To finish, the session started the branch’s own AnkusDrive MCP server, built a gear pair on bearings and shafts over a brushed-aluminium plate, and rendered it with one <code>render_photoreal</code> call: nine parts, each with its own appearance, 384 samples at 1280×960, in 15 s on Metal.</p>]]></content><author><name></name></author><category term="Build log" /><summary type="html"><![CDATA[PR #357 added photoreal rendering through Blender Cycles, plus an installer script, and had only been tested on Linux. GC asked Claude Code to “evaluate if blender cycles instructions for MacOS work.”]]></summary></entry><entry><title type="html">Why our FEM test was flaky: Gmsh threads</title><link href="https://www.ankusdrive.com/blog/2026/09/12/why-our-fem-test-was-flaky-gmsh-threads/" rel="alternate" type="text/html" title="Why our FEM test was flaky: Gmsh threads" /><published>2026-09-12T00:00:00+00:00</published><updated>2026-09-12T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/09/12/why-our-fem-test-was-flaky-gmsh-threads</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/09/12/why-our-fem-test-was-flaky-gmsh-threads/"><![CDATA[<p>A CI run on PR #336 failed one test out of 146. <code>test_fem_decomposed_cantilever</code> builds the same beam twice and requires the two maximum displacements to agree within 8%. This run they came out at 0.0541 mm and 0.0497 mm, just over the limit. A re-run passed, but a test that only sometimes fails hides real regressions, so GC’s call was “merge it and fix the flaky test.”</p>

<p>Claude Code found the cause. Two meshing paths let Gmsh use every core, and as the session put it, “Gmsh’s multi-threaded 3D mesher doesn’t give the same mesh twice, so results drifted between runs.” The codebase already had a helper that forces single-threaded meshing; these two call sites just didn’t use it.</p>

<p>The session ran the demo six times each way:</p>

<ul><li><b>Multi-threaded:</b> 162 or 163 nodes, and displacement from 0.04973 to 0.05121 mm.</li><li><b>Single-threaded:</b> all six runs identical.</li></ul>

<p>On a mesh of about 440k tetrahedra, single-threaded meshing took 12.2 s against 11.8 s, so the cost is small. PR #344 routes every Gmsh call in the worker through the helper and tightens the determinism tests from 8% displacement and 15% stress to 2% and 2%. Three back-to-back runs then differed by 0.0%, and the PR merged.</p>]]></content><author><name></name></author><category term="Build log" /><summary type="html"><![CDATA[A CI run on PR #336 failed one test out of 146. test_fem_decomposed_cantilever builds the same beam twice and requires the two maximum displacements to agree within 8%. This run they came out at 0.0541 mm and 0.0497 mm, just over the limit. A re-run passed, but a test that only sometimes fails hides real regressions, so GC’s call was “merge it and fix the flaky test.”]]></summary></entry><entry><title type="html">Every solver answers to an oracle</title><link href="https://www.ankusdrive.com/blog/2026/06/13/every-solver-answers-to-an-oracle/" rel="alternate" type="text/html" title="Every solver answers to an oracle" /><published>2026-06-13T00:00:00+00:00</published><updated>2026-06-13T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/06/13/every-solver-answers-to-an-oracle</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/06/13/every-solver-answers-to-an-oracle/"><![CDATA[<p>0.4.0 is where AnkusDrive stopped being a CAD wrapper with FEM attached and became a simulation surface: thermal, CFD, EM, acoustics, multibody dynamics, topology optimization and optics.</p>

<p>Each family is gated against an analytic oracle rather than trusted because a solver returned. The gallery above shows several of those comparisons side by side.</p>

<p>The multi-agent RFC landed in the same release. It turned “partition a product across agents and merge it back” from an experiment into a mechanism, with typed interfaces and merge gates.</p>]]></content><author><name></name></author><category term="v0.4.0" /><summary type="html"><![CDATA[0.4.0 is where AnkusDrive stopped being a CAD wrapper with FEM attached and became a simulation surface: thermal, CFD, EM, acoustics, multibody dynamics, topology optimization and optics.]]></summary></entry><entry><title type="html">Can a team of agents build parts that fit?</title><link href="https://www.ankusdrive.com/blog/2026/06/12/can-a-team-of-agents-build-parts-that-fit/" rel="alternate" type="text/html" title="Can a team of agents build parts that fit?" /><published>2026-06-12T00:00:00+00:00</published><updated>2026-06-12T00:00:00+00:00</updated><id>https://www.ankusdrive.com/blog/2026/06/12/can-a-team-of-agents-build-parts-that-fit</id><content type="html" xml:base="https://www.ankusdrive.com/blog/2026/06/12/can-a-team-of-agents-build-parts-that-fit/"><![CDATA[<p>The multi-agent work asks whether a team of agents can split a design, build the pieces independently and merge them into a product that actually fits. Phases 0 to 2, the partition and merge substrate, shipped on 30 May 2026.</p>

<p>In Phase 3 every feature ships with a free two-sided test, and the features that claim to change agent behavior also get billed runs: Claude Haiku 4.5, 20 runs per condition.</p>

<p>Two results stand out. A resolve step, which turns global constraints into literal per-builder slices, took one partitioned task from 2 of 20 to 20 of 20. A builder-side self-check, <code>verify_contract</code>, took the single-agent version of that task from 8 of 20 to 20 of 20.</p>]]></content><author><name></name></author><category term="Eval" /><summary type="html"><![CDATA[The multi-agent work asks whether a team of agents can split a design, build the pieces independently and merge them into a product that actually fits. Phases 0 to 2, the partition and merge substrate, shipped on 30 May 2026.]]></summary></entry></feed>