Skip to Main Content

Modaic

Built at WeaveHacks 3: Self-Improving Agents Hackathon with Weights & Biases · Jan 31, 2026 · San Francisco, CA

Modaic — Demo video

Microcode is an RLM-powered terminal agent built with DSPy & Modaic. It features a self-reflection loop where one instance monitors another's failures during execution. Using TerminalBench, I run 89 parallel Modal sandboxes with Claude Opus 4.5. A script: reflect.py watches for failures, curates test cases/trajectories, then calls Microcode to identify failure modes and generate: FEEDBACK.md. Microcode then rewrites its own DSPy signature based on this feedback and pushes to hub. On startup, it pulls the latest revision, retaining improvements. The self-improvement cycle: monitor failed trajectories → analyze patterns → iterate on prompts → push updates → auto-propagate. RLMs handle the long coding trajectories. Code: github.com/modaic-ai/microcode | Engine: modaic.dev/farouk1/nanocode/tree/prod

Team