Documentation

LLM-optimized documentation for Goa and Goa-AI frameworks. Consolidated pages designed for easy copying into LLM contexts.
📋 LLM-Optimized Documentation — This documentation is designed for easy copying into LLM contexts. Use the “Copy page” button on any page to copy content as Markdown or Plain Text.

Documentation Sections

This documentation is organized into consolidated, self-contained pages optimized for LLM consumption. Each page can be copied in full to provide comprehensive context.

Goa Framework

Design-first API development with automatic code generation for Go microservices.

GuideDescription~Tokens
QuickstartInstall Goa and build your first service~1,100
DSL ReferenceComplete reference for Goa’s design language~2,900
Code GenerationUnderstanding Goa’s code generation process~2,100
HTTP GuideHTTP transport features, routing, and patterns~1,700
gRPC GuidegRPC transport features and streaming~1,800
Error HandlingDefining and handling errors~1,800
InterceptorsInterceptors and middleware patterns~1,400
ProductionObservability, security, and deployment~1,300

Total Goa Section: ~14,500 tokens

Goa-AI Framework

Design-first framework for building agentic, tool-driven systems in Go.

GuideDescription~Tokens
QuickstartInstallation and first agent~2,700
DSL ReferenceComplete DSL: agents, toolsets, policies, MCP~3,600
RuntimeRuntime architecture, plan/execute loop, engines~2,400
ToolsetsToolset types, execution models, transforms~2,300
Agent CompositionAgent-as-tool, run trees, streaming topology~1,400
MCP IntegrationMCP servers, transports, generated wrappers~1,200
Memory & SessionsTranscripts, memory stores, sessions, runs~1,600
ProductionTemporal setup, streaming UI, model integration~2,200

Total Goa-AI Section: ~17,600 tokens

Using This Documentation with LLMs

Copy Page Feature

Every documentation page includes a “Copy page” button with two options:

  • Copy as Markdown — Preserves formatting, code block language annotations, and heading hierarchy
  • Copy as Plain Text — Clean text without markdown syntax, suitable for any context
  1. Start with the Quickstart — Copy the quickstart guide to give your LLM basic context
  2. Add specific guides — Copy relevant guides based on your task (e.g., HTTP Guide for REST APIs)
  3. Include DSL Reference — For design questions, include the complete DSL reference

Token Budget Tips

  • Each guide is designed to fit within typical LLM context windows
  • The complete Goa documentation (~14.5k tokens) fits easily in most modern LLMs
  • The complete Goa-AI documentation (~17.6k tokens) is similarly compact
  • Both frameworks together (~32k tokens) work well with larger context models

Key Concepts

Design-First Development

Both Goa and Goa-AI follow a design-first philosophy:

  1. Define your API/Agent using a powerful DSL
  2. Generate code automatically from your design
  3. Implement business logic in clean, type-safe interfaces
  4. Documentation stays in sync because it comes from the same source

Type Safety

Generated code provides end-to-end type safety:

// Generated interface - your contract
type Service interface {
    Add(context.Context, *AddPayload) (int, error)
}

// Your implementation - clean and focused
func (s *service) Add(ctx context.Context, p *calc.AddPayload) (int, error) {
    return p.A + p.B, nil
}

Community

Contributing

Want to improve the documentation? See the Contributing Guide for guidelines on canonical homes, cross-linking patterns, and content strategy.