# Documentation

> Documentation for the Go Micro agent harness and service framework.

---

LLMS index: [llms.txt](/llms.txt)

---

## Overview

<img src="/images/generated/architecture.jpg" alt="Go Micro architecture" style="width: 100%; border-radius: 8px; margin-bottom: 1.5rem;" />

Go Micro is an agent harness and service framework for Go. A harness is the runtime around an agent: tools, memory, guardrails, workflows, state, discovery, and interop. Build an agent and it gets a model, memory, tools, planning, delegation, and service discovery; it is reachable over [MCP](https://modelcontextprotocol.io/) and [A2A](https://a2a-protocol.org). Write services and every endpoint becomes an AI-callable tool. Orchestrate the deterministic parts with durable flows. Agents, services, and flows come from the same primitives because an agent is a distributed system, and building one is building a service.

It's built on a pluggable architecture of Go interfaces: service discovery, client/server RPC, pub/sub, plus auth, caching, and storage. Sane defaults out of the box, everything swappable.

## Learn More

Start with [Getting Started](getting-started/index.md) for install and the first local service. Then follow the first-agent on-ramp in the same order as the README: `micro agent demo` for the installed no-secret CLI affordance, `micro agent quickcheck` (or `micro agent debug`) for the short recovery map, `micro examples` for the provider-free examples map, `micro zero-to-hero` for the maintained lifecycle harness, [examples wayfinding index](https://github.com/micro/go-micro/blob/master/examples/INDEX.md) for the runnable examples map, [the smallest first-agent example](https://github.com/micro/go-micro/tree/master/examples/first-agent) for the fastest provider-free run, [the 0→hero support reference](https://github.com/micro/go-micro/tree/master/examples/support) for the full no-secret lifecycle example, [No-secret first-agent transcript](guides/no-secret-first-agent.md) to run a mock-model support agent, [Your First Agent](guides/your-first-agent.md) to build a service-backed agent and talk to it with `micro chat`, [Debugging your agent](guides/debugging-agents.md) to use `micro inspect agent <name>` for runs and memory, and the [0→hero reference path](guides/zero-to-hero.md) to walk the full scaffold → run → chat → inspect → deploy dry-run lifecycle covered by CI.

Otherwise continue to read the docs for more information about the framework.

## Contents

- [Getting Started](getting-started/index.md)
- [0→hero Reference](guides/zero-to-hero.md) - Walk scaffold → run → chat → `micro inspect agent <name>` → deploy dry-run with CI-backed commands
- `micro agent demo` - Show the provider-free first-agent demo command and next docs steps
- `micro agent quickcheck` (alias: `micro agent debug`) - Show the stalled first-agent recovery map before the full debugging guide
- `micro examples` - Show provider-free first-agent examples in copy/paste order
- [Examples wayfinding index](https://github.com/micro/go-micro/blob/master/examples/INDEX.md) - Choose the first-agent, support, and interop examples from one map
- [Smallest first-agent example](https://github.com/micro/go-micro/tree/master/examples/first-agent) - Run one service-backed agent with a deterministic mock model
- [0→hero support reference](https://github.com/micro/go-micro/tree/master/examples/support) - Run the maintained no-secret services → agents → workflows example
- [No-secret first-agent transcript](guides/no-secret-first-agent.md) - Run the first useful agent path without a provider key
- [Your First Agent](guides/your-first-agent.md) - Build a service-backed agent and talk to it with `micro chat`
- [MCP & AI Agents](mcp/index.md) - Turn services into AI-callable tools with the Model Context Protocol
- [CLI & Gateway Guide](guides/cli-gateway.md) - Development vs Production modes
- [`micro loop` quickstart](guides/micro-loop.md) - Scaffold an autonomous CI-gated improvement loop
- [Quick Start](quickstart.md)
- [Architecture](architecture/index.md)
- [Configuration](config/index.md)
- [Registry](interfaces/registry/index.md)
- [Broker](interfaces/broker/index.md)
- [Client/Server](client-server.md)
- [Transport](interfaces/transport/index.md)
- [Store](store.md)
- [Plugins](plugins.md)
- [Examples](examples/)

## Development & Deployment

- [micro run](guides/micro-run.md) - Local development with hot reload, API gateway, and agent playground
- [micro build & deploy](deployment/index.md) - Build binaries and deploy to production
- [micro server](server.md) - Optional production web dashboard with auth

## AI & Agents

- [0→hero Reference](guides/zero-to-hero.md) - Walk scaffold → run → chat → `micro inspect agent <name>` → deploy dry-run with CI-backed commands
- [No-secret first-agent transcript](guides/no-secret-first-agent.md) - Run the first useful agent path without a provider key
- [Your First Agent](guides/your-first-agent.md) - Build a service-backed agent and talk to it with `micro chat`
- [Building AI-Native Services](guides/ai-native-services.md) - End-to-end tutorial for MCP-enabled services
- [MCP Security Guide](guides/mcp-security.md) - Auth, scopes, rate limiting, and audit logging
- [Tool Description Best Practices](guides/tool-descriptions.md) - Writing docs that make agents effective
- [Agent Integration Patterns](guides/agent-patterns.md) - Multi-agent harness patterns and architectures

## Advanced

- [Framework Comparison](guides/comparison.md) - Including Go Micro vs Dapr for agents, services, and workflows
- [Architecture Decisions](architecture/)
- [Real-World Examples](examples/realworld/)
- [Migration Guides](guides/migration/)
- [Observability](observability/index.md)
- [`micro loop` quickstart](guides/micro-loop.md)
- [Contributing](project/contributing.md)
- [Roadmap](roadmap.md)

---

Section pages:

- [Interfaces](/docs/interfaces/index.html): Define interfaces to extend microservices
- [Learn by Example](/docs/examples/index.html): Learn by building real microservices with go-micro
- [Guides](/docs/guides/index.html): Step-by-step guides for building with go-micro
- [Project](/docs/project/index.html): Architecture, design, and getting involved
- [AI Integration](/docs/ai-integration.html): Go Micro is an AI-native microservices framework. Every service you build is automatically accessible to AI agents, and every service can call AI models. This page explains how the pieces fit together
- [Analysis: Removing Reflection from go-micro](/docs/reflection-removal-analysis.html)
- [Architecture](/docs/architecture.html): An overview of the Go Micro architecture.
- [Authentication](/docs/auth.html): Authentication and authorization in Go Micro
- [Client/Server](/docs/client-server.html): Go Micro uses a client/server model for RPC communication between services.
- [Commercial Support](/docs/support.html)
- [Configuration](/docs/config.html): Go Micro follows a progressive configuration model so you can start with zero setup and layer in complexity only when needed.
- [Deploying Go Micro Services](/docs/deployment.html): This guide covers deploying go-micro services to a Linux server using systemd.
- [Getting Started](/docs/getting-started.html): Go Micro has three core abstractions:
- [Go Micro Roadmap](/docs/roadmap-2026.html): The 2026 AI-native era roadmap for Go Micro, now superseded by the single current roadmap.
- [Hosting Go Micro Services](/docs/hosting.html): This document outlines what hosting looks like for go-micro services, the options available today, and what an ideal hosting platform would provide.
- [MCP & AI Agents](/docs/mcp.html): Go Micro provides built-in support for the Model Context Protocol (MCP), enabling AI agents like Claude to discover and interact with your microservices as tools.
- [Micro Server (Optional)](/docs/server.html)
- [Model](/docs/model.html): Structured data model layer with CRUD operations, queries, and pluggable backends
- [Observability](/docs/observability.html): Observability in Go Micro spans logs, metrics, and traces. The goal is rapid insight into service behavior with minimal configuration.
- [Performance Considerations](/docs/performance.html)
- [Plugins](/docs/plugins.html)
- [Quick Start](/docs/quickstart.html)
- [Roadmap](/docs/roadmap.html)
- [TLS Security Migration Guide](/docs/security_migration.html): Go Micro v6 verifies TLS certificates by default. This guide is for teams
- [Store](/docs/store.html): The store provides a pluggable interface for data storage in Go Micro.
- [Summary: Reflection Removal Evaluation](/docs/reflection-evaluation-summary.html)
- [TLS Security Update - Important Information](/docs/tls_security_update.html)
