Complete guide for using atomic-claude to build software projects with AI assistance.
Version: 2.0 Last Updated: 2026-02-07
- Introduction
- Installation
- Quick Start
- Configuration
- Running Phases
- Phase Overview
- Monitoring Progress
- Resuming & Backtracking
- Troubleshooting
- FAQ
- Best Practices
Atomic Claude 2.0 is an AI-assisted SDLC (Software Development Life Cycle) pipeline that guides you through building complete software projects from requirements gathering to deployment preparation.
- Phase 0: Setup - Configure project, API keys, and environment
- Phase 1: Discovery - Gather requirements, select approach
- Phase 2: PRD - Generate Product Requirements Document
- Phase 3: Tasking - Break down work into tasks
- Phase 4: Specification - Create technical specifications
- Phase 5: Implementation - Generate code
- Phase 6: Code Review - Automated code review
- Phase 7: Integration - Integration testing
- Phase 8: Deployment Prep - Deployment artifacts
- Phase 9: Release - Release documentation
- Automated Task Execution - AI-driven task completion
- State Persistence - Resume anytime, never lose progress
- Multi-Provider Support - Claude, Ollama, AWS Bedrock, OpenAI
- Cost Optimization - Route tasks to optimal LLM provider
- Real-Time Dashboard - Monitor progress visually
- Clean Organization - Enforced directory structure
- Git Integration - Automatic commit prompts
- Python 3.10+
- Git
- Claude CLI (for Claude providers)
- Ollama (optional, for local LLM)
- jq (JSON processor)
Choose one provider:
Option 1: Claude Code (Subscription)
# Install via Homebrew (macOS)
brew install --cask claude
# Or download from https://claude.ai/downloadOption 2: Anthropic API
# Set API key
export ANTHROPIC_API_KEY=sk-ant-...Option 3: AWS Bedrock
# Configure AWS credentials
aws configure
# Set region
export AWS_REGION=us-gov-west-1Option 4: Ollama (Local)
# Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
# Pull models
ollama pull mistral
ollama pull llama3
# Start server
ollama serve# Clone repository
git clone https://github.com/yourusername/atomic-claude.git
cd atomic-claude
# Install dependencies
pip install -r requirements.txt
# Verify installation
python main.py --help# Create project directory
mkdir my-project
cd my-project
# Initialize atomic-claude
git clone https://github.com/yourusername/atomic-claude.git ATOMIC-CLAUDE
# Create project structure
mkdir -p src tests docsCreate .env file:
# Copy example
cp ATOMIC-CLAUDE/.env.example ATOMIC-CLAUDE/.env
# Edit with your settings
vim ATOMIC-CLAUDE/.envMinimum configuration:
# Choose provider: max, api, ollama, bedrock
CLAUDE_PROVIDER=max
# Choose model: opus, sonnet, haiku
CLAUDE_MODEL=sonnet
# API key (if using 'api' provider)
# ANTHROPIC_API_KEY=sk-ant-...
# Network mode: cui (no internet), internet (full access)
ATOMIC_NETWORK_MODE=cuicd ATOMIC-CLAUDE
python main.py run 0This will:
- Collect project configuration
- Validate API keys
- Scan reference materials
- Set up environment
# Run each phase in order
python main.py run 1 # Discovery
python main.py run 2 # PRD
python main.py run 3 # Tasking
# ... and so onAtomic Claude uses multiple configuration sources:
- Environment Variables (
.env) - CLI Arguments
- Phase 0 Outputs (
.outputs/0-setup/) - Config Files (
config/models.json)
Highest to lowest:
- CLI arguments
- Environment variables
.envfile- JSON config files
- Defaults
Set in Phase 0, stored in .outputs/0-setup/project-config.json:
{
"project": {
"name": "my-project",
"type": "web-application",
"description": "Project description",
"version": "0.1.0"
}
}# Provider (max, api, ollama, bedrock)
CLAUDE_PROVIDER=max
# Primary model
CLAUDE_MODEL=sonnet
# Fast model (for quick tasks)
CLAUDE_FAST_MODEL=haiku
# Heavyweight model (for complex tasks)
CLAUDE_HEAVYWEIGHT_MODEL=opus
# Timeout (seconds)
CLAUDE_TIMEOUT=1200
# Max conversation turns
CLAUDE_MAX_TURNS=30# Ollama host
CLAUDE_OLLAMA_HOST=http://localhost:11434
# Context window
CLAUDE_OLLAMA_CONTEXT=65536
# Default model
CLAUDE_OLLAMA_MODEL=mistral# Enable Bedrock
CLAUDE_CODE_USE_BEDROCK=1
# AWS region
AWS_REGION=us-gov-west-1
# AWS profile (optional)
AWS_PROFILE=default
# Model ID
ANTHROPIC_MODEL=anthropic.claude-3-5-sonnet-20241022-v2:0# Network mode
ATOMIC_NETWORK_MODE=cui # cui, internet, restricted
# Dashboard ports
ATOMIC_TASKS_PORT=5173
ATOMIC_AGENTS_PORT=5174
ATOMIC_AUDITS_PORT=5175Configure fallback providers in .outputs/0-setup/project-config.json:
{
"providers": {
"chains": {
"critical": ["claude-code", "anthropic", "aws-bedrock"],
"bulk": ["ollama", "anthropic"],
"quick": ["ollama", "claude-code"]
}
}
}Route different task types to different models:
{
"llm": {
"primary_provider": "max",
"fast_provider": "ollama",
"heavyweight_provider": "max",
"gardener_provider": "ollama",
"primary_model": "sonnet",
"fast_model": "haiku",
"heavyweight_model": "opus",
"gardener_model": "mistral"
}
}# Run a phase
python main.py run <phase>
# Examples
python main.py run 0 # Setup
python main.py run 1 # Discovery
python main.py run 2 # PRD# Resume from specific task
python main.py run <phase> --resume-at=<task>
# Examples
python main.py run 2 --resume-at=205
python main.py run 1 --resume-at=106# View pipeline status
python main.py statusOutput:
📦 0-setup
✓ Task 001: Mode Selection
✓ Task 002: Config Collection
✓ Task 003: Config Review
...
📦 1-discovery
✓ Task 101: Entry Validation
✓ Task 102: Corpus Collection
○ Task 103: Import Requirements
...
# Backtrack to earlier phase/task
python main.py backtrack <phase> [<task>]
# Examples
python main.py backtrack 2 # Reset to Phase 2
python main.py backtrack 2 205 # Reset to Task 205# Reset entire pipeline
python main.py resetPurpose: Initial configuration and environment setup
Tasks:
- Mode Selection - Choose document/guided/quick mode
- Config Collection - Gather project configuration
- Config Review - Review and confirm config
- API Keys - Configure LLM providers
- Material Scan - Scan for reference materials
- Reference Materials - Import reference docs
- Environment Setup - Set up directories
- Repository Setup - Initialize Git repo
- Environment Check - Validate setup
Outputs:
.outputs/0-setup/project-config.json- Project configuration.outputs/0-setup/secrets.json- API keys (git-ignored).outputs/0-setup/materials.json- Reference materials list
Time: 10-15 minutes
Purpose: Requirements gathering and approach selection
Tasks:
- Entry Validation - Validate Phase 0 outputs
- Corpus Collection - Gather all input materials
- Import Requirements - Import user requirements
- Agent Selection - Select domain expert agent
- Opening Dialogue - Initial requirements discussion
- Discovery Work - Deep dive into requirements
- Approach Selection - Choose technical approach
- Discovery Diagrams - Create architecture diagrams
- Phase Audit - Validate completeness
- Closeout - Phase summary
Outputs:
.outputs/1-discovery/requirements.md- Requirements document.outputs/1-discovery/approach.md- Technical approach.outputs/1-discovery/diagrams/- Architecture diagrams
Time: 30-60 minutes
Purpose: Generate comprehensive Product Requirements Document
Tasks:
- Entry Validation - Validate Phase 1 outputs
- Corpus Import - Import discovery materials
- Agent Selection - Select PRD specialist
- Opening Dialogue - PRD discussion
- PRD Authoring - Generate PRD
- PRD Review - Review and refine
- Acceptance Criteria - Define success criteria
- Phase Audit - Validate PRD
- Closeout - Phase summary
Outputs:
.outputs/2-prd/prd.md- Product Requirements Document.outputs/2-prd/acceptance-criteria.md- Acceptance criteria
Time: 45-90 minutes
Purpose: Break down work into implementable tasks
Tasks:
- Entry Validation - Validate Phase 2 outputs
- Corpus Import - Import PRD materials
- Agent Selection - Select tasking specialist
- Task Breakdown - Create task list
- Task Dependencies - Define task dependencies
- Task Estimation - Estimate effort
- Phase Audit - Validate task breakdown
- Closeout - Phase summary
Outputs:
.outputs/3-tasking/tasks.json- Task breakdown.outputs/3-tasking/dependencies.json- Task dependencies
Time: 30-45 minutes
Purpose: Create technical specifications for implementation
Tasks:
- Entry Validation - Validate Phase 3 outputs
- Corpus Import - Import tasking materials
- Agent Selection - Select specification specialist
- Tech Stack Selection - Choose technologies
- Architecture Design - Design system architecture
- API Specification - Define APIs
- Database Schema - Design data models
- Component Specs - Component specifications
- Phase Audit - Validate specifications
- Closeout - Phase summary
Outputs:
.outputs/4-specification/tech-stack.md- Technology choices.outputs/4-specification/architecture.md- Architecture document.outputs/4-specification/api-spec.yaml- API specification.outputs/4-specification/schema.sql- Database schema
Time: 60-120 minutes
Purpose: Generate production-quality code
Tasks:
- Entry Validation - Validate Phase 4 outputs
- Corpus Import - Import specification materials
- Code Generation - Generate source code
- Test Generation - Generate unit tests
- Documentation - Generate code documentation
- Phase Audit - Validate code quality
- Closeout - Phase summary
Outputs:
../src/- Generated source code../tests/- Generated test suite../docs/- API documentation
Time: 90-180 minutes (depends on project size)
Purpose: Automated code review and quality checks
Tasks:
- Entry Validation - Validate Phase 5 outputs
- Static Analysis - Run linters and analyzers
- Security Scan - Security vulnerability scan
- Test Coverage - Check test coverage
- Code Review - AI-assisted code review
- Issue Resolution - Fix identified issues
- Phase Audit - Final quality check
- Closeout - Phase summary
Outputs:
.outputs/6-code-review/review-report.md- Code review report.outputs/6-code-review/issues.json- Issues to fix
Time: 30-60 minutes
Purpose: Integration testing and system validation
Tasks:
- Entry Validation - Validate Phase 6 outputs
- Test Plan - Create integration test plan
- Test Execution - Run integration tests
- Performance Testing - Performance benchmarks
- Issue Resolution - Fix integration issues
- Phase Audit - Validate integration
- Closeout - Phase summary
Outputs:
.outputs/7-integration/test-report.md- Test results.outputs/7-integration/performance.json- Performance metrics
Time: 45-90 minutes
Purpose: Prepare for deployment
Tasks:
- Entry Validation - Validate Phase 7 outputs
- Deployment Config - Generate deployment configs
- CI/CD Pipeline - Create pipeline configs
- Docker Images - Create Dockerfiles
- Infrastructure Code - Infrastructure as Code
- Deployment Docs - Deployment documentation
- Phase Audit - Validate deployment artifacts
- Closeout - Phase summary
Outputs:
.outputs/8-deployment-prep/Dockerfile- Docker configuration.outputs/8-deployment-prep/ci-cd.yaml- CI/CD pipeline.outputs/8-deployment-prep/terraform/- Infrastructure code
Time: 45-75 minutes
Purpose: Final release preparation
Tasks:
- Entry Validation - Validate Phase 8 outputs
- Release Notes - Generate release notes
- User Documentation - Create user guides
- API Documentation - Generate API docs
- Migration Guides - Create migration guides
- Release Checklist - Final checklist
- Phase Audit - Final validation
- Closeout - Phase summary
Outputs:
.outputs/9-release/RELEASE-NOTES.md- Release notes.outputs/9-release/USER-GUIDE.md- User documentation.outputs/9-release/API-DOCS.md- API documentation
Time: 30-60 minutes
python main.py statusOpen in browser:
# Tasks dashboard
open http://localhost:5173
# Agents dashboard
open http://localhost:5174
# Audits dashboard
open http://localhost:5175View raw state:
cat .state/task-state.json | jq .# View main log
tail -f .logs/atomic.log
# View specific date
tail -f .logs/atomic-2026-02-07.logIf a task fails, fix the issue and resume:
# Resume from failed task
python main.py run 2 --resume-at=205Already-completed tasks are automatically skipped:
# This will skip tasks 001-004 if already complete
python main.py run 0Reset to earlier phase/task:
# Backtrack to Phase 2 start
python main.py backtrack 2
# Backtrack to Task 205 in Phase 2
python main.py backtrack 2 205This will:
- Clear state after target point
- Delete artifacts after target point
- Clear memory after target point
- Prompt to clear generated code
from core.state import StateManager
state = StateManager()
# Clear specific task
state._state['phases']['2-prd']['tasks'].pop('205', None)
state.save_state()
# Clear entire phase
state.reset_phase('2-prd')
# Reset everything
state.reset_all()Cause: Task script error or LLM invocation failed
Solution:
- Check logs:
cat .logs/atomic.log - Check task error:
cat .outputs/2-prd/task205-output.json.err - Retry task:
python main.py run 2 --resume-at=205
Cause: ANTHROPIC_API_KEY not set
Solution:
export ANTHROPIC_API_KEY=sk-ant-...
# Or set in .env fileCause: Ollama not running
Solution:
# Start Ollama
ollama serve
# Verify
curl http://localhost:11434/api/tagsCause: Project files in ATOMIC-CLAUDE directory
Solution:
# View violations
cd ATOMIC-CLAUDE
python orchestration/pre_task_validation.py
# Auto-fix
python orchestration/pre_task_validation.py cleanupCause: Task taking too long
Solution:
# Increase timeout in .env
CLAUDE_TIMEOUT=3600 # 1 hour
# Or use heavyweight model
CLAUDE_MODEL=opusCause: Previous phase incomplete
Solution:
# Check phase status
python main.py status
# Complete previous phase
python main.py run 1Cause: Invalid JSON in state file
Solution:
# Backup current state
cp .state/task-state.json .state/task-state.json.backup
# Restore from snapshot
cp .state/snapshots/latest.json .state/task-state.json
# Or reset
python main.py resetA: Yes! Configure provider chains in project config:
{
"providers": {
"chains": {
"critical": ["claude-code", "anthropic"],
"bulk": ["ollama", "anthropic"]
}
}
}A: Yes! State is persisted automatically. Just run the same command again.
A: Yes! Each project has its own ATOMIC-CLAUDE directory with isolated state.
A: Yes! Edit task scripts in phases/phaseNN/ or create custom tasks.
A: No, phases must run in order. Each phase depends on previous phase outputs.
A: Yes! Configure Ollama with any compatible model:
ollama pull custom-model
# Set in config
CLAUDE_OLLAMA_MODEL=custom-modelA: Depends on provider:
- Claude Code: Subscription ($20/month)
- Anthropic API: Pay per token (~$15-100 per project)
- AWS Bedrock: Pay per token (~$10-80 per project)
- Ollama: Free (local)
A: Edit outputs directly in .outputs/ directory, then continue.
A: Yes! See Developer Guide for details.
A: Yes with Ollama! Set CLAUDE_PROVIDER=ollama.
A: All major languages. Specify in project configuration.
Use quick mode for initial setup:
Mode: quick
This skips lengthy dialogues and gets you started faster.
Place reference docs in parent directory before Phase 0:
my-project/
├── docs/
│ ├── requirements.md
│ ├── wireframes.pdf
│ └── api-examples.json
└── ATOMIC-CLAUDE/
Check outputs before continuing:
# Review PRD
cat .outputs/2-prd/prd.md
# Continue if good
python main.py run 3Commit after each phase:
cd ..
git add .
git commit -m "Phase 2 complete: PRD generated"Track API usage:
# View logs for token counts
grep "tokens=" .logs/atomic.logUse Ollama for quick iterations, then Claude for final:
# Draft with Ollama
CLAUDE_PROVIDER=ollama python main.py run 2
# Refine with Claude
python main.py backtrack 2 205
CLAUDE_PROVIDER=max python main.py run 2 --resume-at=205Snapshot important states:
cp .state/task-state.json .state/backups/phase-2-complete.jsonAlways check closeout files:
cat .outputs/2-prd/closeout.jsonConfigure fast model for quick tasks:
CLAUDE_FAST_MODEL=haikuIf you customize tasks, document changes:
# Add to project README
echo "## Customizations" >> ../README.md
echo "- Task 205: Modified prompt for domain specifics" >> ../README.md- Complete all phases for your project
- Review generated code in
../src/ - Run tests in
../tests/ - Deploy using artifacts from Phase 8
- Iterate - Backtrack and refine as needed
- API Reference - Complete API documentation
- Developer Guide - Extending atomic-claude
- CLAUDE.md - Guidance for Claude Code
- GitHub - Source code & issues
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@atomic-claude.com
MIT License - See LICENSE for details
Happy Building! 🚀