📱

Get Our Mobile App

Take your business learning on the go!

Download on the App StoreGet it on Google Play

Micro Agent, a New AI Coding Agent, in 60 Seconds

Steve (Builder.io)0:57

Transcription

I've grown so tired of AI tools that generate code that would just never work and meticulously debugging all the problems myself until I realize that this is a solvable problem.

Typical AI tools work like this. They generate code and if it works that's great. When it doesn't that's your problem and that's where they stop.

So I made this thing called a microagent. It doesn't turn prompts into code. Instead it first turns prompts into tests and then iterates on the code until the tests pass.

You can try microagent yourself by just npm installing builder.io/micro-agent and then in any project run microagent in your terminal. Describe what you want like a function that converts an HTML string to a DOM node and then generate a test. Then we just let it run.

Microagent will run the test and generate new code or updated code to try to ultimately pass the test. And there we go. After just a couple iterations all the tests pass.

You can learn more about how to use microagent and what we're up to with it in my latest blog post on the builder.io blog.