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.
This is an enhanced fork of the original Agent OS by Builder Methods. We're building on Brian Casel's excellent foundation to add:
- 🤖 Native Claude Code Agents: Builder Methods' 5 specialized agents integrated directly with Claude Code
- Background Task Management: Run development tasks (builds, tests, servers) in background without blocking AI workflows
- GitHub Issues Workflow Enforcement: Strict requirement for issue-based development with automated tracking
- Enhanced CLI Tools: Unified
aoscommand with comprehensive project management and task monitoring - Tab Indentation: Preference for tabs over spaces in all generated code
- Python/React Stack Defaults: Updated tech stack templates for Python backend (FastAPI/Django) and React frontend development
- Enhanced Workflow Automation: Additional hooks and integrations for Claude Code and other AI assistants
- Improved Error Handling: More robust workspace hygiene checks and recovery mechanisms
All core Agent OS functionality remains intact, with these enhancements making it even more powerful for professional development teams.
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.
# Installs to ~/.agent-os/ (your home directory)
curl -sSL https://raw.githubusercontent.com/carmandale/agent-os/main/setup.sh | bashThis installs the Agent OS framework globally in your system.
# Navigate to your project directory
cd ~/Projects/YourProject
# Initialize Agent OS for this project
aos init
# Choose your AI assistant:
# - Claude Code
# - Cursor
# - BothThis creates .agent-os/ in your project with product documentation structure.
In Claude Code:
/plan-product- Start with a new product/analyze-product- Start with existing code/create-spec- Plan a new feature/execute-tasks- Build and ship code/hygiene-check- Validate workspace hygiene before executing/update-documentation- Audit documentation drift/workflow-status- Check workflow health before starting new work/workflow-complete- Complete and integrate all workflow steps
In Cursor:
@plan-product- Start with a new product@analyze-product- Start with existing code@create-spec- Plan a new feature@execute-tasks- Build and ship code@hygiene-check- Validate workspace hygiene before executing@update-documentation- Audit documentation drift@workflow-status- Check workflow health before starting new work@workflow-complete- Complete and integrate all workflow steps
In Codex CLI:
/plan-product- Start with a new product session/analyze-product- Start with existing code/create-spec- Plan a new feature/execute-tasks- Build and ship code/hygiene-check- Validate workspace hygiene before executing/update-documentation- Audit documentation drift/workflow-status- Check workflow health before starting new work/workflow-complete- Complete and integrate all workflow steps
- REPO (
~/Projects/agent-os/) - The source code repository - SYSTEM (
~/.agent-os/) - Your installed framework - PROJECT (
YourProject/.agent-os/) - Project-specific configuration
See docs/ARCHITECTURE.md for detailed explanation.
The aos command manages your Agent OS installation:
# Check status and updates
aos status
# Update Agent OS framework
aos update
# Initialize a project
aos init
# Run background tasks
aos run "npm run dev"
# List running tasks
aos tasks
# Monitor task output
aos monitor <task-id>
# View logs
aos logs <task-id>
# Stop a task
aos stop <task-id># For Claude Code
curl -sSL https://raw.githubusercontent.com/carmandale/agent-os/main/setup-claude-code.sh | bash
# For Cursor
curl -sSL https://raw.githubusercontent.com/carmandale/agent-os/main/setup-cursor.sh | bash
# For Codex CLI prompts (installed via setup.sh)
CODEX_HOME=${CODEX_HOME:-~/.codex} ./setup.sh --overwrite-instructions --overwrite-standards
# Use --skip-codex-commands if Codex isn't required on this machine.- Builder Methods Architecture: 5 specialized agents integrated with Claude Code
context-fetcher: Intelligent codebase search and documentation retrievaldate-checker: Accurate system date determination for specsfile-creator: Template-based file generation from structured specsgit-workflow: Complete git operations and GitHub integrationtest-runner: Multi-framework test execution across languages
- Native Integration: Uses Claude Code's built-in agent system via
subagent=attributes - Automatic Invocation: Agents triggered automatically during workflow execution
- Zero Configuration: Installed to
~/.claude/agents/and work immediately
- Non-blocking development: Keep working while builds/tests run
- Task monitoring: Real-time log viewing and process management
- Error debugging: Automatic detection and troubleshooting
- Unified CLI: All functionality through single
aoscommand
- Product Planning: Initialize projects with mission, roadmap, and tech stack
- Feature Specification: Create detailed specs with tasks and acceptance criteria
- Task Execution: TDD-focused implementation with quality gates
- Git Integration: Automatic PR creation with issue linking
- Workflow Enforcement: Hooks prevent incomplete work and ensure testing
- Reality Checking: Validation of task status against actual implementation
- Testing Requirements: Mandatory verification before completion claims
-
Evidence-Based Development (Anti-Fabrication)
- Evidence Guard CI (
.github/workflows/evidence-guard.yml) blocks PRs that claim completion without an "Evidence/Test Results/Verification" section. scripts/testing-enforcer.shscans PR bodies for completion language and requires concrete proof (test output, screenshots, command results).
- Evidence Guard CI (
-
No-Quick-Fixes Policy Enforcement
- Quick Fix Guard CI (
.github/workflows/quickfix-guard.yml) flags PRs that attempt shortcuts without explicit approval and scope. instructions/core/execute-task.mdincludes a<quick_fix_gate>to prevent roadmap-bypassing work.
- Quick Fix Guard CI (
-
Context-Aware Workflow Enforcement (Spec #22)
scripts/intent-analyzer.shclassifies intent (maintenance vs new work).scripts/workspace-state.shprovides TTL-cached git/PR state.scripts/context-aware-wrapper.shallows maintenance with a dirty workspace, blocks new work until hygiene is clean; supports override viaAGENT_OS_NEW_WORK=1.
-
Project Configuration Memory (Spec #12)
scripts/config-resolver.pyresolves ports/package managers from.agent-os/product/tech-stack.md,.env,.env.local,start.shwith precedence.scripts/session-memory.shcaches and exports config with TTL/mtime invalidation.scripts/config-validator.shandscripts/pre-command-guard.shvalidate upcoming commands against project config.
-
Instruction Structure & Orchestrator Updates
- Reintroduced
instructions/core/andinstructions/meta/as single source of truth; XML tag structure for machine-readable execution. instructions/core/execute-tasks.mdnow includes a mandatory Phase 0 Repository Discovery Gate and stricter quality/PR evidence requirements; single-task flow is handled byinstructions/core/execute-task.md.
- Reintroduced
-
CLI Versioning & Status
- Canonical version file is
~/.agent-os/VERSION(uppercase).aos statuscompares local vs remote and reports currency.
- Canonical version file is
Why these changes: to stop fabricated success claims, prevent shortcuts that diverge from the roadmap, maintain consistent project config mid-session, and enforce senior-style discovery before building. These guardrails significantly improve reliability and trust.
Docs, installation, useage, & best practices 👉 It's all here
# Documentation updater - detects drift and provides actionable recommendations
/update-documentation # Default: dry-run mode for safe operation
/update-documentation --dry-run # Quick health check of recent activity
/update-documentation --deep # Comprehensive audit of all Agent OS docs
/update-documentation --diff-only # Show only git diff without analysis
/update-documentation --create-missing # Create minimal scaffolds for missing docs
# Features:
# - Detects missing CHANGELOG entries for recent commits
# - Identifies open issues without corresponding specs
# - Validates file references in documentation
# - Cross-references specs with GitHub issues
# - Checks roadmap completion status
# - Evidence-based operation only (no fabrication)
# Install via: curl -sSL https://raw.githubusercontent.com/carmandale/agent-os/main/setup-claude-code.sh | bashCreated by Brian Casel, the creator of Builder Methods, where Brian helps professional software developers and teams build with AI.
Get Brian's free resources on building with AI: