Stop prompting AI coding agents like it's 2024

Your coding agents are capable of so much more—they just need an operating system. Introducing, Agent OS.

A system to make AI coding agents build your way, not their way.

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.

Use it with:

Claude Code, Cursor, or any other AI coding tool.
New products or established codebases.
Big features, small fixes, or anything in between.
Any language or framework.

Why use Agent OS?

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:

1
Complete context, not just prompts

Unlike basic AI setups, Agent OS provides three layers of context that work together:

  • Standards - Your coding style, tech stack, and best practices
  • Product - Your mission, architecture, roadmap, and decisions
  • Specs - Detailed plans & tasks for each feature implementation

The result: Agents write code that looks like you wrote it—first time, every time.

2
Structured development, not chaos

Agent OS replaces random prompting and circular rewrites with a proven workflow. It automatically:

  • Writes comprehensive specs before coding begins
  • Breaks features into trackable, TDD-focused tasks
  • Documents key decisions as they happen
  • Updates your roadmap as features ship

The difference: Ship features faster with clear specs and completed tasks—not endless cycles of (re)explaining requirements and redoing work.

3
Your standards, your way

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.

The Three Layers of Context

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.

Agent OS - 3 layers of context

Layer 1
Your standards

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:

  • Tech Stack — Your default frameworks, libraries, and tools
  • Code Style — Your formatting rules, naming conventions, and preferences
  • Best Practices — Your development philosophy (e.g., TDD, commit patterns, etc.)

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.

Layer 2
Your product

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:

  • Mission — What you're building, for whom, and why it matters
  • Roadmap — Features shipped, in progress, and planned
  • Decisions — Key architectural and technical choices (with rationale)
  • Product-specific stack — The exact versions and configurations for this codebase

Product documentation lives in your codebase (.agent-os/product/) and give agents the full picture of your product.

Layer 3
Your specs

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:

  • SRD (Spec Requirements Document) — Goals for the feature, user stories, success criteria
  • Technical Specs — API design, database changes, UI requirements
  • Tasks Breakdown — Trackable step-by-step implementation plan with dependencies

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.

Install Agent OS

Agent OS has a flexible two-part installation system:

  1. Base Installation
    Install Agent OS centrally on your system
    Optional but recommended - maintains your standards and instructions
  2. Project Installation
    Install Agent OS into each project you work on
    Self-contained setup with project-specific customizations

Agent OS - Installation

See What Gets Installed Where? to understand the file structure.


1
Base Installation

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.

Navigate to your home folder (or other location)

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.

Choose your installation based on which tools you use:

Agent OS with Claude Code

Copy
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --claude-code

Agent OS with Cursor

Copy
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --cursor

Agent OS with Claude Code & Cursor

Copy
curl -sSL https://raw.githubusercontent.com/buildermethods/agent-os/main/setup/base.sh | bash -s -- --claude-code --cursor
What the base installation does...
Prefer manual installation?
Follow these instructions instead...
Update instructions
How to update your Agent OS files...

Important
Customize your base standards

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.


2
Project Installation

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.

If you have a base installation:

Navigate to your project's root directory and run your project installation command:

Copy
# 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

Without a base installation:

You can install Agent OS directly into a project from GitHub:

Copy
# 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

What the project installation does...

Benefits of project installations:

  • More reliable - no external file references
  • Team-friendly - commit to Git for shared access
  • Customizable - adjust standards per project
  • Portable - works anywhere without system dependencies

Project Types (Optional)

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:

Copy
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:

  1. Create a project type folder in your base installation:
    Copy
    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/
  2. Customize the standards and instructions in that folder for your specific project type
  3. Update config.yml in your base installation to uncomment and modify the example:
    Copy
    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
  4. Use when installing into a project:
    Copy
    ~/.agent-os/setup/project.sh --project-type=ruby-on-rails
  5. Optional: Set as your default by updating default_project_type: ruby-on-rails in config.yml

What Gets Installed Where?

The new v1.4.0 structure separates base and project installations:

Base Installation (your system-wide defaults):

Copy
~/.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):

Copy
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.

Using Agent OS

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:

1
Define your standards

Using your base installation of Agent OS, you should customize your coding standards, style, best practices, and common tech stacks used on your projects.

