Archon README

The project's README from github.com/coleam00/Archon. As one markdown file: README.md.

Archon

Archon

The simplest way to build the software that builds your software.
YAML workflows that can do anything.

coleam00%2FArchon | Trendshift

License: MIT CI Docs


Archon is a factory builder. You describe how work should get done as YAML workflows, and Archon runs them with AI agents, scripts and your decisions in the places that need them. Software is the first factory: the bundled SDLC pack takes an issue to a merged pull request. The same engine runs any process you can describe.

Take yourself out of the loop and sit on top of it. Runs do the work, queues keep it moving, and a run comes to you only when it needs a decision you own.

Why Archon

Ask a coding agent to fix a bug and the result depends on the run. It may skip the plan, forget the tests or ignore your PR template. You end up supervising every step.

Archon turns your process into a workflow you own. The workflow fixes the steps, the checks and the gates. The agent supplies the judgment inside each step. That gives you:

What it looks like

A workflow is a graph of nodes. Agents judge, code computes, and you decide where it matters:

# .archon/workflows/build-feature.yaml
name: build-feature
description: Plan, implement until the tests pass, ask for approval, open the PR.
nodes:
  - id: plan
    prompt: "Read the request and the code. Write an implementation plan."

  - id: implement
    depends_on: [plan]
    loop:
      prompt: "Implement the next step of the plan."
      until_bash: "bun run test"          # your test command; code decides when it is done
      max_iterations: 10
      fresh_context: true

  - id: approve
    depends_on: [implement]
    wait:                                 # the run pauses and asks you
      attention: "Review the change. Approve, or reject to stop."
      form: approval

  - id: stop
    depends_on: [approve]
    when: "$approve.output.decision == 'reject'"
    cancel: "Rejected at review."

  - id: pr
    depends_on: [approve]
    when: "$approve.output.decision == 'approve'"
    prompt: "Push the branch and open a pull request."
flowchart LR
  plan["plan<br/>(agent)"] --> implement["implement<br/>(agent, loops until the tests pass)"]
  implement --> approve{"approve<br/>(waits for you)"}
  approve -- reject --> stop["stop"]
  approve -- approve --> pr["pr<br/>(agent)"]

Save it in your repository's .archon/workflows/, swap bun run test for your own test command, and run it:

archon workflow run build-feature "Add dark mode to the settings page"

Repository runs get their own git worktree by default, so several can work on one repository at once.

A software factory: issue in, merged PR out

The bundled sdlc pack is a working factory for a repository:

  1. You open an issue. archon-intake checks it against the current code and decides what it needs: a plan, an investigation, straight to delivery, or a maintainer's look.
  2. The build queue picks it up. archon-build-queue takes a ready issue, writes the brief and runs archon-ship: plan, implement, review through specialist lenses, fix the findings, wait for CI. It stops at a pull request whose review says Ready, asking once for any check no round can run, or at one a maintainer's ready answer hands on; the merge gate checks either the same way.
  3. The merge queue lands it. archon-merge-queue merges the clear ready pull requests that merge cleanly, through a gate that checks the review verdict and CI at the head commit and that the base branch is not red. The queue judges open review threads itself and sends a pull request that conflicts back to the build queue.
  4. You answer what's unclear. A scope question, a schema change or a stuck round becomes one attention item with a recommendation. Your answer is written into the issue as the new scope.
  5. Nothing found along the way is lost. archon-discoveries reads what runs noticed outside their task and files it, tracks it on an existing issue, or drops it.

Archon builds Archon: of the 524 pull requests merged into this repository between 1 and 19 October 2026, Archon runs built 363.

You start the queues by hand or bind them to a schedule or issue events with a trigger. The pack binds nothing by default. The pack reaches GitHub through the forge plugin (archon plugin add coleam00/Archon/plugins/forge-github); see the forge path. The SDLC factory introduces it and links its setup guide, and SDLC pack workflows describes every workflow in it.

