Guides, papers, lessons, notebooks and resources for prompt engineering, context engineering, RAG, and AI agents.
Opening the entry
Opening the entry
What are the principles we can use to build LLM-powered software that is actually good enough to put in the hands of production customers?
12-Factor Agents is a set of engineering principles for building reliable, production-ready LLM-powered software. Created by Dex at HumanLayer, it adapts the 12-factor app methodology to AI agents, covering prompt ownership, context window management, tool design, state unification, human-in-the-loop patterns, and stateless reducer architectures. The guide emphasizes that effective agents are mostly deterministic software with targeted LLM steps, not open-ended tool-use loops.
git clone https://github.com/humanlayer/12-factor-agents.git
# open humanlayer/12-factor-agents and follow its README
humanlayer/12-factor-agents is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.