go-micro
CLAUDE.md23k starsChanged 5 months agoApache-2.0View on GitHub
Go Micro is a framework for distributed systems development in Go. It provides pluggable abstractions for service discovery, RPC, pub/sub, config, auth, storage, and more. The framework is evolving into an AI-native platform where every microservice is automatically accessible to AI agents via the Model Context Protocol (MCP).
Trending
More talk lately.about the whole repository
Who's talking about micro/go-micro
- A Hacker News story“Go Micro v2.4.0 – Go microservices development framework”Hacker News · Mar 31, 2020 · 82 points
- go-kit/kit“Discussion: package pubsub”GitHub · Jun 15, 2016 · 55 reactions
- matryer/moq“Import aliases not maintained, cannot import multiple packages with same name”GitHub · Jul 26, 2018 · 17 reactions
- etcd-io/etcd“go get fails in coreos/etcd with undefined: resolver.BuildOption”GitHub · May 22, 2020 · 16 reactions
- A Hacker News story“Show HN: Go Micro – A distributed systems framework”Hacker News · Nov 27, 2018 · 10 points
The biggest 5 of 32 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 32
Talked about on GitHub, Hacker News and Bluesky (32 times).
On GitHub · 20
- Jun 15, 2016Discussion: package pubsub — go-kit/kit55 reactions · 37 comments
- Jul 26, 2018Import aliases not maintained, cannot import multiple packages with same name — matryer/moq17 reactions · 1 comment
- May 22, 2020go get fails in coreos/etcd with undefined: resolver.BuildOption — etcd-io/etcd16 reactions · 27 comments
- Mar 5, 2020assignment mismatch: 2 variables but uuid.NewV4 returns 1 values — satori/go.uuid4 reactions · 6 comments
- Sep 27, 2018godef not work in go mod — rogpeppe/godef4 reactions · 4 comments
15 more on GitHub
- Oct 28, 2020UPT: upgrade go-micro to v2 preventing package issue — lalamove/konfig2 reactions · 1 comment
- Jun 29, 2020use SIGQUIT as graceful signal — douyu/jupiter1 reaction
- Apr 9, 2020examples/basic-practices/micro-service/stream/file 问题 — printfcoder/stack-rpc-tutorials1 reaction · 5 comments
- Jan 3, 2020user-cli/cli.go fails to build when using go mod -- unable to find go-micro/cmd. — EwanValentine/shippy1 reaction · 1 comment
- Mar 27, 2018go-micro 框架介绍 — hb-chen/hbchen.com1 reaction
- Oct 24, 2026fix: Clean up RPC Call() context timer when no deadline is provided — divisionone/go-micro0 reactions
- Mar 17, 2026Configure Renovate — CESNET/micro-tools0 reactions
- Aug 6, 2024build(deps): bump github.com/asim/go-micro/v3 from 3.7.0 to 3.7.1 — kamalyes/go-core0 reactions · 1 comment
- Jul 18, 2020Bump github.com/micro/go-micro/v2 from 2.1.2 to 2.9.1 — chronark/charon0 reactions · 1 comment
- Jul 6, 2020Bump github.com/micro/go-micro/v2 from 2.2.0 to 2.9.1 — koverto/errors0 reactions
- Jul 6, 2020Bump github.com/micro/go-micro/v2 from 2.4.0 to 2.9.1 — koverto/authorization0 reactions
- Jul 6, 2020Bump github.com/micro/go-micro/v2 from 2.4.0 to 2.9.1 — koverto/koverto0 reactions
- Jul 6, 2020Bump github.com/micro/go-micro/v2 from 2.3.0 to 2.9.1 — koverto/micro0 reactions
- Jul 6, 2020Bump github.com/micro/go-micro/v2 from 2.4.0 to 2.9.1 — koverto/credentials0 reactions
- Jul 6, 2020Bump github.com/micro/go-micro/v2 from 2.4.0 to 2.9.1 — koverto/users0 reactions
On Hacker News · 11
- Mar 31, 2020Go Micro v2.4.0 – Go microservices development framework82 points · 25 comments
- Nov 27, 2018Show HN: Go Micro – A distributed systems framework10 points
- May 30, 2020Go Micro – a distributed systems development framework3 points
- Sep 3, 2019Go Micro – A microservices development framework in Go3 points
- Jan 16, 2019Go Micro – A Zero Dependency Microservice Framework3 points
6 more on Hacker News
- Oct 15, 2025Show HN: Go Micro – A Go microservices framework2 points
- Aug 5, 2019Show HN: Go Micro – The Go microservices development framework2 points · 1 comment
- Mar 8, 2019Micro/go-micro: A microservice framework2 points
- Jul 18, 2026Show HN: Go Micro – An agent harness and service framework in Go1 point
- Oct 18, 2019Go Micro – A microservices framework to simplify distributed systems development1 point
- Jan 24, 2018Show HN: Go-micro – a pluggable RPC framework1 point
On Bluesky · 1
- Oct 26, 2026go-micro (⭐️ 23081) A framework for agents, tools and services #go — @golangoss.bsky.social1 likes and repost
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 70
Plugin architecture: All abstractions use Go interfaces.
- Distinctive: line 72
AI-native by default: Every service is automatically an MCP tool.
- Distinctive: line 82
Commit messages: imperative mood, concise summary line
- Very specific: line 157
Run make test and make lint before submitting
- Very specific: line 158
Follow commit message format: type: description (e.g., feat: add WebSocket transport)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md - Go Micro Project Guide
Project Overview
Go Micro is a framework for distributed systems development in Go. It provides pluggable abstractions for service discovery, RPC, pub/sub, config, auth, storage, and more.
The framework is evolving into an AI-native platform where every microservice is automatically accessible to AI agents via the Model Context Protocol (MCP).
Build & Test
# Run all tests
make test
# Run tests for a specific package
go test ./gateway/mcp/...
go test ./ai/...
go test ./model/...
# Lint
make lint
# Format
make fmt
# Build CLI
go build -o micro ./cmd/micro
# Run locally with hot reload
micro runProject Structure
go-micro/
├── agent/ # Agent abstraction (intelligent service management)
├── ai/ # AI model providers (Anthropic, OpenAI, Gemini, etc.)
├── auth/ # Authentication (JWT, no-op)
├── broker/ # Message broker (NATS, RabbitMQ)
├── cache/ # Caching (Redis)
├── client/ # RPC client (gRPC)
├── cmd/micro/ # CLI tool (run, deploy, mcp, build, server)
├── codec/ # Message codecs (JSON, Proto)
├── config/ # Dynamic config (env, file, etcd, NATS)
├── errors/ # Error handling
├── events/ # Event system (NATS JetStream)
├── flow/ # Event-driven LLM orchestration
├── gateway/
│ ├── api/ # REST API gateway
│ └── mcp/ # MCP gateway (core AI integration)
│ └── deploy/ # Helm charts for MCP gateway
├── health/ # Health checking
├── logger/ # Logging
├── metadata/ # Context metadata
├── model/ # Typed data models (CRUD, queries, schemas)
├── registry/ # Service discovery (mDNS, Consul, etcd)
├── selector/ # Client-side load balancing
├── server/ # RPC server
├── service/ # Service interface + profiles
├── store/ # Data persistence (Postgres, NATS KV)
├── transport/ # Network transport
├── wrapper/ # Middleware (auth, trace, metrics)
├── examples/ # Working examples
└── internal/ # Non-public: docs, utils, test harnessKey Architectural Decisions
- Plugin architecture: All abstractions use Go interfaces. Defaults work out of the box, everything is swappable.
- Progressive complexity: Zero-config for development, full control for production.
- AI-native by default: Every service is automatically an MCP tool. No extra code needed.
- In-repo plugins: Plugins live in the main repo to avoid version compatibility issues.
- Reflection-based registration: Handlers are registered via reflection for minimal boilerplate.
Code Conventions
- Standard Go conventions (gofmt, golint)
- Functional options pattern for configuration (
WithX()functions) - Interface-first design: define the interface, then implement
- Tests alongside code (not in separate test directories)
- Commit messages: imperative mood, concise summary line
Current Focus & Priorities (March 2026)
Status
- Q1 2026 (MCP Foundation): COMPLETE
- Q2 2026 (Agent DX): COMPLETE (100%)
- Q3 2026 (Production): 50% complete (ahead of schedule)
Priority 1: Agent Showcase & Examples
Build compelling demos showing agents interacting with go-micro services in realistic scenarios.
Priority 2: Additional Protocol Support
- gRPC reflection-based MCP
- HTTP/3 support
Priority 3: Kubernetes & Deployment
- Helm Charts for MCP gateway
- Kubernetes Operator with CRDs
Recently Completed
- Agent Plan & Delegate - Two built-in agent tools:
plan(ordered plan persisted to store-backed memory, surfaced in the prompt) anddelegate(hand a subtask to another agent — RPC to a registered agent, else an ephemeral sub-agent with isolated context). Added automatically to every agent; no harness or graph. (agent/builtin.go,examples/agent-plan-delegate/) micro newMCP Templates - Scaffolds MCP-enabled services with doc comments,@exampletags,WithMCP().--no-mcpto opt out.- CRUD Example - Contact book service with 6 operations, rich agent docs (
examples/mcp/crud/) - Migration Guide - "Add MCP to Existing Services" guide with 3 approaches
- Troubleshooting Guide - Common MCP issues and solutions
- Error Handling Guide - Patterns for agent-friendly error responses
- Documentation Guides - Six guides: AI-native services, MCP security, tool descriptions, agent patterns, error handling, troubleshooting
- WithMCP Option - One-line MCP setup (
gateway/mcp/option.go) - Agent Playground Redesign - Chat-focused UI with collapsible tool calls
- Gateway command -
micro gateway(formerlymicro server) runs the HTTP API, dashboard, auth, and — with--mcp-address— the MCP gateway with production controls (rate limit, scopes, auth, audit, circuit breaker, x402). Deployed via the micro CLI image; the standalonemicro-mcp-gatewaybinary was folded into it. - WebSocket Transport - Bidirectional JSON-RPC 2.0 streaming (
gateway/mcp/websocket.go) - OpenTelemetry Integration - Full span instrumentation with W3C trace context (
gateway/mcp/otel.go) - LlamaIndex SDK - Python package with RAG examples (
contrib/go-micro-llamaindex/)
Key Files
| Purpose | File |
| MCP Gateway | gateway/mcp/mcp.go |
| MCP Docs | gateway/mcp/DOCUMENTATION.md |
| AI Interface | ai/model.go |
| Model Layer | model/model.go |
| CLI Entry | cmd/micro/main.go |
| MCP CLI | cmd/micro/mcp/ |
| Server (run/server) | cmd/micro/server/server.go |
| Roadmap | ROADMAP.md (full: internal/website/docs/roadmap.md) |
| Status | CHANGELOG.md |
| Changelog | CHANGELOG.md |
| Docs Site | internal/website/docs/ |
Roadmap & Status Documents
- ROADMAP.md - the single, current roadmap (agentic development + DX). Full version at
internal/website/docs/roadmap.md. - CHANGELOG.md - what shipped and when (the source of truth for status).
- internal/docs/IMPLEMENTATION_SUMMARY.md - Implementation notes
- CHANGELOG.md - What changed and when
Coordination with Codex
Go Micro is maintained by two AI tools — Claude Code (you) and Codex (its playbook is CODEX.md) — plus the human maintainer, who routes work and owns every merge. To work side by side without collisions:
- Lanes / branches. You work on
claude/*branches; Codex oncodex/*. Never push to Codex's branch, and never have both agents committing the same branch at once. - Base PRs on
master; don't stack on Codex's in-flight branch. If that base squash-merges, your commit gets orphaned (this happened — the #3007 fixes had to be re-landed). If the code you need isn't merged yet, wait for it, then branch offmaster. To improve an open Codex PR, fix it in place (once Codex is done with the branch, or via an@codexcomment on the PR) rather than a separate stacked PR. - One concern per PR. Single-purpose PRs; don't bundle (e.g.) a feature with a docs change.
- Cross-review. Review Codex's PRs before merge — mechanical fixes you can land yourself (based on
master), but design/scope/positioning calls go to the human; don't silently rewrite Codex's intent. Codex reviews yours via@codex review. - Dispatching Codex. Start a task by commenting
@codex <instruction>on an issue/PR (that issue/PR is its context).@codex reviewis reserved for review; any other instruction starts a task. It's consequential (spends a Codex task slot, pushes commits) and serial (one task at a time) — so dispatch one task at a time, only on the human's go-ahead, and never write a literal@codexin a comment unless you intend to trigger it (write "Codex" in prose otherwise). - CI is the gate.
go build,go test,golangci-lint(blocking), andmake harnessmust pass before merge.internal/harness/andexamples/are excluded from errcheck; everything else gets the full set. - Backlog = GitHub issues, each a scoped, self-contained brief with acceptance criteria.
Contributing
See CONTRIBUTING.md for full guidelines. Key points:
- Open an issue before large changes
- Include tests for new features
- Run
make testandmake lintbefore submitting - Follow commit message format:
type: description(e.g.,feat: add WebSocket transport)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

