Agentic Coding Without the Slop: 700K Lines in 7 Months

Abstract

Woxi is an open-source interpreter for the Wolfram Language, written in Rust, and written mostly by coding agents.

In 7 months we produced 700,000 lines of Rust and implemented more than 3000 Wolfram Language functions, with output that matches the original implementation byte for byte. This talk explains how we did it, and what kept the result from turning into AI slop.

I will walk through the full toolchain: prompts, coding harnesses, autonomous retry loops, and numerous layers of tests that keep the agents on track. I will show which tools and steps it takes to direct agents across a codebase of this size, including the gotchas and pitfalls we ran into.

You will leave with a concrete recipe for agentic development on a large, correctness-critical project, and with a free way to run Wolfram Language code: from the CLI, as a Jupyter kernel, as a Python package, in the browser via WebAssembly, or in a native notebook editor.

Speaker Bio

Adrian Sieber (@ad-si)
Adrian Sieber is a software engineer and founder based in Frankfurt, Germany,
He is currently building an AI assistant for engineers with a built-in computational engine
that turns mathematical and symbolic questions into executable, verifiable answers.
Adrian holds a degree in IT-Systems Engineering from the Hasso Plattner Institute
and has been publishing open-source software for over a decade,
with a particular fondness for Haskell, Elm, and Rust.

4 Likes

This is a fascinating achievement!

As a software developer working on open-source projects, I’ve been increasingly interested in using AI coding agents to accelerate development while maintaining code quality, reliability, and long-term maintainability.

I’m particularly interested in how you prevented AI-generated code from becoming difficult to maintain as the codebase grew to 700,000 lines.

I have a few questions:

  1. How did you design your testing strategy to ensure that AI agents consistently produced correct and reliable code?
  2. How did you manage the architecture and prevent agents from introducing inconsistencies across different parts of such a large codebase?
  3. Which coding agents and tools proved most effective, and would you recommend this approach for smaller open-source projects?

I’d love to learn more about your workflow and apply some of these practices to my own projects.

One small disclaimer: I posted these questions before the session started, so if you’ve already answered them during your talk, please forgive me! I guess I’m just a little too curious and couldn’t wait until the show started. :grinning_face_with_smiling_eyes:

Congratulations on this impressive work, and thank you for sharing your experience!

2 Likes

Is there a web based version, or is it planned? I used “Maple” in high school and I often missed that, but I’m only a casual user, so I don’t really want to install anything. Something like “app.woxi.fun” would be cool I think.

2 Likes

Have you heard anything from the Wolfram developers about Woxi? Curious if they would be interested in mutual collaboration.

1 Like

I would be interested in this as well, but for a different reason: Have the legal team of the Mathematica people reached out already? :grimacing:

2 Likes

How many status checks do you now have on your PRs since pivoting to agentic development? 5, 10, 50, or more? Thanks

1 Like

Do you have any approach in mind to avoid overfitting, like trying to reduce the complexity or the length of the code, detect dead code and duplicates, or other ideas?

1 Like

There is a simple web playground at Woxi Playground . Is that what you’re looking for or would you expect it to have more / different features?

1 Like

Some Wolfram employees have asked questions or suggested improvements, but there was no official communication yet. I’d definitely be excited about collaborating and making the Wolfram Language accessible to more people!

1 Like

Haha, no they haven’t. But I talked to the Mathics maintainers and they have never been contacted by them either!

Thank you for the kind words! :blush:

  1. Testing: The key is an oracle. Woxi’s output is always compared with wolframscript, so correctness doesn’t depend on the agent’s judgment. On top of that: ~34k fast unit tests (TDD, a regression test for every bug), whole-program snapshot tests, CLI docs that run as tests, visual comparison tests, and differential fuzzing against the oracle.
  2. Architecture: Everything is parsed into an AST first, which stopped agents from hacking symbolic math with floats and strings. AGENTS.md requires a single implementation per construct (e.g. /@ → Map) and general rules instead of special cases. Agents won’t refactor on their own, so refactoring, deduplication, and dead-code removal are tasks I assign explicitly.
  3. Tools and smaller projects: Claude Code throughout (Sonnet 3.7 → Opus 4.5 → Opus 5.5), with Rust and Clippy for fast feedback. Today it runs on several cloud VMs 24/7 with auto-merge. For smaller projects: yes. The feedback loop matters more than the model. Without a reference implementation, use property-based tests, trusted fixtures, round-trip checks, or differential tests against another library.
1 Like

Each PR currently gets six checks: format, lint (Clippy), test, library builds for x86_64 Linux and wasm32, and a Claude code review.

I keep the count small on purpose. Most of the coverage is inside the test job, which runs the full unit suite (~34k tests) and takes about 18 minutes. The slower checks run on a schedule so they don’t block every PR: nightly slow tests, doc tests, and builds for all platforms, and weekly full conformance runs against wolframscript and code quality checks.

2 Likes

Thanks for the feedback @ad-si

2 Likes

The main danger is code that handles a test example but not the actual rule. That’s how i try to prevent it:

  • Inputs the agent hasn’t seen: Differential fuzzing generates random valid programs and compares them with wolframscript. A special-cased patch breaks quickly on inputs it wasn’t written for.
  • Neighboring cases: Every fix gets regression tests for nearby variants (different nesting, types, arities), with expected values taken from the reference, not from the agent.
  • Real-world corpora: 13,000 Demonstration notebooks, Rosetta Code, and the Mathics test suite contain code nobody wrote with Woxi’s implementation in mind.
  • Rules in AGENTS.md: Implement the general rule, not the special case, and use one implementation per construct. In review, hardcoded outputs or if input == X branches are an automatic reject.

Dead code, duplication, and length are a separate issue. I treat them as cleanup tasks and assign them explicitly, plus a weekly code quality assessment, because agents won’t usually do this on their own. Duplication that leads to different behavior gets fixed right away.

2 Likes