Settings

Theme

Show HN: Build Your Own AI Agent CLI in 150 Lines

go-micro.dev

34 points by asim 15 days ago · 7 comments · 1 min read

Reader

I can't tell if HN is the right kind of place for this stuff anymore since people are so advanced in their use but I thought it was interesting to leverage my existing Go microservices framework and turn it into the core of what would provide tools for an agent cli or whatever beyond that. Extensibility is key. Thought I'd share and get a conversation going.

rapiz 15 days ago

Dang I made the same thing the same day https://news.ycombinator.com/item?id=48374308

mklifelife 13 days ago

Very cool.

There's a lot of complexity around AI agents right now, so I appreciate examples that keep things simple and easy to understand.

Did building it in such a small codebase require leaving out any features you originally wanted?

  • asimOP 13 days ago

    I think there's a lot that doesn't get built initially especially around error management and more feature completeness around how the response will be shaped. I think it's an interesting demonstration in how to leverage an existing system of services for AI but definitely more to do. Thanks for asking.

    Edit: One other thing I kept out was code generation — the agent can call services but doesn't create them. I've just built it: `micro run --prompt "a task management system"` generates real services, builds them, starts them, and the agent can use them immediately. The agent can build new services on the fly.

    Blog post here: https://go-micro.dev/blog/13

BlueBerry2001 10 days ago

Pretty cool, tried something like this as well. But had a lot more than 150 loc.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection