Platform · Coding
Coding agents
Batch TCAD and FEA campaigns still run on hand-written driver scripts that break the moment a mesh, material or solver flag changes. Coding agents write those drivers, run them, read the trace and repair themselves until an acceptance test passes.
01The problem
A production TCAD or FEA flow is glued together by brittle driver code, one solver dialect at a time. Synopsys Sentaurus, for example, scripts its Structure Editor in a LISP-like Scheme and reaches Python only through its calibration and API tooling, while COMSOL is driven headless through a Java API or MATLAB LiveLink. A single changed parameter can silently break a batch run and cost an engineer a day of tracing logs by hand.
02How we solve it
Write the driver, run it, repair it.
Agentriq treats every solver driver as code under test: the agent generates it, executes it in a sandbox, and self-repairs against a written acceptance test instead of a human reading logs.
Test-driven generation with execution feedback
The agent writes the driver together with an executable acceptance test, runs it, and feeds the captured error and stack trace back in to revise the code.
Iterative self-repair and self-debugging
Failures are looped back for successive revisions; across HumanEval and MBPP this recovers a large share of first-try failures, with most of the gain landing in the first two rounds.
Debugger-in-the-loop dynamic analysis
The agent drives a live PDB or GDB session to set breakpoints and inspect runtime state, turning blind retry into systematic root-cause diagnosis.
Multi-agent repair roles
Analyzer, optimizer and coach agents split failure triage, patch synthesis and policy learning so recurring errors get fixed once rather than re-hit every run.
03What it produces
Fewer tries to a passing run.
It produces a version-controlled solver driver that passes its written acceptance test, generated and repaired automatically; in published debugger-in-the-loop systems this dynamic-analysis step lifts repair accuracy by up to 60% relative and fixes bugs 1.7x to 2.2x more efficiently than text-only retry.
04The agentic loop
A closed loop, spec to commit.
Agentriq wraps generation, sandboxed execution, debugger-driven root-cause analysis and a judge into one closed loop, so each driver arrives verified, traced and committed rather than hand-tuned.
- 01Generate the solver driver and its acceptance test from the task, then execute it headless in a sandbox, capturing stdout, exit code and solver output.
- 02Verify the output against the acceptance test with pytest assertions on the solver result.
- 03On failure, root-cause via debugger-in-the-loop dynamic analysis plus Agentic RAG over solver API docs and prior fixes.
- 04A judge scores the repaired driver, checking for regressions and behavioral divergence before it is accepted.
- 05Write the verified driver, its trace and the decision back to Git as the recorded outcome.
05Tooling
Simulation, solvers & frameworks.
Get started
