Archon orchestrates AI coding agents through six interconnected concepts. This page explains each one conceptually with short examples — enough to make everything else click before you start writing your own workflows.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/coleam00/Archon/llms.txt
Use this file to discover all available pages before exploring further.
Workflows
A workflow is a YAML file stored in.archon/workflows/ that defines a multi-step coding task as a directed acyclic graph (DAG). Each workflow has a name, a description (used by the router to match it to your intent), and a set of nodes connected by depends_on edges.
.archon/workflows/fix-issue.yaml
depends_on run immediately. Nodes in the same dependency layer run in parallel — so three independent review nodes fan out concurrently, then converge at a downstream node that depends on all three.
Archon ships 17 bundled workflows. Run archon workflow list to see them, or browse .archon/workflows/defaults/ for real YAML examples. To customize, copy a default into your repo’s .archon/workflows/ — files with the same name override the bundled version.
Nodes
Nodes are the building blocks of workflows. Every node does exactly one thing, specified by its type. Six types are available:| Type | What it does |
|---|---|
command: | Loads a markdown command file from .archon/commands/ and sends it to an AI agent |
prompt: | Sends an inline prompt string directly to an AI agent |
bash: | Runs a shell command (no AI). stdout is captured as $nodeId.output |
loop: | Runs an AI prompt repeatedly until a completion signal (ALL_TASKS_COMPLETE, APPROVED, etc.) |
approval: | Pauses the workflow for human review — resumes only when you approve or reject |
script: | Runs an inline TypeScript or Python script (no AI). stdout captured as $nodeId.output |
provider: and model: fields. You can also add when: conditions, control join behavior with trigger_rule, and pass structured data between nodes via $nodeId.output.
Commands
A command is a markdown file in.archon/commands/ that serves as a reusable AI prompt template. When a workflow node specifies command: investigate-issue, Archon loads .archon/commands/investigate-issue.md, substitutes variables, and sends the result to the AI.
.archon/commands/investigate-issue.md
| Variable | Resolves to |
|---|---|
$ARGUMENTS | The user’s input message |
$ARTIFACTS_DIR | Pre-created directory for workflow artifacts |
$BASE_BRANCH | Base branch (auto-detected or configured) |
$DOCS_DIR | Documentation directory (default: docs/) |
$WORKFLOW_ID | Unique ID for the current workflow run |
$nodeId.output | Captured stdout from a previous bash or script node |
.archon/commands/ override defaults with the same filename.
See the Variable Reference for the complete list.
Isolation (git worktrees)
Every workflow run gets its own git worktree by default — an isolated copy of your repository in a separate directory. This gives you three things:- Clean working branch. Workflow changes happen in an isolated directory, never in your main checkout.
- Parallel execution. Multiple workflows run simultaneously without conflicting with each other.
- Safe failure. Failed runs don’t leave your repo in a broken state. Clean up with
archon isolation cleanup.
Providers
A provider is an AI coding agent that Archon can invoke. Three providers are available:| Provider | Description | Best for |
|---|---|---|
claude | Claude Code (Anthropic) | Claude Pro/Max subscribers; default recommendation |
codex | Codex CLI (OpenAI) | OpenAI subscribers |
pi | Pi community provider | Access to 20+ LLM backends via provider/model refs |
.archon/config.yaml:
.archon/config.yaml
.archon/workflows/mixed-providers.yaml
.archon/config.yaml defaults > SDK defaults.
Adapters
An adapter connects Archon to a chat platform or interface. Adapters receive messages, route them to the orchestrator or workflow executor, and stream responses back.| Adapter | How to trigger workflows |
|---|---|
| CLI | archon workflow run <name> "message" |
| Web UI | Chat interface at http://localhost:5173 |
| Telegram | DM your bot |
| Slack | Message the bot in any channel it’s in |
| GitHub | @archon fix issue #42 in any issue or PR comment |
| Discord | Message the bot |
What’s next
Quickstart
Install Archon and run your first workflow.
Authoring workflows
Write multi-step YAML workflows for your project.
Authoring commands
Create reusable AI prompt templates.
Variable reference
All variables available in commands and workflow prompts.