Go Micro
An Agent Harness for Go

Build an agent, give it services as tools, and use them through conversation.

Features

An agent harness and a service framework in one β€” agents, services, and flows on the same runtime, with the production pieces agents need.

πŸ€–

Agent Harness

A model, memory, tools, plan/delegate, guardrails, and execution middleware around every agent.

πŸ”§

Services as Tools

Build services in Go or generate them from a prompt. Their endpoints become typed tools automatically.

βš™οΈ

Durable Workflows

Use fixed, checkpointed code paths for deterministic work; hand off to agents when the path is dynamic.

🌐

MCP Gateway

Every service endpoint is automatically an AI-callable tool via the Model Context Protocol.

🀝

A2A Gateway

Every agent is reachable over the Agent2Agent protocol β€” discovered and called by agents on any framework.

πŸ”Œ

Pluggable Everything

All abstractions are Go interfaces. Swap any component without changing your code.

AI agent calling microservices via MCP

Develop Through Conversation

Start with micro chat in a new project. With no registered agents, the development agent can generate a missing service, build and start it, and discover its endpoints as tools. Describe what you need, then use it in the same conversation.

$ micro chat --provider openai
> Build a notes service that can save, list, and search notes.
Create Your Agent
Go Micro architecture diagram

Distributed Systems for Agents

Agents need the same substrate services do: discovery, RPC, events, state, auth, observability, and deployment. Swap any component without changing your code β€” go from mDNS to Consul, or HTTP to gRPC, with a single option.

Terminal showing micro run and micro chat

Developer Experience

Create agents with micro.NewAgent and scaffold services with micro new. Assign services as tools with micro.AgentServices. micro run starts everything with hot reload, an API gateway, and an interactive console, and micro chat talks to your agents and services from the terminal.

Trusted by Developers

23,000+ stars on GitHub. Production-ready. Apache 2.0 licensed.