Bergner & Spichtinger 2026 setup work
This was divided into 4 “episodes” in the B&S 2026 repository, written up in two project articles:
Episode 1: getting the model to run
- Useful transcript: model extraction and Figure 4 setup.
- Used the
extract-modelworkflow on the Bergner & Spichtinger 2026 paper to extract the 3-variable ODE system. - That went smoothly, with only a little guidance needed from me.
- Replicated Figure 4 from the paper as a first basic check.
- The session was made very short and simple by spending some time refining
the
extract-modelskill. This makes some opinionated choices about code layout and dependencies that mean that the agent doesn’t need to ask too many questions to produce a good result.
Episode 2: Python continuation
- Planning transcript: Python continuation planning.
- The main task here was to reproduce Figure 1 from the paper, which shows some equilibrium curves for solutions to the ODE system.
- I wanted to use Python first for this because it’s easier to inspect the code. I was planning to use the Python implementation as a reference for the other implementations.
- I had a surprisingly short grilling session about this, that mostly consisted of me saying “Yes” to the agent’s choices. Things it did well were choosing log scales for some parameters (, and the continuation parameter, which is the log of the updraft velocity), and picking out the analytical/fitted equations from the paper to compare results against (that was without any prompting from me).
Episode 3: AUTO as an independent backend
- Planning transcript: AUTO continuation planning
- The idea here was to do more or less the same thing as in episode 2, but using AUTO. Because this is a simple problem, it gives us the opportunity to make sure that the AUTO (Fortran) implementation of the model is correct, and to get the AUTO setup working.
- All the results agree, so I’m pretty confident that the AUTO model setup is OK.
Episode 4: LOCA/Trilinos as the third path
-
Planning transcript: LOCA continuation planning
-
And, finally, LOCA. This is fairly complicated to set up, and I’ve never got all that far into using it.
-
However, the agent easily produced a C++ version of the model in the format needed, did the continuation and replicated the results.
What the agent was useful for here
One thing the agents are very good at is following a pattern, like the “episode” setup I’m using here. This is the kind of thing that seems very useful and a great idea when you first think of it when you’re doing it yourself, but that’s very hard to stick to. If you do it by hand, keeping everything in sync gets difficult quickly and you eventually just let it slide and end up with something that kind of follows the pattern you wanted, but not very accurately. The agents don’t care if they have to make updates to half a dozen files to keep things organized, and they can easily gather materials for write-ups from all the different places it ends up.
In a similar vein, the agents can maintain discipline, writing documentation as they go (how often do you do that yourself? I know that I don’t!), keeping track of the provenance of plots (no more undocumented notebooks floating around containing the essential figures for your project).
Most importantly though, the agent can just plough very quickly through the boring stuff. Struggling to set the problem up in LOCA is not scientifically interesting, so it’s nice to jump straight to the punchline, where you can see how it’s done.
And finally, doing the same thing three different ways in parallel and cross-checking them helps to keep the agent honest and to avoid a whole class of problems that could occur if you pushed this sort of thing forward using just one set of tools.