This is a fork of Agent OS (https://github.com/CaptainCodeAU/agent-os forked from https://github.com/buildermethods/agent-os) for core development and enhancement.
Agent OS is a framework for spec-driven agentic development that transforms AI coding agents into productive developers through structured workflows, standards, and specifications.
You're improving Agent OS itself - the framework that gets installed into other projects.
- You're improving Agent OS itself, not just using it
- This is a template/framework repository, not an application codebase
- Changes here affect how Agent OS works for all users
- Workflows, standards, and agents are the product
agent-os/
├── config.yml # Version & configuration
├── profiles/ # Profile templates (default, custom)
│ └── default/
│ ├── agents/ # 8 Claude Code subagents
│ ├── commands/ # Slash commands (single/multi-agent)
│ ├── workflows/ # Step-by-step instructions
│ └── standards/ # Coding standards
├── scripts/ # Installation & management
└── .claude-workspace/ # Your dev workspace (gitignored)
For detailed architecture: See .claude/context/agent-os-architecture.md
Configuration in ~/.zshrc:
eval "$(zoxide init zsh --cmd cd)"✅ ALWAYS USE:
__zoxide_cd /path/to/directory❌ NEVER USE:
cd /path/to/directory # Reserved for user
z /path/to/directory # Reserved for userWhy: Uses the actual shell builtin cd command, avoids conflicts with zoxide's behavior.
Never commit directly to:
main,master,develop,production,staging
Always create a feature branch:
# For new features
git checkout -b feature/new-subagent
git checkout -b feature/workflow-enhancement
# For bug fixes
git checkout -b bugfix/template-compilation
git checkout -b bugfix/script-error
# For documentation
git checkout -b docs/workflow-guide
# For standards
git checkout -b standards/python-testing
# For profiles
git checkout -b profiles/django-profile
# For chores
git checkout -b chore/refactor-scripts- Read files and explore
- Run read-only git commands
- Switch branches
- Create files in
.claude-workspace/(gitignored)
- Modify workflow/standard/agent files
- Edit scripts or config.yml
- Install packages
Prefer rebase for clean linear history:
# After completing work on feature branch
git checkout main
git rebase feature/your-feature
git push origin main
# Delete feature branch
git branch -d feature/your-featureWhy rebase?
- Creates linear, clean history
- Easier to understand chronological changes
- No merge commits cluttering the log
- Simpler to cherry-pick or revert changes
When to use merge:
- Syncing with upstream (see below)
- Long-lived branches with complex history
Option A: Match Upstream
git commit -m "Add Python testing standards to default profile
- Create standards/testing/python-testing.md
- Include pytest conventions"Option B: Conventional Commits (Recommended)
git commit -m "feat(standards): Add Python testing standards
- Create standards/testing/python-testing.md
- Include pytest conventions"Types: feat, fix, docs, refactor, test, chore, standards, workflows, agents, profiles, scripts
Scopes: (workflows), (standards), (agents), (commands), (scripts), (profiles), (config)
# Analyze and document
"Analyze [component] and save to .claude-workspace/analysis/[name].md"
# Research patterns
"Find all [pattern] and document in .claude-workspace/references/[name].md"# Design new feature
"Design [feature] and save to .claude-workspace/planning/[name].md"# Create branch
git checkout -b feature/[name]
# Implement
"Create profiles/default/workflows/[name].md following existing patterns"
# For agents: create both single-agent and multi-agent variants
# For workflows: ensure clear steps and constraints
# For standards: organize by category (global/, frontend/, backend/, testing/)# Test compilation
~/agent-os/scripts/project-install.sh --dry-run
# Test in real project
__zoxide_cd ~/test-project
~/agent-os/scripts/project-install.sh
# Document results
"Save test results to .claude-workspace/progress/YYYY-MM-DD-[name].md"# Review
git status
git diff
# Commit
git add [files]
git commit -m "type(scope): description"
# Push
git push origin feature/[name]gh pr create --title "type: description" --body "## Summary
[What this does]
## Changes
- [List changes]
## Test Plan
- [How tested]
## Breaking Changes
[None or describe]"Three-tier architecture:
- Base Installation (
~/agent-os/) - On your machine, source of truth - Profiles (
profiles/[name]/) - Templates for different project types - Project Installation - Copies profile into project's codebase
For details: See .claude/context/profile-system.md
Files use template tags that compile during installation:
{{workflows/path/file}}- Injects workflow content{{standards/*}}- Injects all standards{{UNLESS flag}}...{{ENDUNLESS flag}}- Conditional blocks
Important: Template tags compile once during installation, not dynamically.
For details: See .claude/context/template-system.md
Multi-Agent Mode (Claude Code):
- Commands in
.claude/commands/agent-os/ - Delegates to specialized subagents
- Better context efficiency
Single-Agent Mode (Cursor/Windsurf):
- Commands in
agent-os/commands/ - Main agent executes everything
- Lower token usage
You must maintain BOTH modes when adding features.
For details: See .claude/context/agent-modes.md
Before planning a fix or feature, you can research GitHub issues systematically with /research-issue.
Purpose: Systematic GitHub issue analysis
Outputs: .claude-workspace/research/issues/{ISSUE_NUMBER}-{title}.md
When to use: Before planning, to deeply understand an issue
Features:
- Fetches issue details from GitHub via
ghCLI - Analyzes codebase for related files and patterns
- Identifies root causes with confidence levels
- Proposes multiple solution approaches with tradeoffs
- Generates comprehensive task analysis documentation
Next steps after research:
- Use
/shape-specfor significant features - Use
/write-specif requirements are clear - Or proceed directly to implementation if straightforward
- plan-product - Mission, roadmap, tech stack
- shape-spec - Requirements gathering
- write-spec - Formal specification
- create-tasks - Task breakdown
- implement-tasks - Implementation
- orchestrate-tasks - Multi-agent orchestration
For details: See .claude/context/development-phases.md
Structure:
- Core Responsibilities
- Workflow (numbered steps)
- Important Constraints
- Success Criteria
When modifying:
- Understand purpose and usage
- Test current version
- Make changes on feature branch
- Test both agent modes
- Update CHANGELOG.md
For patterns: See .claude/context/workflow-patterns.md
Organization:
global/- Universal (tech-stack, coding-style, conventions)frontend/- Frontend-specific (components, css, responsive)backend/- Backend-specific (api, models, queries)testing/- Test standards
For details: See .claude/context/standards-structure.md
Frontmatter format:
---
name: agent-name
description: Use proactively to [purpose]
tools: Write, Read, Bash, WebFetch
color: purple
model: inherit
---The 8 specialized agents: product-planner, spec-initializer, spec-shaper, spec-writer, spec-verifier, tasks-list-creator, implementer, implementation-verifier
For patterns: See .claude/context/agent-patterns.md
Key scripts:
common-functions.sh- Shared utilitiesbase-install.sh- Base installationproject-install.sh- Project installationproject-update.sh- Project updatescreate-profile.sh- Profile creation
For architecture: See .claude/context/script-architecture.md
~/agent-os/scripts/project-install.sh --dry-run# In test project
__zoxide_cd ~/test-project
~/agent-os/scripts/project-install.sh
"/[command-name]"# Multi-agent mode
~/agent-os/scripts/project-install.sh --use-claude-code-subagents true
# Single-agent mode
~/agent-os/scripts/project-install.sh --use-claude-code-subagents falseconfig.yml controls behavior:
version: 2.1.1 # Current version
profile: default # Default profile
claude_code_commands: true # Install to .claude/commands/
agent_os_commands: false # Install to agent-os/commands/
use_claude_code_subagents: true # Enable subagent delegation
standards_as_claude_code_skills: false # Use Skills vs injectionFor full details: See .claude/context/configuration-system.md
- Template tags compile once - Not dynamic, requires project update
- Profiles are copied - Project installations are self-contained
- Both agent modes must work - Test single-agent and multi-agent
- Standards injection varies - Depends on
standards_as_claude_code_skillsflag - Bash scripts use
set -e- Handle errors explicitly
# Research GitHub issue (Phase 0 - Optional)
/research-issue
# Development phases
/plan-product # Phase 1: Product Planning
/shape-spec # Phase 2: Requirements Gathering
/write-spec # Phase 3: Formal Specification
/create-tasks # Phase 4: Task Breakdown
/implement-tasks # Phase 5: Implementation
/orchestrate-tasks # Phase 6: Multi-agent Orchestration# Navigate
__zoxide_cd ~/projects/agent-os
# Branch
git checkout -b feature/new-feature
# Test
~/agent-os/scripts/project-install.sh --dry-run
# Commit
git commit -m "feat(scope): description"
# PR
gh pr create --title "feat: description"
# Sync upstream
git fetch upstream
git merge upstream/mainconfig.yml- ConfigurationCHANGELOG.md- Update this!profiles/default/- Default templatesscripts/common-functions.sh- Shared functions
{{workflows/path/file}}- Inject workflow{{standards/*}}- Inject standards{{UNLESS flag}}...{{ENDUNLESS flag}}- Conditional
For deeper information, see .claude/context/:
- agent-os-architecture.md - Complete architecture overview
- profile-system.md - Three-tier installation model
- template-system.md - How template compilation works
- agent-modes.md - Multi-agent vs single-agent details
- development-phases.md - The 6 phases explained
- workflow-patterns.md - Workflow structure and patterns
- standards-structure.md - Standards organization
- agent-patterns.md - Agent definition patterns
- script-architecture.md - Script functions and usage
- configuration-system.md - Config flags and hierarchy
To read a detailed doc:
"Read .claude/context/[topic].md and explain [specific aspect]"
.claude-workspace/ # Gitignored - your dev space
├── analysis/ # Understanding Agent OS
├── planning/ # Feature designs
├── progress/ # Development logs
├── research/ # Research notes
├── references/ # Quick references
└── templates/ # Experimental templates
# Add upstream (once)
git remote add upstream https://github.com/buildermethods/agent-os.git
# Fetch and merge
git fetch upstream
git checkout main
git merge upstream/main
git push origin main- Read
.claude/context/docs for details - Analyze in
.claude-workspace/analysis/ - Review CHANGELOG.md for evolution
- Check
.claude-workspace/references/ - Review similar features
- Test in isolation
- Document in
.claude-workspace/progress/
- Review upstream commits
- Follow their conventions
- Test thoroughly
- Focus on value
You're contributing to Agent OS core - improving the framework itself.
Your workflow:
- Understand →
.claude-workspace/analysis/ - Plan →
.claude-workspace/planning/ - Branch →
feature/your-feature - Implement → Profiles, scripts, config
- Test → Both modes, compilation
- Document → CHANGELOG.md, progress logs
- Commit → Clear messages
- PR → Your main, then upstream
Remember:
- Use
__zoxide_cdfor navigation - Protected main branch
- Test both agent modes
- Verify template compilation
- Update CHANGELOG.md
- Read
.claude/context/docs for details
Ready to improve Agent OS! 🚀