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

go-micro.dev

33 points by asim 3 days ago

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.

mklifelife 1 day 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?

  • asim 1 day 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