Documentation
Everything you need to captain your AI workflow and stop regressions before they board your codebase.
Quick Start
Install
npm install -g archondev Run & Login
First run is conversational-first: login, pick tier (FREE/BYOK/Credits), state your goal in plain English, and continue with guided next actions.
cd your-project && archon Plan and Execute
archon plan "Add user authentication" Plans now require design approval before execution. Content-only requests (stories, lessons, outlines, visuals) use lightweight planning so momentum stays high.
v2.19.4: New command discipline: design approval gate, stronger plan structure, root-cause bug intake, and staged AI review (spec first, then quality).
Smart Onboarding: Three Scenarios
After login and tier selection, ArchonDev reads the waters and routes you to the right workflow without guesswork.
New Project
Empty folder -> guided interview that generates `.archon/active/architecture.md` and sets your governance baseline.
Adapt Existing
Existing codebase -> review-first onboarding with governance adapted to your live structure.
Continue Session
Returning session -> restores context, surfaces last activity, and resumes pending atoms cleanly.
User Journey Governance (Lite + CLI)
ArchonDev is optimized as a full journey system, not just command docs. Both Lite and CLI flows are designed to reduce decision fatigue, prevent dead ends, and move users from setup to confident execution quickly.
Journey Sequence
- Anchor trigger, job, and desired outcome.
- Recommend the best path (continue, review, setup).
- Confirm intent and risks before implementation.
- Recover gracefully from ambiguity or failure.
- Close with a clear outcome and next action.
Why It Converts Better
- • Faster first success moment for new users
- • Clearer progress narrative in every session
- • Better trust through transparent recovery behavior
- • Lower cognitive load through explicit recommendations
CLI Billing Journey Highlights
- • Tier selection: Free, BYOK, or Credits at onboarding and anytime via upgrade/settings.
- • Credits preflight shows estimated cost and current balance before heavy operations.
- • Guided payment/top-up flow for Credits users with browser checkout launch.
- • Model routing and preferences in settings for planning/reasoning/execution tiers.
- • Insufficient-funds path prompts immediate recovery: top up, switch to BYOK, or cancel, then auto re-checks before continuing.
- • Major workflow checkpoints end with clear next-best-action suggestions.
Quality Level / Posture
Set how strict your AI should be. Run lean in prototypes and lock discipline in production and enterprise.
| Posture | When to Use | AI Behavior |
|---|---|---|
| prototype | Learning, experimenting | Fast iteration, minimal governance |
| production | Real users (default) | Secure defaults, basic monitoring |
| enterprise | Mission-critical, regulated | Full governance: audit logging, RBAC, SLOs |
5-Phase Interview System
A conversational interview that guides you through defining your project, then generates a formal specification.
Discovery
Vision & users
Features
MVP scope
Technical
Tech stack
Branding
Name & style
Review
Validate & freeze
archon interview | Start or resume interview |
archon interview show | Display current Constitution |
archon interview validate | Check for completeness |
archon interview export [file] | Export to JSON |
✨ Challenge Mode
During review, the AI challenges scope creep: too many features, high complexity, vague requirements. Aims for ~20% feature reduction to keep MVPs lean.
Project Constitution
The Constitution is a formal, immutable specification generated from the interview. It's the contract between you and the AI for what gets built.
What's Inside
- • Discovery: Elevator pitch, target user, core problem
- • MVP Features: Features with user stories & acceptance criteria
- • Tech Stack: Framework, database, hosting, auth
- • Branding: Project name, tagline, colors
- • Complexity: Tier rating, estimated hours, costs
Complexity Tiers
- • SIMPLE — ≤10 routes, ≤5 tables
- • MODERATE — ≤25 routes, ≤10 tables
- • COMPLEX — ≤50 routes, ≤20 tables
- • ENTERPRISE — 50+ routes, 20+ tables
Generate prd.json from Constitution
Once frozen, transform your Constitution into executable atoms:
archon generate | Generate prd.json from frozen Constitution |
archon generate --include-post-mvp | Include POST_MVP features |
archon generate --dry-run | Preview without writing |
archon generate --output path.json | Custom output path |
CLI Reference
Use these commands to keep execution on course: approve design, execute with gates, and review in the right order.
| Command | Description |
|---|---|
archon | Interactive mode |
archon init | Initialize in your project |
archon interview | 5-phase project interview |
archon generate | Generate prd.json from Constitution |
archon plan <description> | Create a work item with AI planning |
archon execute <atom-id> | Execute with quality gates |
archon list | List all work items |
archon show <atom-id> | Show details |
archon bug report <title> | Bug report with RCA |
archon review init | Initialize code review |
archon credits | View credit balance |
archon usage | Usage by period and model (BYOK/Credits) |
archon keys add <provider> | Add API key (BYOK) |
archon preferences | Settings menu |
archon github connect | Connect GitHub for cloud execution |
archon index search <query> | Semantic code search |
.archon/active/architecture.md Format
Your source of truth for governance. Uses YAML frontmatter.
---
name: My Project
version: "1.0"
boundaries:
- path: "src/db/**"
protection: STRICT
description: "Database layer"
invariants:
- id: INV-001
type: NO_DIRECT_IMPORT
path: "@supabase/supabase-js"
enforcement: BLOCKING
protectedPaths:
- pattern: "src/db/schema.ts"
reason: "Schema changes require migration"
--- DEPENDENCIES.md
Track file-level dependencies to prevent regressions.
archon deps list | View dependency rules |
archon deps add | Add a new rule |
archon deps check --files <list> | Check downstream impacts |
archon deps graph | Generate Mermaid diagram |
Code Review
AI-powered code review for any codebase. Non-destructive analysis.
archon review initCreate SQLite databasearchon review analyzeScan projectarchon review run --allAI reviews all filesarchon review planGenerate fix planarchon review exportExport reportTask Extraction Protocol
AI confirms all items from multi-part requests before starting. Nothing gets forgotten.
When you say "fix the login bug, add dark mode, and update the docs", the AI will list all 3 tasks and confirm before proceeding.
Accessibility Check
If Archon detects a web project, it will prompt you to run A11y/SEO/GEO checks and remember your preference in .archon/config.yaml.
WCAG 2.2 AA compliance checks with legal liability warnings.
archon a11y check | Run accessibility audit |
archon a11y fix | Auto-fix common issues |
archon a11y badge | Add compliance badge |
archon a11y pre-deploy | Pre-deployment check |
SEO Optimization
archon seo check | Run SEO meta tag audit |
archon seo fix | Apply recommended fixes |
GEO for AI Search
Generative Engine Optimization — get your product cited by AI assistants.
archon geo identity | Generate brand identity phrases |
archon geo schema | Generate JSON-LD schemas |
GitHub Integration
Connect your GitHub account for cloud execution with automatic PR creation.
archon github connect | Link your GitHub account |
archon github status | Check connection status |
archon github disconnect | Unlink account |
How it works:
- Run
archon github connectto authorize ArchonDev - Cloud agents can now clone your repos and push changes
- Completed work is submitted as a Pull Request
Cloud Agents
Run AI agents in the cloud. Close your laptop while work continues.
archon execute ATOM-001 --cloud | Execute in cloud |
archon execute ATOM-001 --cloud --watch | Execute and stream logs |
archon cloud status | List cloud executions |
archon cloud cancel [id] | Cancel execution |
archon cloud logs [id] | View execution logs |
Requirements: Credits tier + connect GitHub first with archon github connect
Billing:
- Credits Users: Token cost + 10% fee + compute
- BYOK/Free: Cloud execution not available (local-only)
Session Management
Save your session and continue on another device.
archon session save [name] | Save current session |
archon session list | List saved sessions |
archon session resume [id] | Resume a session |
archon session sync | Sync to cloud |
Semantic Indexing
Semantic search across your codebase. Local (free) or cloud options.
Local Indexing (Free with Ollama)
# Install Ollama first: https://ollama.ai
ollama pull nomic-embed-text
archon index init --local
archon index update
archon index search "authentication flow" Cloud Indexing (pgvector)
Uses OpenAI embeddings stored in Supabase. Requires Supabase Pro plan.
archon index init --cloud
archon index update --cloud
archon index search "authentication flow" --cloud archon index init [--local|--cloud] | Initialize index |
archon index update [--cloud] | Index changed files |
archon index search <query> [--cloud] | Semantic search |
archon index status [--cloud] | Show index stats |
archon index clear [--cloud] | Clear index |
Cloud Indexing Costs:
- Storage: ~$0.01-0.30/month per project
- Embeddings: ~$0.10-0.15/million tokens (only when indexing)
- Queries: Free (uses existing Supabase compute)
Smart Model Routing
Automatically routes operations to the optimal AI model tier for cost optimization. Simple tasks use cheap/fast models; complex planning uses powerful models.
Model Tiers
| Tier | Operations | Default Models | Cost |
|---|---|---|---|
| PLANNING | plan, init, design, architect_debate, interview, constitution | Claude Opus, GPT-5.2, Gemini Pro | $$$ |
| REASONING | review, validate, sentinel_check, analyze, geo, seo | Claude Sonnet, GPT-5, Gemini Pro | $$ |
| EXECUTION | execute, execute_atom, deps, a11y, format, cleanup | Claude Haiku, GPT-4o Mini, Gemini Flash | $ |
Configure Preferences
archon preferences | Open preferences menu, select "Smart Routing" |
--model <model-id> | Override routing for a single command |
💡 Cost Savings
Routing simple code execution to Haiku/Flash instead of Opus/GPT-5 can reduce costs by 80-95% with no quality loss for routine tasks.
Parallel Execution
Run multiple agents simultaneously using git worktrees with dependency-aware scheduling.
Dependency Scheduling
ArchonDev analyzes atom dependencies and file conflicts to schedule execution in parallel waves.
archon parallel schedule | Show execution schedule |
archon parallel schedule --mermaid | Output dependency graph as Mermaid |
archon parallel schedule --only-ready | Only READY atoms |
archon parallel run-waves | Execute in dependency order |
archon parallel run-waves --dry-run | Preview without executing |
Manual Parallel
archon execute --parallel ATOM-001 ATOM-002 | Execute in parallel |
archon parallel status | Show status |
archon parallel merge [atomId] | Merge worktrees |
archon parallel clean | Remove all worktrees |
Parallel Cloud (Credits)
archon parallel cloud ATOM-001 ATOM-002 | Queue multiple atoms in the cloud |
History & Revert
Each atom execution creates a git commit. Revert individual atoms without affecting other changes.
CLI Users
archon history | Show atom execution history |
archon revert <atom-id> | Revert a specific atom |
archon revert <commit-hash> | Revert by git commit hash |
archon revertable | List atoms that can be reverted |
Lite Package Users
Say show atom history or revert atom to your AI. Uses git under the hood:
# List atom commits
git log --oneline | grep -E '\[(ATOM|US)-[0-9]+\]'
# Revert specific commit
git revert <commit-hash> Eject
Remove all ArchonDev metadata, leaving a clean standalone codebase you fully own.
CLI Users
archon eject | Remove ArchonDev from project |
archon eject --dry-run | Preview what would be removed |
archon eject --keep-architecture | Keep .archon/active/architecture.md |
Lite Package Users
Say eject archondev to your AI, or manually remove:
- •
.archon/,archondev-scenarios/,AGENTS.md - • IDE rules:
.cursorrules/.windsurfrules/CLAUDE.md/ etc.
Keep: .archon/active/architecture.md (useful standalone), progress.txt (history)
Deploy
One-click deployment with automatic platform detection.
Supported: Fly.io, Vercel, Netlify, Railway, Render
archon deploy | Auto-detect and deploy |
archon deploy --platform fly | Deploy to specific platform |
archon deploy --preview | Deploy to staging |
archon deploy --dry-run | Show what would happen |
Cleanup
Keep your workspace lean for optimal AI performance. Large files consume context.
archon cleanup check | Analyze workspace for bloat |
archon cleanup run | Execute cleanup (archive old entries, clear cache) |
archon cleanup auto enable | Enable auto check on start |
Thresholds:
- •
progress.txt> 100KB — archive old entries to docs/archive/ - •
.archon/> 10MB — clear stale cache files - • Cache files > 7 days — auto-deleted on cleanup run
Working with Existing Projects
Add governance to projects created by other AI agents or manual coding.
# Step 1: Review existing code
archon review init
archon review analyze
archon review run --all
# Step 2: Set up governance
archon init --analyze
# Step 3: Fix issues
archon plan "fix critical issues from review" VS Code Extension
Real-time architectural governance with quick-fix suggestions.
- • Real-time violation detection in Problems panel
- • Quick-fix suggestions (Ctrl+. / Cmd+.)
- • Protected path warnings
- • Boundary enforcement for cross-module imports
Installation: Download archondev-0.2.0.vsix from the downloads page, then Extensions → ... → Install from VSIX
Tiers & Billing
FREE
$0
- • Ultra-cheap models only
- • 10,000 atoms/month
- • No credit card required
CREDITS
Pay-as-you-go
- • All models available
- • Unlimited atoms
- • 10% service fee
BYOK
$0
- • Use your own API keys
- • All models available
- • No service fee
BYOK Key Security
- • Your API keys stay on your machine and are never uploaded to ArchonDev servers.
- • Keys are encrypted at rest with AES-256-GCM in
~/.archon/keys.json. - • The key file is set to owner-only permissions (0600).
- • BYOK runs locally; cloud execution is Credits-only.
If your device is compromised, an attacker could access local files. Treat API keys as sensitive secrets.
Troubleshooting
"Command not found: archon"
Ensure npm global bin is in your PATH. Run npm bin -g to check.
"Insufficient credits"
CLI now opens a guided recovery flow in-command: add credits now, switch to BYOK and add a key, or cancel safely. You can still run archon credits add manually anytime.
".archon/active/architecture.md not found"
Run archon init in your project root.
Cloud execution not starting
Ensure GitHub is connected: archon github status
Need Help?
Email us at techsupport@JumpingAhead.com