humanlayer/12-factor-agents

Principles for production LLM agents

What

An essay-style guide on building LLM agents that hold up in production, modeled on the 12-factor app.

What's inside: 12 factors, including: own your prompts, own your context window, tools are just structured outputs, unify execution and business state, launch/pause/resume via simple APIs, contact humans with tool calls, own your control flow, compact errors into context, small focused agents, trigger from anywhere, agent as a stateless reducer.

Reach for it when

designing an agent and deciding what to own vs. leave to a framework.