Your coding agents are capable of so much more—they just need an operating system. Introducing, Agent OS.
Agent OS transforms AI coding agents from confused interns into productive developers. With structured workflows that capture your standards, your stack, and the unique details of your codebase, Agent OS gives your agents the specs they need to ship quality code on the first try—not the fifth.
Stop wrestling with AI that writes the wrong code. Agent OS transforms coding agents from confused assistants into trusted developers who truly understand your codebase.
3 reasons why product teams use Agent OS:
Unlike basic AI setups, Agent OS provides three layers of context that work together:
The result: Agents write code that looks like you wrote it—first time, every time.
Agent OS replaces random prompting and circular rewrites with a proven workflow. It automatically:
The difference: Ship features faster with clear specs and completed tasks—not endless cycles of (re)explaining requirements and redoing work.
Agent OS is completely yours to shape. Define your own coding standards, write custom instructions, and adapt every workflow to match how your team operates. No rigid interfaces or prescribed processes—just markdown files you control. Works seamlessly with any AI tool or IDE you choose.
The relief: Your coding agent finally feels like a senior developer on your team—thinking your way, following your patterns, and shipping at your standards.
Agent OS works by layering context—just like you'd onboard a human developer. Each layer builds on the previous one, creating a complete picture of how you build software.
Your standards define how you build software. Your stack. Your opinions. Your style. Your priorities. The standards you expect everyone on your team to follow when building anything. These should include:
Your standards documentation lives on your system in ~/.agent-os/standards/...
and are referenced from every project, every codebase. Set once, use everywhere, override as needed.
At the product (codebase) layer, we document what it is we're building, why we're building it, who it's for, and the big-picture product roadmap. This includes:
Product documentation lives in your codebase (.agent-os/product/
) and give agents the full picture of your product.
Throughout your product's development, you'll create many specs. Each spec is a single feature or enhancement or fix, which typically represents a few hours or days of work (accellerated with the help of AI). Each spec will have its own requirements, technical specs, and tasks breakdown.
Individual feature specifications include:
Specs live in dated folders inside your codebase (.agent-os/specs/2025-12-19-user-auth/
) and guide agents through each spec's implementations.
With all three layers in place, your agent has everything it needs: how you build (Standards), what you're building (Product), and what to build next (Specs). No more confusion, no more rewrites—just clean, consistent code that looks like you wrote it.
Agent OS has a flexible two-part installation system:
See What Gets Installed Where? to understand the file structure.
The base installation sets up Agent OS centrally on your system. This is optional but recommended, as it maintains your default standards and instructions that projects will inherit from.
The recommendation location for your base installation is your system's home directory (~/.agent-os
).
However, you can choose another location for your base installation.
Agent OS with Claude Code
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --claude-code
Agent OS with Cursor
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --cursor
Agent OS with Claude Code & Cursor
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --claude-code --cursor
.agent-os/
folder in your chosen location (home directory or elsewhere).config.yml
file to track your Agent OS version and settings.~/.agent-os/setup/project.sh
.mkdir -p ~/.agent-os/standards/code-style
mkdir -p ~/.agent-os/instructions
Note: The ~/
refers to your home directory:
Mac/Linux: /Users/yourusername/
Windows: C:\Users\yourusername\
(or use %USERPROFILE%
in Command Prompt)
Copy the standards files to ~/.agent-os/standards/
:
Also copy the language-specific style guides to ~/.agent-os/standards/code-style/
:
Copy the instruction files to ~/.agent-os/instructions/
:
core/plan-product.md
core/create-spec.md
core/execute-tasks.md
core/execute-task.md
core/analyze-product.md
meta/pre-flight.md
Note: These instruction files work well as-is, but you're welcome to review and adjust them if needed.
Copy the commands files to ~/.agent-os/commands/
:
Upgrading from an earlier version? Follow these steps:
/instructions
, back them up now.
# Navigate to your home directory (or wherever you want the base installation)
cd ~
# Run with flags for your tools (adjust as needed):
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --overwrite-instructions --claude-code --cursor
~/.claude/commands
, remove them.
~/.agent-os/setup/project.sh
As Agent OS evolves, you may want to update your instruction files while preserving your custom standards. Use these flags with the install script:
This updates the instruction files to the latest versions while preserving your standards:
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --overwrite-instructions --claude-code --cursor
Adjust the flags based on which tools you use
This resets your standards files to the default templates. Warning: This will overwrite your customizations!
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --overwrite-standards --claude-code --cursor
Adjust the flags based on which tools you use
This updates everything to the latest version. Warning: This will overwrite all your customizations!
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --overwrite-instructions --overwrite-standards --claude-code --cursor
Adjust the flags based on which tools you use
Best Practice: Before updating standards files, back up your customizations so you can restore them after the update.
After installation, customize the standards files in ~/.agent-os/standards/
to match your preferences. These will be your defaults for all projects.
The installed files are templates - customize them to define your way of building software. Projects will copy these standards, which you can then customize per-project if needed.
After base installation is complete, you'll see your project installation command. Save this command - you'll use it to install Agent OS into each of your projects.
Each project gets its own self-contained Agent OS installation. This copies files from your base installation (if you have one) and sets up tool-specific commands.
Navigate to your project's root directory and run your project installation command:
# If your base installation is in your home directory:
~/.agent-os/setup/project.sh
# If installed elsewhere:
/path/to/agent-os/setup/project.sh
Your exact command was shown after base installation
You can install Agent OS directly into a project from GitHub:
# Choose based on your tools:
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/project.sh | bash -s -- --no-base --claude-code
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/project.sh | bash -s -- --no-base --cursor
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/project.sh | bash -s -- --no-base --claude-code --cursor
Note: You'll need to customize the standards folder manually
.agent-os/
folder in your project with instructions and standards.claude/commands/
folder.cursor/rules/
with Agent OS commandsBenefits of project installations:
If you work on different types of projects (e.g., Ruby on Rails, React, Python), you can define different sets of standards for each:
Your base installation includes a config.yml
file that defines project types like this:
project_types:
default:
instructions: ~/.agent-os/instructions
standards: ~/.agent-os/standards
# type_a:
# instructions: ~/.agent-os/project_types/type_a/instructions
# standards: ~/.agent-os/project_types/type_a/standards
# type_b:
# instructions: ~/.agent-os/project_types/type_b/instructions
# standards: ~/.agent-os/project_types/type_b/standards
default_project_type: default
To create custom project types:
mkdir -p ~/.agent-os/project_types/ruby-on-rails
cp -r ~/.agent-os/instructions ~/.agent-os/project-types/ruby-on-rails/
cp -r ~/.agent-os/standards ~/.agent-os/project-types/ruby-on-rails/
project_types:
default:
instructions: ~/.agent-os/instructions
standards: ~/.agent-os/standards
ruby-on-rails:
instructions: ~/.agent-os/project_types/ruby-on-rails/instructions
standards: ~/.agent-os/project_types/ruby-on-rails/standards
~/.agent-os/setup/project.sh --project-type=ruby-on-rails
default_project_type: ruby-on-rails
in config.yml
The new v1.4.0 structure separates base and project installations:
Base Installation (your system-wide defaults):
~/.agent-os/
├── config.yml # Tracks version, tools, and project types
├── standards/ # Your default standards
│ ├── tech-stack.md
│ ├── code-style.md
│ ├── best-practices.md
│ └── code-style/
│ └── [language]-style.md
├── instructions/ # Core Agent OS instructions
│ ├── core/
│ │ └── [instructions-files].md
│ └── meta/
│ ├── pre-flight.md
│ └── post-flight.md
├── commands/ # Commands (used for Claude Code & Cursor rules)
│ └── [command-files].md
├── claude-code/ # Claude Code specific files
│ └── agents/
│ └── [agent-files].md
└── setup/ # Installation scripts
├── base.sh
└── project.sh
Project Installation (self-contained in each project):
your-project/
├── .agent-os/ # Project's own Agent OS installation
│ ├── instructions/ # Copied from base (or defaults)
│ │ └── [same structure as base]
│ ├── standards/ # Copied from base (or project type)
│ │ └── [same structure as base]
│ ├── product/ # Created by plan-product command
│ ├── recaps/ # Created by execute-tasks command
│ └── specs/ # Created by create-spec command
├── .claude/ # If using Claude Code
│ ├── commands/ # Agent OS commands
│ │ └── [command-files].md
│ └── agents/ # Agent files
│ └── [agent-files].md
└── .cursor/ # If using Cursor
└── rules/
└── [command-files].mdc
Key difference in version 1.4+ from earlier versions: Each project is now self-contained with its own copy of instructions and standards. No more external references means more reliable performance and better team collaboration.
With Agent OS installed, you're ready to supercharge your AI coding workflow.
At a high level, there are 3 phases that come into play when you're building with Agent OS:
Using your base installation of Agent OS, you should customize your coding standards, style, best practices, and common tech stacks used on your projects.
After installing Agent OS in a project, use /plan-product
(for a new product) or /analyze-product
(for an existing codebase) to define the project's mission and roadmap.
Feature development with Agent OS involves a repeating workflow which follows this sequence of commands:
The main benefit of installing the base installation of Agent OS#base-installation, onto your system is it allows you to define your commonly used coding standards and best practices in one place. Then every time you run your project installer for Agent OS, it will copy those into your project (where you can customize them further, if you want).
This is how your coding agent follows your best practices and coding style with every single task it executes.
~/.agent-os/standards/tech-stack.md
Etc...
~/.agent-os/standards/code-style.md
Etc...
~/.agent-os/standards/best-practices.md
Etc...
💡 Pro tip: Be opinionated! The more specific your standards, the more consistent your agent's output.
First, install Agent OS into your project by following the project installation instructions
When beginning a new product, you can provide as much or as little detail as you want—though more detail leads to better results by using the /plan-product
command.
Installing Agent OS into an existing product that's midway through development? You'll want to use the /analyze-product command instead of the /plan-product
command.
/plan-product
I want to build a SaaS tool for tracking customer feedback
Key features: feedback collection, sentiment analysis, reporting dashboard
Target users: Product managers at B2B SaaS companies
Tech stack: Use my defaults
Note: When starting a new product, feel free to provide as much or as little detail in your initial prompt. You can even invoke the /plan-product
command with no other details and your agent will then prompt you for the specific details it needs to get started on your product's plan and roadmap.
Once your agent has collected the basic details it needs, it will:
.agent-os/product/
structureImportant: Review and edit the generated documentation to ensure it accurately reflects your vision and goals.
Have an existing codebase? No problem. Use the /analyze-product
command (instead of /plan-product
) to install Agent OS into your existing codebase.
/analyze-product
I want to install Agent OS in my existing codebase
Your agent will:
Important: Review the generated documentation carefully—your agent's analysis might miss nuances or business context that only you know.
Feature development with Agent OS involves a sequence of these commands:
Let's break down each step:
/create-spec
Let's add user authentication with email/password and OAuth
This will kick off the spec creation process, where your agent will:
Important: This is the most critical review point! Carefully examine the SRD, specs, and especially the task breakdown. Adjust anything that doesn't match your expectations before proceeding.
Specs live in: .agent-os/specs/2025-07-16-user-authentication/
Everything look good? You're ready to proceed to creating the tasks for this spec...
/create-tasks
Please create tasks for this spec
Your agent will:
Again: Give this tasks list a close review to ensure all the steps follow your spec, are in a logical order and everything looks as you'd expect.
Ready to go? Proceed with the /execute-tasks
command and specify which task(s) you want your agent to build.
/execute-tasks
Please execute all of the tasks for this spec
Your agent will proceed with
Note: Under the hood, the /execute-tasks
actually runs a series of several sub-processes (which you can inspect in your /instructions folder):
Agent OS gets better with use. Each spec teaches you something about your process, your preferences, and how to better guide your AI agents. Here's how to continuously improve your setup.
After each feature or spec, ask yourself:
tech-stack.md
- New tool preferences, version updatescode-style.md
- Formatting patterns, naming conventionsbest-practices.md
- Development philosophy, patterns to follow/avoid~/.agent-os/standards/code-style/
for each languagehtml-style.md
, javascript-style.md
, ruby-style.md
code-style.md
file
Remember: Your standards can (and should) live in both your base installation of Agent OS (typically in your system's home directory) and in your project's .agent-os/standards/
folder. The version in your base installation are the templates used when installing Agent OS into new projects. Any changes you make to your base installation will not automatically be used in your projects. You'd need to copy those updates into your project's standards files.
roadmap.md
- Adjust phases based on learningstech-stack.md
- Override global standards when neededIf working with a team:
Remember: Agent OS is a living system. The goal isn't perfection on day one—it's continuous improvement. Each refinement makes your agents more effective and your codebase more consistent.
Your Agent OS a year from now will be dramatically better than today's, shaped by real experience and tailored to exactly how you and your team work best.
While Agent OS's task execution process automatically updates your roadmap and prompts for decision updates, it's good practice to regularly:
Regular maintenance keeps your Agent OS aligned with your evolving project and team needs.
Remember: The best time to fix issues is during planning, not after code is written!
Agent OS is a system for better planning and executing software development tasks with your AI agents. It consists of a set of finely tuned instructions, commands, and specs that you and your team can dial in to ensure your agents build the right things, the right way—your way.
Agent OS is free and open source, created by Brian Casel, the creator of Builder Methods.
Agent OS goes a few steps further than surface-level commands and project notes. There 3 specific ways Agent OS is different:
For more, see Why Agent OS?
Spec-driven development is a software development methodology that emphasizes the use of specifications to guide the development process—particularly in the age of building with AI coding agents.
It is a way to ensure that the software is built the right way—your way.Agent OS is free and open source, created by Brian Casel (that's me!).
I'm the creator of Builder Methods, where I teach fellow software designers and developers how to leverage AI to build better products, faster. Get my free Builder Briefing newsletter to get my latest insights and updates to help you grow as a professional in the age of building with AI.
You can subscribe to my YouTube channel, and connect with me on X, Blusky.
Builder Methods, is where I (Brian Casel) teach fellow software designers and developers how to leverage AI to build better products, faster. Get my free Builder Briefing newsletter to get my latest insights and updates to help you grow as a professional in the age of building with AI.
Agent OS uses smart context management to optimize your agent's performance:
This means faster responses, better focus on the task at hand, and the ability to work with larger codebases without hitting context limits.
Yes! If you're using Claude Code, Agent OS automatically detects and uses specialized subagents for better performance:
These agents work seamlessly with Agent OS instructions, providing faster and more reliable execution while maintaining full compatibility for users of other AI tools.
Absolutely!
Agent OS can be installed and adapted no matter which AI coding tool(s) you use. See the section on installing Agent OS in your tools for more details.
Yes — Coaching and courses for teams and individuals looking to get the most out of Agent OS, taught by me, Brian Casel (the creator of Agent OS).
Click here to learn more and inquire.
My best free training and resources are available through my Builder Briefing newsletter. You can also subscribe to my YouTube channel where I regularly release build-with-AI tutorials.
You'll also find just-in-time courses and coaching packages available from Builder Methods, here.
I'm happy to help! Shoot me (Brian Casel) an email using the form here.
Created by Brian Casel (that's me). I'm a career software developer, founder, and creator of Builder Methods and the Agent OS system for building with AI.