Generative Agent Optimization (GAO)

Structure your knowledge so AI agents discover, install, and act on it.

Definition

Generative Agent Optimization is the discipline of structuring your organization's knowledge so AI agents can discover it, install it into their context, and act on it deterministically. It's the third layer after SEO (search) and GEO (answer engines).

The Three-Layer Discipline

SEO — Search Engine Optimization
Humans search, read, click
GEO — Generative Engine Optimization
LLMs cite your answer in responses
GAO — Generative Agent Optimization
Agents install your knowledge before acting

How Agents Discover Knowledge

Agents install knowledge through three surfaces:

  1. llms.txt — Machine-readable site description
  2. MCP servers — Tools that expose structured knowledge (CKGs, APIs, databases)
  3. Compact Knowledge Graphs — Pre-compiled domain ontologies delivered via MCP

Why Agents Need Structure (vs. Humans)

❌ Without GAO — Agent acts blind
Engineer writes: "Refactor UserService.ts" — Agent doesn't know 23 modules import it. RAG returns similar code. Agent refactors. Breaks production. Blast radius was invisible.
✓ With GAO — Agent compiles knowledge first
Same request → Agent compiles the knowledge graph of your codebase. trace_downstream("UserService") returns exact 23 dependent modules. Agent sees the blast radius before writing a line. Edit is safe.

The GAO Playbook

Four steps to make your knowledge agent-ready:

  1. Audit your knowledge. What does your domain depend on? What breaks if X changes?
  2. Compile it. Build a CKG (Compact Knowledge Graph) from your domain data. Use the CKG Compiler to validate structure.
  3. Publish it. Expose via llms.txt, MCP server, or direct API so agents can query it.
  4. Install it. Agents discover and load your knowledge before they act.

Who Needs GAO?

Any organization where AI agents make decisions that affect production:

The Measurable Outcome

Organizations that implement GAO see:

Get Started

Install ckg-mcp and compile your first domain:

$ pip install ckg-mcp
$ ckg-mcp compile your-domain.csv

Learn more: What is a Compact Knowledge Graph?

Ready to build agent-ready knowledge?

Book a benchmark walkthrough