agentorchestr
A supervisor/worker orchestrator for terminal-based coding agents.
agentorchestr discovers installed CLI agents (Claude Code, Kiro, OpenClaude, OpenCode, Codex, Gemini CLI, Aider, Goose…), assigns one as a lead that receives an MCP tool surface, and tiles the rest as workers in a single tmux session — each in its own git worktree.
┌─────────────────────────────────────────────────────────┐
│ tmux window "agentorchestr" │
│ ┌───────────────────────────────────────────────────┐ │
│ │ lead agent (kiro / claude / …) ← MCP tools │ │
│ ├──────────────────┬────────────────────────────────┤ │
│ │ worker w01 │ worker w02 │ │
│ │ (implementer) │ (tester) │ │
│ └──────────────────┴────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
Install
# From PyPI (once published):
pipx install agentorchestr
# From source:
git clone https://github.com/IAZENT/agentorchestr && cd agentorchestr
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
MCP support (required for auto mode):
pip install 'agentorchestr[mcp]'
Optional extras:
pip install 'agentorchestr[discover]' # cross-terminal mDNS discovery
pip install 'agentorchestr[research]' # web research via DuckDuckGo
pip install 'agentorchestr[memory]' # vector retrieval (sqlite-vec + fastembed)
LLM keys
agentorchestr's router is used for planning and compression only — the agents use their own auth for coding. Configure at least one:
export ANTHROPIC_API_KEY=... # paid; 90% off cached prefix (recommended)
export CEREBRAS_API_KEY=... # 1M tok/day free, ~2100 tok/s
export GROQ_API_KEY=... # 30 RPM free, ~315 tok/s
export GEMINI_API_KEY=... # 1500 req/day free, 1M context
export OPENROUTER_API_KEY=... # 28+ free models
Quickstart
# Check what's installed:
agentorchestr --detect
# Scaffold per-project context files:
agentorchestr --init
# Run with a goal (auto mode — lead + workers):
agentorchestr --goal "Add JWT auth to /api/users"
# Long goal from a file:
agentorchestr --goal-file design-doc.md
# Interactive multi-line paste (end with /end):
agentorchestr --interactive
# Single agent, no supervisor (manual mode):
agentorchestr --manual --task "fix the login bug"
agentorchestr attaches you to the tmux session automatically. Detach with
Ctrl-B D. Reconnect later:
agentorchestr --list-sessions
agentorchestr --resume <session_id>
How it works
- Lead agent runs in tmux pane 0 with an MCP server on
127.0.0.1:<random-port>. - The lead calls
spawn_worker(task, perspective)→ agentorchestr creates a git worktree on a fresh branch and launches a worker agent in a new pane. - Workers write
WORKER_DONE: <summary>(and a.agentorchestr/done.flagfile) when finished. The lead reads their output viaread_worker_output. - The lead calls
verify()thenmark_goal_done(summary)to end the session.
Worker perspectives
| Perspective | Role |
|---|---|
implementer |
minimal-diff code change |
tester |
tests for success + at least one failure mode |
reviewer |
numbered concerns with file:line |
security |
auth / injection / secrets / crypto only |
performance |
N+1, quadratic loops, sync I/O on async paths |
verifier |
runs the FULL suite + linters, no shortcuts |
researcher |
gathers external facts; produces no patches |
MCP tools exposed to the lead
spawn_worker · read_worker_output · send_to_worker · wait_for_worker ·
list_workers · kill_worker · cross_review · verify · report_progress ·
mark_goal_done · mark_goal_failed · list_perspectives ·
discover_running_agents · send_to_external_agent · read_from_external_agent ·
web_research · compact_session · clear_tool_results
Filesystem layout
Follows the XDG Base Directory spec.
| Scope | Path | Holds |
|---|---|---|
| Global state | $XDG_DATA_HOME/agentorchestr/ (~/.local/share/agentorchestr/) |
state.db, skills/, memory/ |
| Global config | $XDG_CONFIG_HOME/agentorchestr/ (~/.config/agentorchestr/) |
global hooks / overrides |
| Per-project | <project>/.agentorchestr/ |
PROJECT.md, CONVENTIONS.md, memory/, hooks.json |
| Per-session | /tmp/agentorchestr-<sid>/ |
prompt files, progress log |
Existing ~/.agentorchestr/ installations keep working — agentorchestr never
silently moves your data.
Per-project context
agentorchestr --init creates:
.agentorchestr/
├── PROJECT.md # stack, architecture, verify commands
├── CONVENTIONS.md # style, naming, test rules
├── hooks.json # lifecycle hook commands
├── memory/
│ ├── topics/ # learned topic notes (auto-indexed)
│ ├── episodes/ # per-session journals
│ └── research/ # cached web-research payloads (24h TTL)
└── skills/ # project-pinned skills (override globals)
PROJECT.md and CONVENTIONS.md are auto-loaded into the cacheable preamble
of every session. Keep them short — every byte is re-paid on every turn.
Cross-terminal worker pool
Wrap any CLI agent so agentorchestr can find and drive it from another terminal:
# Terminal 1
agentorchestr-shim kiro chat
# Terminal 2
agentorchestr-shim claude
# Terminal 3
agentorchestr --goal "build the auth module"
Three discovery layers run in order:
- mDNS via
_agentorchestr-agent._tcp.local.(requireszeroconfextra) - Filesystem cards under
$XDG_RUNTIME_DIR/agentorchestr-agents/ - tmux pane scan as a last resort (send-keys only, no structured RPC)
Skills
Skills are git-clone-able bundles (instructions + optional ed25519 signature) that auto-inject into matching worker prompts.
agentorchestr --skill-add github.com/<author>/<skill-name>
agentorchestr --skill-list
agentorchestr --skill-verify <skill-name>
agentorchestr --skill-remove <skill-name>
agentorchestr --goal "..." --require-signed-skills # production
A skill directory:
~/.local/share/agentorchestr/skills/<skill-name>/
├── skill.toml # name, version, triggers (keywords + file_globs)
├── skill.md # markdown injected into matching workers' prompts
├── signature.sig # optional ed25519 signature
└── signing-key.pub # optional public key
Dashboard
agentorchestr --dashboard # http://localhost:3000
Endpoints: /api/sessions, /api/sessions/<id>, /api/sessions/<id>/workers,
/healthz, /api/docs. Auto-refreshes every 5s.
CLI reference
| Flag | Purpose |
|---|---|
--goal "..." |
one-shot goal (auto mode) |
--goal-file PATH |
read goal from a UTF-8 file |
--interactive |
paste a multi-line goal (/end to submit) |
--manual --task "..." |
single agent, single task, no supervisor |
--agents NAME [...] |
restrict to these agent names |
--lead NAME |
force a specific lead (must be in --agents) |
--init [--init-force] |
scaffold this project's .agentorchestr/ |
--detect |
show installed agents + LLM keys + deps |
--list-sessions |
recent sessions, resumable ones flagged |
--resume <id> |
pick up a paused or crashed session |
--dashboard |
run the FastAPI dashboard |
--attach / --no-attach |
force / suppress auto-attach to tmux |
--skill-add/list/verify/remove |
skill marketplace |
--require-signed-skills |
refuse unsigned skills |
--doctor |
comprehensive health check (exit 0 = healthy) |
--version |
print version and exit |
Security model
-
--dangerously-skip-permissionsis passed to Claude/OpenClaude/Amp automatically. This is intentional — the supervisor drives the agent non-interactively and needs it to accept tool calls without prompting. Only run agentorchestr in projects you trust. -
Worker prompts are written to files inside each git worktree and fed to agents via
bash -lc 'agent "$(cat prompt_file)"'. The$(cat …)substitution is literal — shell metacharacters inside the prompt are NOT re-evaluated (verified). -
MCP server binds to
127.0.0.1only. The port is random and written to the agent's MCP config file for the duration of the session. -
Skills with
--require-signed-skillsare verified against an ed25519 public key bundled in the skill directory. Unsigned skills are allowed by default; use the flag in production.
Known limitations
- tmux required for the full multi-pane UX. Without tmux,
--manualmode still works via subprocess. - Max 5 panes per tmux window (1 lead + 4 workers). Past that, workers
spill into
agentorchestr-2,agentorchestr-3, … windows automatically. - MCP required for auto mode. Install with
pip install 'agentorchestr[mcp]'. - Hosted LLM keys are needed for the router (planning/compression). The agents themselves use their own auth.
- Linux / macOS only. Windows is not supported (PTY + tmux dependency).
Requirements
- Python 3.11+
- tmux 3.0+ (recommended)
- git (for worktrees)
- Optional:
zeroconf,sqlite-vec,fastembed,ddgs,cryptographyorpynacl
License
MIT.
Metadata
Release files for agentorchestr 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| agentorchestr-0.9.0.tar.gz | 120.3 kB | With provenance | Details for agentorchestr-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| agentorchestr-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for agentorchestr-0.9.0-py3-none-any.whl |
Total release size: 223.9 kB
Release files / agentorchestr-0.9.0.tar.gz
| Download URL | agentorchestr-0.9.0.tar.gz |
|---|---|
| Size | 120.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75120c8bfae09054bc4dfd40217b35e92c88c86152769b236c17b52cc5cd7a04
|
|
BLAKE2b-256 checksum How to use checksums |
7a061940deb2d4d98fbbf155426ffa2e7ad666a9e71ae5996d0adec4a7800af8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logRelease files / agentorchestr-0.9.0-py3-none-any.whl
| Download URL | agentorchestr-0.9.0-py3-none-any.whl |
|---|---|
| Size | 103.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbb16770546e54f48d7001104ad1bba8c344c6c1fde7110b9ee4eeb30874547f
|
|
BLAKE2b-256 checksum How to use checksums |
c96655b9ed06706d93c4053b797dc708a007b316d4f79c9cc9405f24d6a55492
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logSecurity for agentorchestr 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for agentorchestr-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 2, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.