More on defining standards

2
Initiate a project

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.

More on planning your product

3
Plan & build features

Feature development with Agent OS involves a repeating workflow which follows this sequence of commands:

  1. /create-spec - Create the detailed spec for this feature.
  2. /create-tasks - Create a tasks list based on the feature spec.
  3. /execute-tasks - Proceed with implementation of 1 or several tasks.

More on feature development


Defining Your Standards

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.

Edit your tech stack
~/.agent-os/standards/tech-stack.md
Edit your code style
~/.agent-os/standards/code-style.md
Edit your best practices
~/.agent-os/standards/best-practices.md

💡 Pro tip: Be opinionated! The more specific your standards, the more consistent your agent's output.


Starting a New Product

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.

Copy
/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:

  • ✅ Create .agent-os/product/ structure
  • ✅ Generate mission.md with product vision
  • ✅ Create a 5-phase roadmap
  • ✅ Set up your preferred tech stack

Important: Review and edit the generated documentation to ensure it accurately reflects your vision and goals.


Adding Agent OS to Existing Products

Have an existing codebase? No problem. Use the /analyze-product command (instead of /plan-product) to install Agent OS into your existing codebase.

Copy
/analyze-product

I want to install Agent OS in my existing codebase

Your agent will:

  • 🔍 Analyze your current code structure
  • 📊 Detect your tech stack and patterns
  • 📝 Create documentation reflecting what's already built
  • ✅ Add completed features to "Phase 0" in the roadmap

Important: Review the generated documentation carefully—your agent's analysis might miss nuances or business context that only you know.


Plan & build a feature

Feature development with Agent OS involves a sequence of these commands:

  1. /create-spec - Create the detailed spec for this feature.
  2. /create-tasks - Create a tasks list based on the feature spec.
  3. /execute-tasks - Proceed with implementation of 1 or several tasks.

Let's break down each step:


Create a spec

Copy
/create-spec

Let's add user authentication with email/password and OAuth

This will kick off the spec creation process, where your agent will:

  • 📋 Create a Spec Requirements Document (SRD)
  • 🔧 Write technical specifications
  • 💾 Design database schemas (if needed)
  • 🔌 Document API endpoints (if needed)

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 a tasks list

Copy
/create-tasks

Please create tasks for this spec

Your agent will:

  • Create a tasks.md file in your spec folder for this feature.
  • Create a numbered checklist with parent tasks and sub-tasks
  • Follow a TDD (test-driven-development) approach when designing the task list and execution order.

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 (start coding!)

Copy
/execute-tasks

Please execute all of the tasks for this spec

Your agent will proceed with

  • Implement every task, in order
  • Delegate to subagents for some steps (if using Claude Code)
  • Write and run tests
  • Mark tasks as completed
  • Update your product's roadmap if milestones have been completed
  • Document a recap of what was done and store this in .agent-os/recaps
  • Commit to git