Build any factory

Workflows are not tied to code. A node can be an agent prompt, a bash command, a script, a loop, a wait for a person or a child workflow, so any process with steps, checks and decisions fits: content production, research, operations, support. Write it as YAML, keep its commands and scripts beside it, and share it as a pack.

A reliable core, extensible at the seams

The core stays small: the workflow engine, isolation, durable state, the attention queue and an audit trail. Everything that talks to the outside world plugs in through a published contract, and you can build your own plugin for any of them:

Plugin kind What it adds Maintained here
Workflow pack Workflows, commands and scripts sdlc
Provider An agent runtime Claude Code, Codex, Pi
Forge A code host GitHub
Chat A conversation surface Slack

GitHub is the registry: publish in your own repository and install with archon plugin add owner/repo. See Publish a plugin and the plugin index.

Quickstart

  1. Install Claude Code and sign in, or install Codex.

  2. Install Archon. The installer asks which providers to add:

    curl -fsSL https://archon.diy/install | bash        # macOS / Linux
    irm https://archon.diy/install.ps1 | iex             # Windows (PowerShell)
    brew install coleam00/archon/archon                 # Homebrew, then: archon setup
    
  3. Run a workflow in any git repository:

    cd your-project
    archon workflow list
    archon workflow run archon-investigate "Why does the login test fail?"
    
  4. Watch runs and answer their questions in the web console with archon serve, or from the terminal with archon workflow attention.

To let your coding agent drive Archon for you, run archon skill add in your project, then ask it to "use archon to fix issue #42".

Other installs (from source, Docker, servers), provider setup and the Claude Code binary path are in the installation guide. The quick start shows how to write a brief a run can deliver against.

Connect a platform

The CLI and web console work out of the box. Connect a chat platform or forge to start and follow runs from there:

Platform Guide
Slack Slack guide
Telegram Telegram guide
GitHub webhooks GitHub guide
Discord Discord guide

Documentation

Full documentation is at archon.diy/docs.

Topic Description
Quickstart Install and first run
Workflow language Write your own YAML workflows
Operate runs Watch runs, answer the ones that need you, read results
CLI reference Every command and flag
Configuration Config options, model tiers and aliases, env vars
AI assistants Claude Code, Codex and Pi setup
Deployment Docker, VPS and production setup
Architecture Packages and boundaries
Troubleshooting Common issues and fixes

For AI tools: point your LLM at /llms.txt for an index of the docs, /llms-full.txt for all of them in one file, or /llms-small.txt for a condensed version.

Previous version

Looking for the original Python-based Archon (task management and RAG)? It is preserved on the archive/v1-task-management-rag branch.

Telemetry

Archon sends a few anonymous events so maintainers can see which workflows get real usage, on what platforms, and whether runs succeed, and prioritize accordingly. No PII, ever. Events: archon_started (at most once a day each for the CLI and the server, with the store it uses: files, sqlite or postgresql; archon serve reports as the server, and a detached run's worker process is counted by the command that started it), archon_active (daily heartbeat while a server is running, so long-running installs stay counted), chat_turn_handled (each direct AI chat turn: platform, provider, model, duration, and usage totals; never message content), workflow_invoked (each workflow start, and again for each resumed segment), workflow_completed / workflow_failed / workflow_cancelled (sent once when a run's final status is saved, whichever path ended it), workflow_approval_resolved (each human approve/reject decision: the binary resolution only, never comments or reasons), and codebase_registered (a pure count when a project is registered; no name, path, or URL).

What's collected (categorical only):

Workflow runs and direct-chat turns both report optional cache_read_tokens, cache_write_tokens, and true-only cache_partial. An unreported axis is absent; a reported zero stays zero. When cache_partial is true, cache totals are floors because some contributing results did not report cache usage. When telemetry is enabled and stderr is a terminal, the updated first-run notice appears once again for existing installs to disclose direct-chat cache capture. Headless installs show no notice; see telemetry settings for capture details and opt-outs.

