Build a language interpreter around executable examples and sanitizers
At a glance
Ankur Sethi used Claude Code to build Cutlet, steering generated C code with written plans, example-program outputs and memory-safety checks. This workflow is listed under language-implementation, agent-feedback, memory-safety.
- Agents / tools
- Claude Code, Docker, clang-tidy, ASan, UBSan
SourceBuilding a tool for these workflows? See weekly rates.
What they did
His report, linked from Lobsters, describes reviewing feature designs and saving small implementation plans before Claude implemented them in Docker. The loop combined failing tests, expected outputs for sample programs, clang-tidy and a make test-sanitize target using ASan and UBSan. Token, AST and bytecode dumps helped the agent locate errors.
How it went
Sethi reports a four-week project that runs real programs on macOS and Linux. The public repository includes plans, tests and examples.
Worth knowing
He describes Cutlet as a proof of concept and says he did not review the generated code. At publication it lacked file I/O and error handling.