aos-harness
v0.9.0
Published
Agentic Orchestration System — assemble AI agents into deliberation and execution teams
Maintainers
Readme
aos-harness
Agentic Orchestration System — Assemble specialized AI agents into deliberation and execution teams.
Breaking change in 0.6.0:
aos-harnessno longer bundles adapter code. You must install the adapter(s) for the AI CLI(s) you want to use as separate packages. If you upgrade from 0.5.x and runaos runwithout the matching@aos-harness/<name>-adapterinstalled, the CLI will print an install hint and exit. See CHANGELOG for the full migration note.
Prerequisites
- Bun 1.0+
Getting Started
1. Install the CLI
bun add -g aos-harness
# or: npm i -g aos-harnessOr install it into the current project:
bun add aos-harness
# or: npm install aos-harness2. Install an adapter
Install the vendor CLI you want to drive first, then install the matching AOS adapter package. The adapter is the AOS integration layer on top of the vendor CLI:
claude+@aos-harness/claude-code-adaptercodex+@aos-harness/codex-adaptergemini+@aos-harness/gemini-adapterpi+@aos-harness/pi-adapter
Pick the AI CLI you'll drive agents with and install the matching adapter. You can install more than one. Versions are lockstep — pin the adapter to the same version as the CLI.
bun add -g @aos-harness/claude-code-adapter # Anthropic's Claude Code
bun add -g @aos-harness/gemini-adapter # Google's Gemini CLI
bun add -g @aos-harness/codex-adapter # OpenAI's Codex CLI
bun add -g @aos-harness/pi-adapter # Pi (https://pi.dev)Project-local adapter install also works:
bun add @aos-harness/codex-adapter
# or: npm install @aos-harness/codex-adapter3. Initialize and run
# Initialize a project (writes .aos/ and copies core/ into the project)
aos init
# local install via Bun
bunx aos init
# local install via npm
npx aos init
# Or scan only in CI / automation
aos init --non-interactive
# Or install missing adapter packages after config generation
aos init --apply
# Run a strategic deliberation
aos run strategic-council --brief brief.md
# Run a CTO execution workflow
aos run cto-execution --brief feature-brief.md --domain saas
# List available agents, profiles, and domains
aos list
# Create custom configs
aos create agent my-analyst
aos create profile my-review
# Validate all configurations
aos validateAdapter Model Selection
aos run resolves model settings in this order:
- adapter-scoped settings in
.aos/config.yamladapter_defaults - legacy
.aos/adapter.yaml AOS_MODEL_ECONOMY/AOS_MODEL_STANDARD/AOS_MODEL_PREMIUM- adapter defaults
Default behavior:
pipins explicit tier models by defaultcodex,claude-code, andgeminilet the vendor CLI choose its default model unless you set explicit tier models
Example:
api_version: aos/config/v2
adapters:
enabled: [codex, pi]
default: codex
adapter_defaults:
codex:
use_vendor_default_model: true
pi:
use_vendor_default_model: false
models:
economy: anthropic/claude-haiku-4-5
standard: anthropic/claude-sonnet-4-6
premium: anthropic/claude-opus-4-7Claude Code note:
aos initnow checksclaude auth status --json.- If Claude Code is being forced through
ANTHROPIC_API_KEY, the readiness scan will tell you. If sessions fail withInvalid API key, unset or refresh that key, or switch back toclaude loginauth.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Uncaught runtime error |
| 2 | Invalid input (unknown adapter, bad path, bad URL, missing adapter package) |
| 3 | Validation failure that requires user action (aos init --non-interactive --adapter ... selected adapter not ready, or profile tool-policy widening failure) |
What It Does
AOS Harness orchestrates multiple AI agents with distinct cognitive biases into structured deliberation and execution sessions:
- Deliberation — Agents debate a strategic question. An Arbiter synthesizes ranked recommendations with documented dissent.
- Execution — A CTO orchestrator delegates production work through multi-phase workflows with review gates.
Ships with 13 agent personas, 6 orchestration profiles, 5 domain packs, and full constraint management (time, budget, rounds).
Documentation
License
MIT
