12-factor-agents
humanlayer/12-factor-agents · Updated
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?
humanlayer/12-factor-agents is a TypeScript repository in the Prompts category with 26,911 stars and 2,017 forks on GitHub, last updated 1y ago.
How to install 12-factor-agents in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install 12-factor-agents in Claude CodeAnthropic's agentic CLI
Clone & open
bashgit clone https://github.com/humanlayer/12-factor-agents.git cd 12-factor-agents claudeLet Claude read it
Ask “/init” to generate a CLAUDE.md, then have Claude explain, run, or extend the codebase. It reads files on demand.
How to install 12-factor-agents in Claude DesktopDesktop app (MCP config)
Clone the repository
bashgit clone https://github.com/humanlayer/12-factor-agents.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install 12-factor-agents in CursorAI-first code editor
Clone & open in Cursor
bashgit clone https://github.com/humanlayer/12-factor-agents.gitIndex & chat
Open the folder — Cursor indexes it automatically. Use @Codebase in chat to ask about it or scaffold from it.
How to install 12-factor-agents in Codex CLIOpenAI coding agent
Clone
bashgit clone https://github.com/humanlayer/12-factor-agents.gitPoint Codex at it
Run codex in the repo root; add setup notes to AGENTS.md so the agent knows how to build & test.
How to install 12-factor-agents in WindsurfCodeium's agentic IDE
Clone & open
bashgit clone https://github.com/humanlayer/12-factor-agents.gitUse Cascade
Windsurf indexes the workspace; ask Cascade to explain or reuse modules from the repo.
How to install 12-factor-agents in ClineVS Code autonomous agent
Clone the repository
bashgit clone https://github.com/humanlayer/12-factor-agents.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
How to install 12-factor-agents in VS CodeCopilot / MCP support
Clone the repository
bashgit clone https://github.com/humanlayer/12-factor-agents.gitOpen in your AI editor
Open the folder in your assistant and ask it to index the codebase, then reference files in chat.
Documentation
Full README12-Factor Agents - Principles for building reliable LLM applications
*In the spirit of 12 Factor Apps*. *The source for this project is public at https://github.com/humanlayer/12-factor-agents, and I welcome your feedback and contributions. Let's figure this out together!*
[!TIP] Missed the AI Engineer World's Fair? Catch the talk here Looking for Context Engineering? Jump straight to factor 3 Want to contribute to npx/uvx create-12-factor-agent - check out the discussion thread
Hi, I'm Dex. I've been hacking on AI agents for a while.
I've tried every agent framework out there, from the plug-and-play crew/langchains to the "minimalist" smolagents of the world to the "production grade" langraph, griptape, etc.
I've talked to a lot of really strong founders, in and out of YC, who are all building really impressive things with AI. Most of them are rolling the stack themselves. I don't see a lot of frameworks in production customer-facing agents.
I've been surprised to find that most of the products out there billing themselves as "AI Agents" are not all that agentic. A lot of them are mostly deterministic code, with LLM steps sprinkled in at just the right points to make the experience truly magical.
Agents, at least the good ones, don't follow the "here's your prompt, here's a bag of tools, loop until you hit the goal" pattern. Rather, they are comprised of mostly just software.
So, I set out to answer:
### 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?
Welcome to 12-factor agents. As every Chicago mayor since Daley has consistently plastered all over the city's major airports, we're glad you're here.
*Special thanks to @iantbutler01, @tnm, @hellovai, @stantonk, @balanceiskey, @AdjectiveAllison, @pfbyjy, @a-churchill, and the SF MLOps community for early feedback on this guide.*
The Short Version: The 12 Factors
Even if LLMs continue to get exponentially more powerful, there will be core engineering techniques that make LLM-powered software more reliable, more scalable, and easier to maintain.
Excerpt — the full document is on GitHub.
More Prompts repositories
- Prompts122k
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI
Jupyter NotebookMITmicrosoft/generative-ai-for-beginners
- Prompts70k
system_prompts_leaks
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro, Antigravity. xAI - Grok, Grok Bot, Cursor, Kimi and more! Updated regularly.
PythonCC0-1.0asgeirtj/system_prompts_leaks
- Prompts62k
humanizer
Agent skill that removes signs of AI-generated writing from text
PythonMITblader/humanizer
- Prompts54k
academic-research-skills
Academic Research Skills for Claude Code: research → write → review → revise → finalize
PythonImbad0202/academic-research-skills
- Prompts52k
CL4R1T4S
LEAKED SYSTEM PROMPTS FOR CHATGPT, CLAUDE, GEMINI, GROK, PERPLEXITY, CURSOR, LOVABLE, REPLIT, AND MORE! - AI SYSTEMS TRANSPARENCY FOR ALL! 👐
AGPL-3.0elder-plinius/CL4R1T4S
- Prompts41k
awesome-copilot
Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.
JavaScriptMITgithub/awesome-copilot
Catalog data refreshed . Something wrong? Report it.