Note: Under the hood, the /execute-tasks actually runs a series of several sub-processes (which you can inspect in your /instructions folder):

  1. /execute-tasks - The main process you called
  2. /execute-task - Runs this on a loop for the implementation of each individual task (and it's sub-tasks).
  3. /post-execution-tasks - Finalizing, commiting to git, updating task list and roadmap, documenting the recap, delivering the final report to you.

Refining Your Agent OS

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.


The Refinement Loop

After each feature or spec, ask yourself:

  1. What worked well?
    Patterns to document and repeat
  2. What needed correction?
    Gaps in your standards or instructions
  3. What surprised you?
    Unexpected approaches that might be worth adopting

Common Refinements

After Your First Project

  • Add specific examples to code-style.md based on actual code
  • Update best-practices.md with patterns you had to correct
  • Clarify any tech stack choices that caused confusion

After Code Reviews

  • Notice yourself making the same corrections? Add them to standards
  • Find a pattern you love? Document it so agents use it consistently
  • Spot anti-patterns? Add them to best-practices.md with clear "don't do this" examples

After Team Feedback

  • Incorporate team preferences into your standards
  • Add team-specific workflows to best-practices.md
  • Document naming conventions everyone agrees on

Where to Make Updates

Standards Files

  • tech-stack.md - New tool preferences, version updates
  • code-style.md - Formatting patterns, naming conventions
  • best-practices.md - Development philosophy, patterns to follow/avoid

Code Style Organization (For language-specific rules)

  • Create separate files in ~/.agent-os/standards/code-style/ for each language
  • Examples: html-style.md, javascript-style.md, ruby-style.md
  • Reference them conditionally in your main code-style.md file
  • This keeps context lean—agents only load styles relevant to current work

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.

Product Files (Product-specific)

  • roadmap.md - Adjust phases based on learnings
  • tech-stack.md - Override global standards when needed

Making Refinements Stick

Be Specific

  • ❌ "Write better tests"
  • ✅ "Write integration tests first, then unit tests. Mock external services using [specific pattern]"

Show, Don't Just Tell

  • Include code examples in your standards
  • Show both good and bad patterns
  • Explain why one approach is preferred

Version Your Changes

  • Update version numbers when making significant changes
  • Keep a brief changelog at the bottom of modified files
  • This helps track what changed and when

Team Refinement

If working with a team:

  1. Schedule Regular Reviews
    Monthly or after major features
  2. Collect Patterns
    What is everyone correcting in code reviews?
  3. Reach Consensus
    Agree on patterns before adding to standards
  4. Share Updates
    Ensure everyone updates their local Agent OS files

Signs You Need Refinement

  • You're making the same corrections repeatedly
  • Agents consistently miss certain patterns
  • Code reviews reveal style inconsistencies
  • New team members point out unclear conventions
  • You discover better patterns worth standardizing

The Long Game

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.

Best Practices

While Agent OS's task execution process automatically updates your roadmap and prompts for decision updates, it's good practice to regularly:

  1. Review and refine your standards
    As you see patterns in code reviews, update your standards files
  2. Regularly review roadmap.md
    Ensure it reflects actual progress and priorities
  3. Update decisions.md
    Document important choices that affect future development
  4. Refine best-practices.md
    Add patterns that help your agent think like you think

Regular maintenance keeps your Agent OS aligned with your evolving project and team needs.


Tips for Success

Review Plans Carefully

  • The planning phase is crucial—invest time here to save time later
  • Review the PRD and task breakdown before execution
  • Ask your agent to adjust plans if something doesn't look right
  • Ensure you're aligned on the approach before coding begins

Start Small

  • Don't try to document everything at once
  • Begin with basic standards, refine as you go

Be Specific

  • "Use PostgreSQL" → "Use PostgreSQL 15+ with schemas for multi-tenancy"
  • "Write tests" → "Write unit tests first, aim for 80% coverage"

Trust the Process

  • Let your agent own entire features, not just snippets
  • Review and refine rather than micromanage

Know When to Start Fresh

  • Not happy with the implementation? It's often better to revert and redo with better planning
  • Don't ask your agent to fix incorrectly implemented code—start clean with refined specs
  • A clear redo usually beats incremental fixes

Troubleshooting

Agent not following your style?

  • Check your standards files are specific enough
  • Add examples to code-style.md
  • Update best-practices.md with clear dos and don'ts

Tasks too big or too small?

  • This is a planning issue—catch it early!
  • During create-spec, review the task breakdown carefully
  • Ask your agent to adjust: "Can you break task 3 into smaller sub-tasks?"
  • Or: "Tasks 2 and 3 should be combined"

Wrong technical approach?

  • Review technical specs during the planning phase
  • Don't wait until code is written to course-correct
  • Say: "I'd prefer we use [different approach] for this"
  • Update tech-stack.md, decisions.md, or best-practices.md to prevent future issues
  • Best-practices.md is especially important—it teaches your agent to think like you

Remember: The best time to fix issues is during planning, not after code is written!

FAQ

What is Agent OS?
What makes Agent OS different?
What is 'spec-driven development'?
Is Agent OS free?
Who created Agent OS?
What's Builder Methods?
How does Agent OS manage context efficiently?
Does Agent OS support Claude Code's specialized agents?
I don't use Claude Code or Cursor. Can I still use Agent OS?
Is support or coaching available for me or my team?
How can I learn more about building with AI?
I have more questions!
Builder Methods

Training for pro software developers building with AI.

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.

© 2025 CasJam Media, LLC / Builder Methods
Contact