Getting Started
Quick start guide for making your codebase agent-ready
Summary
A quick assessment and prioritized roadmap for making any codebase agent-ready in weeks, not months. Evaluate seven key questions about discovery, APIs, CLI output, authentication, error handling, and testing. Then implement in priority order, starting with low-effort high-impact items like AGENTS.md and --json output.
- Discovery (llms.txt, AGENTS.md)
- CLI JSON output and machine-readable formats
- Structured error handling (RFC 7807)
- OAuth 2.1 Client Credentials authentication
- MCP server exposure
- Workflow definitions (Arazzo)
- Evaluation suite (evals, metrics, red-teaming)
Quick Assessment
Before diving into specific dimensions, assess where your codebase stands:
- Can an AI agent discover your capabilities? (Discovery & AEO)
- Can an AI agent call your APIs programmatically? (API Surface)
- Does your CLI produce machine-readable output? (CLI Design)
- Do you expose an MCP server? (MCP Servers)
- Can agents authenticate without browser flows? (Authentication)
- Do your errors tell agents how to recover? (Error Handling)
- Can you verify agent interactions work? (Testing)
Priority Order
If you're starting from zero, implement in this order:
- Write an
AGENTS.mdandllms.txtfile - Add
--jsonoutput to your CLI - Implement RFC 7807 structured errors
- Switch to OAuth 2.1 Client Credentials for M2M auth
- Expose an MCP server for your API
- Add Arazzo workflow definitions
- Build an evaluation suite
Each subsequent section of this reference covers one dimension in depth.