What's not collected: your code, prompts, messages, custom workflow names, workflow descriptions, git remotes, file paths, usernames, tokens, AI output, error message text, your IP address, your geographic location. None of it.

Opt out: set any of these in your environment:

ARCHON_TELEMETRY_DISABLED=1
DO_NOT_TRACK=1        # de facto standard honored by Astro, Bun, Prisma, Nuxt, etc.
POSTHOG_API_KEY=off   # off | 0 | false | disabled | "" all disable

CI environments (CI=true) are auto-disabled: forks running fixtures in GitHub Actions, CircleCI, etc. do not send events.

Check the current state: run archon telemetry status to see whether telemetry is enabled, why (if not), the install UUID, and the active host. Run archon telemetry reset to rotate the install UUID. archon doctor also surfaces the current state in its check list.

Shutdown gives pending telemetry a 75 ms flush window, then cancels outstanding requests. Slow or unreachable ingestion can lose events; it does not hold up command exit. Far from the ingest host (for example, about 250 ms TLS handshake from Europe to the default US host), events from short commands like --help are usually dropped; longer commands flush in the background while they run.

Self-host PostHog or use a different project by setting POSTHOG_API_KEY and POSTHOG_HOST.

Contributing

Contributions welcome. See the open issues for things to work on, and read CONTRIBUTING.md before opening a pull request.

Star history

Star History Chart

License

MIT

Archon (coleam00/Archon)

Searching Database…

What is this?Archon is an open-source workflow engine for AI coding agents: you define your development process - planning, implementation, validation, review, PR creation - as YAML workflows and run them reliably across all your projects.
How is that different from just prompting Claude Code directly?On its own, what an agent does depends on the run - it may skip planning or forget tests. Archon owns the structure: phases, validation gates and artifacts are fixed in YAML, and the AI only fills in the intelligence at each step.
How do I get it running?Two paths: the Full Setup clones the repo and walks you through a guided wizard - just tell your coding agent 'Set up Archon' - while the Quick Install drops in a standalone CLI binary in about 30 seconds if you already use Claude Code.
Do I need Claude Code installed, or does it work with other coding agents?It is built around Claude Code; the docs also cover Codex and Pi. The guided setup needs Bun, Claude Code and the GitHub CLI, and quick-install binaries do not bundle Claude Code - point Archon at yours via CLAUDEBINPATH or the config.yaml binary path.
Any install pitfalls to know about?Yes: on x64 the macOS/Linux quick install requires an AVX2-capable CPU, so older Intel/AMD hardware and VMs that mask AVX2 must build from source instead. ARM64 is unaffected, and Windows installs via a PowerShell script.
Do I have to live in the terminal, or can I drive it from chat apps?The CLI and a web dashboard work out of the box, and you can optionally connect Telegram or Discord (5 min each) or Slack and GitHub webhooks (15 min) to launch and monitor workflows remotely.
Does it phone home with telemetry?It sends a few anonymous PostHog events - workflow outcomes, token totals, platform. Message content, prompts and code are never sent, opting out is a one-line env var, and CI environments are excluded automatically.
Is this the same Archon that used to do task management and RAG?No - this is a TypeScript rewrite focused on workflow orchestration. The original Python version, built around task management and RAG, is fully preserved on the archive/v1-task-management-rag branch.
Can I self-host it or run it on a server?Yes - the repo ships Docker and docker-compose setup, and the docs cover Docker, VPS and production deployment. It runs on SQLite or PostgreSQL, and the Docker image comes with Claude Code pre-installed.
What do I get in the web dashboard?Run archon serve: you get a chat interface with real-time streaming and tool-call visualization, a Mission Control page for monitoring running workflows with filterable history, and step-by-step execution views for any run.
Creator
coleam00
Size
111.6 MB
Stars
24K
Age
1y
Commits · 90 Days