12-Factor Agents

github.com

Free guide to 12 principles for building reliable, production-ready LLM agents, from HumanLayer.

Pricing
Free
Published
Nov 9, 2026

Next steps

What it does

12-Factor Agents (about 27k GitHub stars), written by Dex Horthy of HumanLayer in the spirit of 12 Factor Apps, sets out principles for LLM software good enough for production customers. Factors include natural language to tool calls, owning your prompts, owning your context window (context engineering), treating tools as structured outputs, unifying execution and business state, and launch/pause/resume with simple APIs. It argues that strong agent products are mostly well-engineered software with LLM steps in the right places.

Use cases

  • Learn principles for production-grade LLM agents before choosing a framework
  • Review an agent architecture for context ownership, prompts and control flow
  • Teach a team context engineering with concrete factors and examples

Frequently asked questions

What is 12-Factor Agents?
A guide by Dex Horthy of HumanLayer describing principles for building reliable LLM applications, inspired by 12 Factor Apps.
Is it a framework?
No, it is a set of principles and essays; code is not required.
Is it free?
Yes, it is publicly available on GitHub.
Log in to join the discussion