Orch
Your coding agent doesn't choose its own model, and Orch puts mechanical bounds on what it may write.
Left to itself, a coding agent picks its own model for every task, and it can write to any file it can reach. That's fine until the model is wrong for the job — too expensive for something trivial, or too weak for something that actually matters — or until a change lands somewhere you didn't intend it to.
Orch sits underneath the CLI you already use (Claude Code, Codex CLI, or OpenCode V2) and takes over those two decisions. By default it puts the repository in Assist: a mechanical, read-only mode where the agent can look around, search, explain and plan, but a write to a file git does not ignore is refused before it happens. When you approve a plan, Orch enters Delivery: each task becomes a GitHub issue with its own isolated git worktree, gets implemented there, is reviewed by a separate agent dispatch, runs CI, and is merged only after you approve it (before autonomy grants, #353, always you in person; now also an autonomy grant you created, on a Claude Code run, within its limits and stops). Which model handles which job is not the agent's call either — you route it, per role, to an exact model version and host-native execution profile.
The payoff: cheap, fast models handle read-only exploration and mechanical work, a frontier model gets spent only where the plan calls for it, and every change that lands is auditable and gated by a human at the one step that matters — the merge. Before #353 that gate was always a person; now a person may delegate it to an autonomy grant they created, and the record names the grant, never a person.
Jump to Quickstart → · See how it works →
How it works
Two modes. A repository running Orch is in exactly one of two states. Assist is the default and is read-only: the agent can read anything, search, explain and plan, but a write to a file git does not ignore is refused. Delivery is entered only for a plan you have read and approved. Each task in that plan becomes a GitHub issue, a branch, and its own git worktree; the work happens there, lands as a pull request, is reviewed by a separate agent, runs CI, and waits for you to approve the merge. When every task is merged or abandoned, the run's last step puts the repository back in Assist.
Six roles. Delivery work is split across roles, and you pin each one to an exact model version and host-native execution profile:
| Role |
What it does |
| Architect |
Plans the work, drives the pipeline, talks to you — your strongest model |
| Scout |
Read-only exploration and fact-finding — cheap and fast |
| Implementer |
Writes the code inside the issue's worktree |
| Specialist |
Takes the issues routing marks risky or unusually difficult |
| Reviewer |
Reviews the pull request in a separate dispatch from the one that wrote it |
| Review downgrade |
A cheaper reviewer, allowed only when the plan affirms all four of mechanical, low-risk, fully specified, unsurprising |
Which role gets an issue is derived from the issue's own facts by a deterministic table, not chosen by the model that will run it. The reviewer is always a separate dispatch — never the session that wrote the code — though under the shipped defaults it is often the same model on both sides. What Orch guarantees is the independent dispatch and the recorded routing, not model diversity; pin different models per role (the Settings table below) if you want that too.
The guard. None of the above is an instruction the agent is asked to honor. Claude Code and Codex CLI wire their pre-write hooks to orch guard; the OpenCode V2 plugin calls the same guard before its edit, write, and patch tools. In Assist it denies every write to a file git does not ignore. In Delivery it allows a write only inside a worktree registered to the running plan, on that worktree's registered branch, in a phase where writing is allowed. Git internals are never writable, and neither is the orchestrator state your session is running against. It fails closed: anything it cannot establish is a denial. What it enforces is containment — it cannot tell which role is writing, and a file written by a shell command never reaches it at all (see Known issues).
Concretely, asking for a change goes like this:
- You describe what you want. The Architect plans it in Assist and shows you the plan: one issue per task, each carrying the model, effort and reviewer it will get and why.
- You approve it or send it back. Approving is what enters Delivery.
- Each issue gets a branch and a worktree. An implementer or a specialist does the work there and pushes.
- A reviewer reviews the pull request. CI runs.
- You approve the merge, and it runs against GitHub pinned to the commit that approval names — it fails closed if the pull request moved after that.
Each issue then walks the engine's Delivery pipeline, phase by phase:
The full product definition lives in ORCH-PRD.md.
Quickstart
Have your agent do it — recommended: one prompt, pasted into Claude Code, Codex CLI, or OpenCode V2
Paste this into a Claude Code, Codex CLI, or OpenCode V2 session, started anywhere.
It does not assume you have cloned this repository.
Install the Orch development orchestrator (https://github.com/kninetimmy/orch)
on this machine. Work in a scratch directory, not in one of my projects.
1. Detect my OS and run the matching installer:
- Linux or macOS: download
https://raw.githubusercontent.com/kninetimmy/orch/main/install.sh
and run it with `sh install.sh`
- Windows: download
https://raw.githubusercontent.com/kninetimmy/orch/main/install.ps1
and run it with
`powershell -ExecutionPolicy Bypass -File .\install.ps1`
The installer downloads the release binary for this OS and architecture
and verifies its SHA-256 against the release's published SHA256SUMS
before installing anything. If that verification fails, STOP and report
the failure to me. Do not retry with verification skipped, do not fetch
the binary another way, and never install an unverified binary.
2. Confirm that `orch` resolves on PATH and that `orch status` prints a
release version on its first line — a line beginning `orch:` and giving
a release tag such as v0.7.0. Run it from anywhere: outside an
initialized repository it prints that version line first and then exits
non-zero saying the repository is not initialized, which is expected
here. On Windows the installer adds its install directory to my user
PATH and a new terminal is needed to pick that up: if `orch` is not
found, ask me to open a new terminal rather than guessing or editing
PATH yourself.
3. Install the plugin for the host you are running in. Use exactly these
commands:
- Claude Code:
claude plugin marketplace add kninetimmy/orch
claude plugin install orch-claude@orch
- Codex CLI:
codex plugin marketplace add kninetimmy/orch
codex plugin add orch@orch
- OpenCode V2: it is not a Codex marketplace plugin. Run
`git clone https://github.com/kninetimmy/orch.git "$HOME/orch"`
and `npm ci --prefix "$HOME/orch/adapters/opencode"`, then add
the absolute path to `$HOME/orch/adapters/opencode/src/index.js`
to the `plugins` array in `opencode.json`. Restart OpenCode V2,
then run `opencode2 --version` and
`opencode2 api get /api/plugin`; require beta 18314 or a newer
numeric beta runtime and exactly one `orch.delivery` plugin entry
before relying on enforcement.
4. Codex CLI only. Skip this entire step on Claude Code and OpenCode V2:
a. Add both of these stanzas to ~/.codex/config.toml, leaving any
existing content in place:
[tools.experimental_request_user_input]
[features]
default_mode_request_user_input = true
b. Tell me that Codex CLI shows a one-time trust prompt for the
plugin's bundled hooks, that approving it is an action only I can
take, and that the hooks do not run at all until I approve it. Do
not report the install as finished as though the hooks were live.
5. Run `orch doctor` and report its full output to me, including every
note and every failing check. When run outside an initialized
repository it reports the git-repository and configuration checks as
failures; say so rather than hiding it.
6. Tell me to restart this CLI before relying on any of it, and to treat
the hooks as not yet running until I have. Do not assume a plugin
installed mid-session is live in this session. The tell that it took
is an Orch block at session start inside an initialized repository.
7. Finish by telling me all three of these: `orch init` has to be run once
inside every repository I want orchestrated; Orch does nothing at all
in a repository that has not been initialized; and `orch init` does not
write the configuration into my working tree — it opens a pull request
carrying .orchestrator/config.toml for me to review and merge. After
that PR is merged, `orch render-agents` must be run in the repository;
it generates project definitions for every enabled host and must be
rerun after role configuration or Orch changes. This command is the
one per-repository workflow for all enabled hosts.
Then initialize each repository you want orchestrated
Installing the binary and the plugin sets up the machine. It does not
touch any repository. In a repository that has not been initialized,
Orch does nothing.
Run orch init from the root of each repository you want orchestrated.
It detects your environment (hosts, git, gh, memhub), interviews you
about which hosts to enable and which models each role should use —
every question has a default — and then bootstraps itself through its
own pipeline: .orchestrator/config.toml arrives as a pull request you
review and merge, not as a silent write to your working tree.
Delivery additionally needs git and the
GitHub CLI (gh) authenticated against the
repository's remote. Assist works without a remote.
Each adapter's README carries its host's exact install order and its
own known limitations, worth reading once for the host you use:
Claude Code,
Codex CLI, and
OpenCode V2.
Install it yourself — scripts, plugins, manual download, source builds
Quick install (script). Both scripts download the release binary for
your OS and architecture, verify its SHA-256 against the release's
SHA256SUMS before installing, and fail closed on any mismatch.
Linux / macOS — installs to ~/.local/bin (override with
ORCH_INSTALL_DIR); pin a version with ORCH_VERSION=v0.7.0:
curl -fsSLO https://raw.githubusercontent.com/kninetimmy/orch/main/install.sh
# inspect it, then:
sh install.sh
Windows (PowerShell) — installs to %LOCALAPPDATA%\Programs\orch and
appends that directory to your user PATH; skip the PATH change with
-NoPathUpdate, pin a version with -Version v0.7.0:
iwr https://raw.githubusercontent.com/kninetimmy/orch/main/install.ps1 -OutFile install.ps1
# inspect it, then:
powershell -ExecutionPolicy Bypass -File .\install.ps1
Adapter install. With the binary on PATH, Claude Code and Codex
CLI install their adapters from this repository's shared marketplace
manifest:
# Claude Code
claude plugin marketplace add kninetimmy/orch
claude plugin install orch-claude@orch
# Codex CLI
codex plugin marketplace add kninetimmy/orch
codex plugin add orch@orch
One manifest (.claude-plugin/marketplace.json) serves those two hosts,
and the other host's entry may show up in your listing too — install
yours by its exact name: orch-claude on Claude Code, orch on Codex
CLI. OpenCode V2 is npm-native, not a marketplace adapter: install the
local adapters/opencode/ package and configure its plugin module as
documented in its README. Then follow the host-specific steps in the adapter
READMEs — Claude Code,
Codex CLI,
OpenCode V2. Codex CLI needs
two more things the plugin install cannot do for you: the one-time hook
trust approval and the two request_user_input stanzas in
~/.codex/config.toml. Every initialized repository, on every enabled host,
also needs orch render-agents after initialization, role-configuration
changes, and upgrades.
Adapter upgrade (existing installs). Do not repeat the first-install
commands above. Upgrade the configured host's marketplace and adapter:
# Claude Code
claude plugin marketplace update orch
claude plugin update orch-claude@orch
# Codex CLI
codex plugin marketplace upgrade orch
For OpenCode V2, update the local checkout and run npm ci --prefix adapters/opencode again; see its README for the exact commands and
plugin-ID check. Restart Claude Code, Codex CLI, or the OpenCode V2
service after upgrading its adapter so the new hooks and skills are loaded.
Engine and manual-adapter compatibility. The compatibility baseline at
source revision 611c645 uses state schema 6, approval contract 1, and these
manual wire versions: Gate 3, Status 4, Activation 2, Dispatch 4, Review 3,
Escalate 2, Block 2, Resume 2, and Resolve Block 1. The Claude and Codex
adapter version 0.12.0 is paired with engine v0.15.0; version 0.11.1 was
paired with engine v0.14.1, version 0.11.0 with engine v0.14.0, and version
0.10.0 with engine v0.13.0 and v0.13.1. Engine v0.15.0 keeps the manual wire
versions above, state schema 6 and metrics document schema 2 unchanged from
v0.14.1. orch doctor reports an installed 0.11.1 adapter as a version
mismatch. The OpenCode package stays 0.12.0 because none of its files changed
since v0.14.1; its exported source is unchanged, and its agent
definitions are embedded in the engine and written by orch render-agents.
Engine v0.14.1 and earlier refuse a config that contains a [protected]
section, so upgrade the engine on every machine that uses a repository before
that repository's list is merged.
Because #358 changed the agent definitions on all three hosts in v0.13.0, when
upgrading from a release before v0.13.0 re-run orch render-agents in every
project that uses Orch. Release and adapter version labels describe compatibility, while
the source revision and build identity identify the code that was built.
After upgrading, re-run orch render-agents in every project that uses the
Claude host. Claude project agent definitions now carry the routed effort in
their frontmatter, so an existing definition rendered before the upgrade is
reported stale by orch doctor and Claude Delivery activation until it is
re-rendered.
Update the engine and the configured manual adapter together while the
repository is in Assist, then restart the host and run orch doctor --host claude|codex. Never replace either half during an active run. Finish an older
run with its original engine and adapter, or explicitly run orch abort and
seek fresh plan approval; active runs are not migrated. See
decision-block recovery for the persisted
state and approval boundary.
These manual doctor and activation checks cover the contracts above. Driver
protocol, subscription authentication, and isolation checks remain future
preflights; they do not establish native Windows Claude isolation, unattended
execution, or compatibility on untested platforms.
Manual download. Take the static binary for your OS and
architecture from
GitHub Releases
(orch_<os>_<arch>; Windows assets end in .exe), then verify its
SHA-256 against the SHA256SUMS file published with that release
before running it:
# Linux / macOS
sha256sum --check --ignore-missing SHA256SUMS
# Windows (PowerShell): compare against the matching SHA256SUMS line
(Get-FileHash orch_windows_amd64.exe -Algorithm SHA256).Hash
Rename it to orch (or orch.exe) and put it on your PATH. orch status and orch doctor each print the binary's release version on
their first line.
Build from source. Go 1.26+; source builds report version dev:
git clone https://github.com/kninetimmy/orch.git
cd orch
go build ./cmd/orch # produces ./orch (orch.exe on Windows)
or install straight onto your PATH:
go install github.com/kninetimmy/orch/cmd/orch@latest
What you actually get
- Read-only by default. Assist mode mechanically denies every write to a file git does not ignore — not a convention the agent is asked to honor, but a decision
orch guard makes before the write happens.
- You route the model, not the agent. Six roles — architect, scout, implementer, specialist, reviewer, and a cheaper review downgrade — each pin an exact model version and host-native execution profile you choose, so a cheap model handles read-only work and a frontier model is spent only where the plan calls for it.
- Every issue gets its own worktree. Delivery work happens on its own branch, in its own isolated git worktree, never in your primary checkout.
- A separate dispatch reviews the work. The pull request is reviewed in a dispatch separate from the one that wrote it — never the same run marking its own homework.
- You hold the merge gate. Nothing lands on your default branch until you approve it, and the merge fails closed if the pull request moved after your approval.
- Every issue and PR carries an audit record. The exact model, its execution profile, how the host delivered that profile, and the routing rationale are recorded on the issue and mirrored onto its pull request.
- Works with the CLI you already use. Orch works with Claude Code, Codex CLI, and OpenCode V2, so you keep working in the agent you already have.
Day to day
orch help lists every command, human and plumbing, in one place:
usage: orch <command>
commands:
init Interview and bootstrap this repository
status Show mode and configuration summary
doctor Check environment and configuration health
configure Interview and deliver committed configuration changes
configure-local Interview and apply machine-local overrides
resume Reconcile an interrupted Delivery run against GitHub and continue
abort Stop dispatch and return to Assist
metrics Show local metrics (`metrics report` rolls up every run; `metrics record` records JSON observations)
eval Evaluation preview/run/status/stop/report (eval help for arguments)
grant Show the active autonomy grant; grant revoke ends it; grant relay hands it to a fresh Claude Code session; grant preview and grant create propose and record one (JSON stdin/stdout)
render-agents Render project agent definitions for every enabled host
run Adapter plumbing: Delivery run verbs (JSON stdin/stdout; not a human command)
guard Adapter plumbing: pre-write enforcement for host hooks (not a human command)
hook Adapter plumbing: host lifecycle-event verbs (not a human command)
The last three rows — run, guard, hook — are what the host
adapters call for you; you never invoke them by hand.
Previously metrics only accepted its read-only report form. That form still
works; metrics record now accepts durable observation JSON. See the
observation contract and compatibility notes.
Before issue #351, orch grant was absent from help and exited 2 as an
unknown command. Now orch grant prints the active autonomy grant (or says
none is active), orch grant revoke ends it, and orch grant preview /
orch grant create are the JSON plumbing an adapter uses to show a grant and
record it from the user's digest-bound approve-autonomy-grant approval.
Grants are machine-local, kept in the clone's git common directory. Before
#353 no command approved anything under a grant; now orch run activate
(statement grant-approve-and-enter-delivery) and orch run merge
(statement grant-approve-merge) accept an approval from the active grant
on a Claude Code run, approver grant:<id>, past the stops ORCH-PRD.md §8
lists, and orch grant lists each approval given. orch grant relay takes no
arguments: run by the session currently holding the grant, it starts a
background Claude Code session (claude --bg) with Remote Control on, in the
permission mode the grant records, and makes that session the holder. orch grant lists the holders in order.
To prepare an evaluation of an Orch change, see the
evaluation workflow and its
measurement contract. Before issue #312,
orch eval was unimplemented and absent from help. Now
orch eval preview --plan FILE [--json] validates version 1 local JSON, freezes
the bounded schedule and retains an immutable public preparation record under
an explicit existing local root outside the checkout, Git metadata and declared
worker/scratch locations. A valid blocked preview exits successfully; it grants
no approval. Its storage is unverified against worker access. Before issue #316,
"Evaluation execution, stop/status/report and protected runtime storage remain
proposed; unsupported evaluation verbs fail explicitly." After that increment,
orch eval run --plan sha256:DIGEST --storage-root ROOT [--approval FILE] [--json]
returns the frozen scope and requires a single-use, digest-bound human assertion.
Before issue #323, "Production attempts still refuse." After that increment,
version-2 plans can execute through the checked native boundary with declared
approved instructions and a matching clean controller build. Legacy and
unsupported contexts refuse. status and stop take --run ID --storage-root ROOT [--json]; report takes those selectors plus --format text|markdown|json. Every terminal outcome retains immutable report bundles;
reports also expose incomplete snapshots. See orch eval help and the workflow
for the approval format, strict arguments, exit codes and recovery limits.
Before issue #318, semantic grades and disputes remained unknown and grade
was unsupported. Now orch eval grade --run ID --storage-root ROOT --unit N --attempt N --submission FILE [--json] retains evidence-backed evaluator
assertions, with immutable corrections and initial/final coverage. See the
grading input and trust contract. Unknown or
disputed judgments remain unknown; scripted preparation never becomes model
trial acceptance. Existing execution records and older reports stay unchanged.
Before #323 this section listed worker-access/model-tool validation as
outstanding. The native boundary now checks enforcement and declared context
per attempt; separately approved live trials and the measured baseline remain
outstanding. Phase 1 is open. Existing metrics
and Delivery/configuration/merge gates retain their prior contracts.
The initial preview admitted Windows SUBST drive aliases during placement
checks, allowing a record to land inside an excluded worker location. After the
review repair, every preview directory uses Windows' handle-resolved drive-root
identity and rejects aliased or unverifiable roots, including aliases on the
excluded-path side. Worker-access protection remains unverified.
On Claude Code the three interviews also have slash commands:
/orch:init, /orch:configure, /orch:configure-local.
Settings — what you can tune
Configuration lives in two TOML files under .orchestrator/:
config.toml — committed to git, shared by everyone working on
the repository. Changed with orch configure, which delivers the
edit as a reviewable pull request.
config.local.toml — machine-local and gitignored, for personal
preferences. Changed with orch configure-local, applied directly.
The split is a closed table over every key in the schema, not a
convention: policy keys can only live in the committed file, so a
local override can never weaken a shared workflow rule.
| Setting |
Values (default) |
Local override? |
hosts.claude / hosts.codex / hosts.opencode |
enable a host by giving it a role table |
no (committed) |
hosts.<host>.roles.<role>.model |
exact model version string |
yes |
hosts.claude.roles.<role>.effort / hosts.codex.roles.<role>.effort |
low medium high xhigh max (+ ultra on codex) |
yes |
hosts.opencode.roles.<role>.variant |
model-specific variant; omit when committed or set "" locally for bare provider/model |
yes |
hosts.opencode.roles.<role>.effort |
v0.8.0 compatibility alias for the same-named variant |
existing files continue to load |
concurrency.max_subagents |
integer ≥ 1 (3) |
yes |
metrics.enabled |
true / false (false when omitted) |
yes |
merge.strategy |
squash rebase merge-commit (squash) |
no (committed) |
memhub.mode |
required best-effort off (no default — you choose) |
no (committed) |
Every enabled host carries the same six roles: architect, scout,
implementer, specialist, reviewer, and review_downgrade (the
cheaper reviewer Orch may use only when the plan affirms all four of
mechanical, low-risk, fully specified and unsurprising — claims routing
takes at face value rather than checks). Each role
names one model string; the interview offers exact versions rather
than tier aliases, and whatever string is configured is the one that
lands in the audit record, so the record says what ran instead of what
tier it belonged to. The defaults orch init offers:
| Role |
Claude Code |
Codex CLI |
OpenCode V2 |
| Architect |
claude-opus-5-5 / xhigh |
gpt-6-astra / xhigh |
openai/gpt-5.6-sol#xhigh |
| Scout |
claude-sonnet-5-5 / medium |
gpt-5.6-luna / max |
openai/gpt-5.6-luna#max |
| Implementer |
claude-sonnet-5-5 / high |
gpt-6.1-sol / xhigh |
openai/gpt-5.6-terra#max |
| Specialist |
claude-opus-5-5 / high |
gpt-6.1-sol / max |
openai/gpt-5.6-sol#max |
| Reviewer |
claude-opus-5-5 / high |
gpt-6-astra / medium |
openai/gpt-5.6-sol#xhigh |
| Review downgrade |
claude-sonnet-5-5 / high |
gpt-6.1-sol / high |
openai/gpt-5.6-sol#high |
These Codex defaults apply to fresh setup and newly enabled hosts. Existing
committed profiles and machine-local overrides keep their selections. Codex
model questions show at most four choices, including Astra, Sol 6.1 and the
current default; use Other for any prior or custom exact model ID. To adopt the
profiles in an existing repository, use orch configure for shared selections
or orch configure-local for this machine, then run orch render-agents after
the change is applied. Follow the Codex install order
when updating the engine and adapter; installing alone does not rewrite profiles.
Before optional OpenCode variants, OpenCode reused the effort key and always
rendered it as a #variant suffix. New OpenCode configuration uses optional
variant, so a model with no variant stays a bare provider/model (omitted in
committed config, or variant = "" in a local override); committed and local
schema-v1 effort values from v0.8.0 still load with the same
effective selection and configuration revision. This exception is OpenCode-only;
Claude Code and Codex keep their existing model/effort configuration and routing.
On the minimum supported opencode2 v0.0.0-beta-18314 runtime, or a newer
numeric beta that passes the same contract checks, OpenCode setup reads the
repository's live, location-validated catalog. Each of the six roles independently
chooses any enabled, tool-capable text model, so one profile may mix providers and
models. A second question offers only the selected model's advertised variants;
models with none remain bare. Catalog choices use deterministic two- or
three-choice native pages with explicit previous/next navigation, and every model
appears exactly once. A one-model page adds cancel rather than emitting a
host-invalid one-choice dialog.
If catalog discovery fails or returns no agent-capable model, initialization and
OpenCode role edits stop with the discovery error; unrelated configuration edits
preserve the existing OpenCode roles. Delivery activation rechecks all six exact
selections and fails before mutation when a provider, model, or variant is no
longer available. The plugin compares only the main session's selected model to
the configured Architect reference: a mismatch adds a warning but never switches
the session automatically, and child sessions are not compared to the Architect.
Typical tuning: point a role at a bigger or smaller model on one
machine with configure-local (run the Architect on a frontier model
only where you have the subscription), raise max_subagents on a
machine that can take it, or turn on local metrics while experimenting.
orch status reports how many overrides are in effect and orch doctor names the exact keys they set, so a machine-local change is
never invisible.
Memhub integration
memhub is an external, optional, local-first per-repository
project-memory CLI. Orch talks to it when it is present but neither
requires it nor ships it: set memhub.mode to off and Orch never
looks for it.
memhub.mode is committed, in config.toml, and has three values:
off — memhub is skipped entirely: no probes, no doctor checks.
best-effort — memhub's health and recall are probed and
reported, but a failure never blocks anything.
required — Delivery planning fails closed if either probe
fails: the plan gate refuses to activate the run.
Both the plan gate and orch doctor run the same two-step check: a
memhub status health probe, then — only if that succeeds — a memhub recall against a fixed canary query, so a wedged retrieval path that
still exits 0 is caught rather than trusted. orch doctor is
mode-aware: off prints a skip note, best-effort reports the result
as a note without failing, and required fails the check outright.
Orch's own memhub client is read-only: it probes and recalls, and
never writes, renders, reindexes or syncs. Writes are the Architect's
alone, and that boundary is stated in the skills rather than enforced
mechanically — a subagent carrying a shell can reach the memhub CLI
too. Anything a subagent wants remembered comes back in its report.
Every memhub command runs with the primary checkout as its working
directory, never inside a per-issue worktree, because worktrees never
receive a copy of the memhub database.
v0.15.0 release target
- Relay stop for the previous grant holder.
orch grant relay now reports
whether the session that ran it is a background session, an interactive
session or of unknown kind. When the successor starts, its session-start hook
stops a background predecessor with claude stop, never claude rm, so the
conversation is kept. An interactive predecessor is never stopped by Orch: the
successor asks you to end it with /exit. If listing or stopping fails, the
hook names the claude stop command to run by hand —
#399.
- Grant protection that left the binary. Before v0.15.0 the engine itself
protected Orch's own source: the paths the #366 and #391 entries name (the
kill switch, the grant hooks, the transcript reader,
orch run pr-open, and
every adapter's skills, hooks and agents directories) and the rest of its
compiled list. From v0.15.0 those paths are protected only when a repository's
committed [protected] list in .orchestrator/config.toml names them. The
built-in floor protects every repository: instruction files (CLAUDE.md,
AGENTS.md), git attributes and ignore files, CI workflows, the
.orchestrator directory, the license, and dependency manifests, lockfiles
and install or build scripts at any depth. Each [protected] entry is a
repository-relative path and a one-line reason, and the section records the
survey methodology version it was approved under. From v0.15.0 orch grant preview, orch grant create and grant-approved merges refuse in every
repository, Orch's own included, until that repository's [protected] list is
approved through /orch:configure or /orch:init at the binary's survey
methodology version; a merge that a grant cannot approve comes to you. The
#366 and #391 entries above are left as written, describing what v0.13.0 and
v0.14.1 did —
#400.
- Survey and approve the protected list.
/orch:init and /orch:configure now
ask for the repository's [protected] list: the answer can be deferred, an
approved empty list, or a list of path and reason entries, and configure
offers it by default when the committed list is missing or from another
methodology version. The orch-setup skill ships the survey methodology and
tells the Architect to survey with orch-scout subagents and let you add,
drop or defer entries before the answer is submitted. A Claude session start
shows a one-line note while the repository's list is missing or out of date —
#401.
- What has run live since v0.14.1. The run that delivered #399, #400 and #401
was the first Claude Delivery run on an installed 0.11.1 adapter. You approved
every gate and no grant was active. The Architect started the 60-second timer
before each usage wait, and no subagent notification wait stalled.
- What has not happened yet.
claude stop on a background predecessor has not
run live. The protected-paths survey has not run from an installed adapter.
No grant has run under the floor-plus-list rules.
Engine release v0.15.0 pairs with Claude/Codex manual-adapter version 0.12.0 and
OpenCode package 0.12.0; these are separate identities, and 0.11.1 was paired
with v0.14.1. The Claude/Codex version moved because the Claude orch-delivery
and orch-setup skills changed. A Codex install must also move to 0.12.0
because the two share one version that orch doctor checks exactly, so orch doctor reports an installed 0.11.1 adapter as a version mismatch, although no
Codex adapter file changed. The OpenCode package stays 0.12.0 because none of
its files changed since v0.14.1. The manual wire versions, state schema 6 and
metrics document schema 2 are unchanged from v0.14.1. Agent definitions and hook
configuration are unchanged since v0.13.0, so orch render-agents does not need
to be re-run when upgrading from v0.13.0 or later. Engine v0.14.1 and earlier
refuse a config that contains a [protected] section (the installed v0.14.1
orch status fails with unknown keys: protected, protected.methodology_version),
so upgrade the engine on every machine that uses a repository before that
repository's list is merged. To upgrade, update the engine and the configured
Claude or Codex adapter together between runs (see the upgrade commands above),
restart the host and run orch doctor --host claude|codex. Then approve each
repository's [protected] list through /orch:configure before starting a
grant.
v0.14.1 release target
- Bounded wait for a subagent's task notification. The Claude
orch-delivery
skill now tells the Architect to start a background timer of about 60 seconds
before ending its turn to wait for a subagent's task notification. If the
notification has not arrived when the timer completes, the Architect makes
the orch run pr-open or orch run review call with usage omitted instead
of stalling until something else wakes it. This changes the Claude skill
only —
#392.
- Grant protection for every adapter's skills. Every path under
adapters/<any adapter>/skills/ is now grant-protected, so an autonomy grant
can no longer approve the merge of a PR that changes any host's Orch skills;
such a merge comes to you —
#391.
- Merge approval stated at run start. When a run starts while a grant is
active, the Claude Architect now tells you in a push notification, for each
issue, whether the grant can approve its merge or it will come to you, and
why —
#393.
- What has run live since v0.14.0, all on native Windows with Claude Code
2.1.301, engine v0.14.0 and adapter 0.11.0. Architect usage capture (#385)
ran on the released v0.14.0 and, in run
run-20261018T171010Z-4b23ae0c
(which delivered #391 through #393), recorded the Claude Architect's own
token counters and the run's host at completion for the first time. In that
run the Architect followed the bounded wait #392 describes by hand: of six
subagent hand-backs, three arrived with their task notification already
present and three got a 60-second background timer, and no wait stalled.
- What has not happened yet. #392's text itself has not run from an installed
adapter. #393's run-start statement has not run under a grant. Whether
CLAUDE_CODE_SESSION_ID changes after /clear has not been checked, and
resume and fork have not been checked live.
Engine release v0.14.1 pairs with Claude/Codex manual-adapter version 0.11.1 and
OpenCode package 0.12.0; these are separate identities. The Claude/Codex
version moved because the Claude orch-delivery skill changed. A Codex install
must also move to 0.11.1 because the two share one version that orch doctor
checks exactly, although no Codex adapter file changed. The OpenCode package is
unchanged. The manual wire versions, state schema 6 and metrics document schema
2 are unchanged from v0.14.0. Agent definitions and hook configuration are
unchanged since v0.13.0, so orch render-agents does not need to be re-run when
upgrading from v0.13.0 or later. To upgrade, update the engine and the
configured Claude or Codex adapter together between runs (see the upgrade
commands above), restart the host and run orch doctor --host claude|codex.
v0.14.0 release target
- Claude subagent usage from the task notification. The Claude
orch-delivery
skill now tells the Architect to wait for a subagent's task notification
before calling orch run pr-open or orch run review for its work, and to
fill usage and executor_usage from the notification
(subagent_tokens as total tokens, and duration_ms), never from the
hand-back that arrives first and carries no usage. Usage is omitted, not
estimated, when no notification has arrived or for a fix cycle done by a
subagent resumed with SendMessage. The skill also shows how to record each
scout's usage with orch metrics record, including scouts that ran before
activation, and a test parses every example observation in it with the
engine's parser. This changes the Claude skill only, and no engine behavior —
#376.
- Cross-run metrics report.
orch metrics report prints one read-only rollup
across every recorded run and writes no file. Issue outcomes are grouped by
role, executor and reviewer profile, reviewer downgrade and approval source,
with merged, abandoned and blocked counts, escalations, first-review
approvals and review cycles. A dimension a run did not record is its own
unknown group, token counters are summed only within one host, source and
stream with no total across groups, and run time is wall-clock time from the
first to the last recorded event, not active time —
#377.
- Codex spawn-source test. This is a test-only change: it adds a test to
internal/codexusage that fails if the check that a Codex child rollout names
its parent were made to pass unconditionally. It changes no behavior for a
user of orch —
#381.
- More facts in run metrics. A run activated by this release records its host,
and each issue's activate event records the risk domains, unusual difficulty
and four downgrade facts its plan declared. The
pr-open and merge events
record the PR number, and a review that blocks its issue records whether a
wrong criterion or the autonomy grant's fix-cycle limit caused it. Events and
documents written before this release keep reporting those facts as
unknown, never as false. orch metrics report breaks outcomes down by host
and by each routing fact and counts blocking reviews by cause apart from
request-changes fix cycles —
#382.
- Escaped defects. A plan issue may carry a
fixes list of merged PR numbers.
orch run plan refuses a number that is not positive or is repeated,
orch run activate refuses before creating anything when a listed PR does not
exist or is not merged, the plan gate and the GitHub issue body show the PRs
fixed, and the plan_digest is unchanged for a plan that lists none.
orch metrics report attributes each fixed PR to the original issue's run,
profiles and review history, counts it under that issue's outcome group, and
counts fixed PRs no recorded merge names as unattributed. The PlanDoc section
of the orch-delivery skill documents fixes on all three hosts —
#383.
- Claude Architect usage. When a Claude-host run completes with metrics enabled,
orch run complete records the Architect's own input, output, cache-read and
cache-creation tokens, read from the transcripts of the Claude Code sessions
that ran an orch run verb other than status, between activation and
completion and counting each assistant message once. The SessionStart hook
records each starting session's id and transcript path under
.orchestrator/metrics/claude-sessions/ for this, prints the same text and
exits the same way as before, and with [metrics] enabled = false nothing new
is written. A session whose usage cannot be established is recorded as
unavailable with a reason, not guessed, and orch metrics report shows the
recorded counts as architect usage —
#385.
- What has not happened yet. Architect usage capture (#385) has not run on a
released binary. Whether
CLAUDE_CODE_SESSION_ID changes after /clear has
not been checked; if it does not, Architect usage after a /clear is missed.
Resume and fork have not been checked live, and a forked session that runs an
orch run verb is reported as transcript-path-unrecorded. Architect usage
capture recognizes only Claude Code 2.1.289, 2.1.295 and 2.1.301
transcripts.
- What has run live since v0.13.1, all on native Windows with Claude Code
2.1.301 and engine v0.13.1. The corrected
orch grant relay recorded as
holder the session that claude agents --json listed and whose own
CLAUDE_CODE_SESSION_ID matched (2026-10-17), and has since handed one grant
on three more times (2026-10-18). A push from a background session arrived
with the phone app closed (2026-10-17). One grant approved two plans and the
merges of #376 and #377 (2026-10-18). With /autocompact set to 100k the
grant holder passed about 132k tokens without compacting while a session
holding no grant compacted, but the holder showed no sign that the PreCompact
block ran (2026-10-17).
Engine release v0.14.0 pairs with Claude/Codex manual-adapter version 0.11.0 and
OpenCode package 0.12.0; these are separate identities. Both adapter versions
moved because the orch-delivery skill changed on all three hosts (#376 on
Claude, #383 on all three). The manual wire versions, state schema 6 and
metrics document schema 2 are unchanged from v0.13.1; #382, #383 and #385 added
optional fields under document schema 2. An orch binary older than v0.14.0
refuses a metrics document that carries a field added by #382, #383 or #385
rather than ignoring it. Agent definitions and hook configuration are unchanged
since v0.13.0, so orch render-agents does not need to be re-run when
upgrading from v0.13.0 or v0.13.1. To upgrade, update the engine and the
configured Claude or Codex adapter together between runs (see the upgrade
commands above), update the OpenCode package checkout and run npm ci --prefix adapters/opencode, restart the host and run orch doctor --host claude|codex.
v0.13.1 release target
- Relay fix for Claude Code 2.1.301. On 2.1.301
claude --bg ignored the
--session-id that orch grant relay passed and started a session under an
id of its own, so on v0.13.0 the relay's own check refused to record it and
failed closed with the holder unchanged. The relay now records the full
session id of the one background session claude agents --json lists under
the short id claude --bg printed. If it cannot identify exactly one such
session it fails with the record unchanged and names claude stop <id> for
the background session that was started —
#371. See the orch grant relay entry under known issues and limitations for the before and after.
- What has not happened yet. The corrected relay has not yet run live. The push
from a background session and the PreCompact block have not been checked live
either, and no plan or merge has been approved under a grant.
Engine release v0.13.1, the unchanged Claude/Codex manual-adapter version 0.10.0
and the unchanged OpenCode package 0.11.0 are separate identities; this release
changes no adapter or plugin artifact. The manual wire versions and state schema
6 are unchanged from v0.13.0. To upgrade, update the engine between runs (see
the upgrade commands above), restart the host and run
orch doctor --host claude|codex; an installed 0.10.0 adapter and the 0.11.0
OpenCode package need no update, and orch render-agents does not need to be
re-run.
v0.13.0 release target
- Autonomy grants. A grant is a machine-local record of what you have delegated:
its scope as named items, the gates it covers (plan, merge, wrap-up), an
expiry, run, merge and fix-cycle limits, a context threshold in tokens, the
Claude Code permission mode relayed sessions start in, and the one session
allowed to approve under it.
orch grant shows it, orch grant revoke ends
it for good, and creation takes an approval that carries the grant's digest
and the exact statement approve-autonomy-grant. Creation is refused while
another grant is active, without CLAUDE_CODE_SESSION_ID, or for the
bypassPermissions mode. Records live in the clone's git common directory,
so every worktree sees one grant and git status never changes —
#359.
- Approving under a grant.
orch run activate and orch run merge now accept
an approval from the active grant on a Claude Code run, recorded as approver
grant:<id>, and the issue and PR bodies say that no person reviewed or
approved the plan or merge. Engine-checked hard stops refuse it for a plan
with a risk domain or a host other than claude, a caller that is not the
grant's holder, an exhausted budget, an issue with any escalation or block,
the downgraded reviewer, anything but passing required CI, and a PR touching a
protected path. An issue that uses up the grant's fix cycles is blocked for
you to resolve. Human approvals work exactly as before, and the metrics events
gain an approval source of human or grant:<id> —
#362. The protected-path list
now also covers the kill switch (orch grant revoke), the grant hooks, the
transcript reader and orch run pr-open, so a grant cannot merge a change to
them — #366.
- Relay and context hooks.
orch grant relay takes no arguments: run by the
session that holds the grant, it starts a successor as a background Claude
Code session (claude --bg) with Remote Control on, in the grant's permission
mode, and makes the successor the holder, so the previous session can no
longer approve —
#360. With an active grant, the
Claude SessionStart text names the grant and whether this session holds it, a
hook asks the holder to relay at the next stopping point once its context
passes the threshold, and the PreCompact hook blocks automatic compaction for
the holder. Manual /compact and other sessions are unaffected, and every
hook fails open —
#361. The Claude
orch-delivery skill gains GRANTS.md, telling the Architect how to set up a
grant, approve inside it, stop and send a decision packet, wrap up and relay;
tests pin its statement literals and subcommands to the engine —
#363.
- Claude Code 2.1.301. The transcript reader that sizes the holder's context
now recognizes Claude Code 2.1.301 as well as 2.1.295.
orch doctor prints
one line with the installed Claude Code version and whether the reader
recognizes it, and the holder's session-start text says when the relay
instruction will not fire for an unrecognized version —
#367.
- Agent definitions. The reviewer definitions now tell the reviewer to resolve
the PR head by its commit OID or
origin/<branch>, never FETCH_HEAD, and
all four working roles use a three-dot diff against the live base instead of a
local base branch for claims about the whole branch. This changes the agent
definitions on all three hosts —
#358. The v0.12.1 notes below
also had two misplaced statements corrected —
#357.
- What has not happened yet. No autonomy grant has been created or run, so no
plan or merge has been approved under one. The live checks of
orch grant relay, of a push from a background session with the phone app closed, and of
the PreCompact block have not been run. Grants work only with the Claude host.
The transcript reader recognizes only Claude Code 2.1.295 and 2.1.301, and any
other version gets no relay instruction. See the grant entries under known
issues and limitations.
Engine release v0.13.0 pairs with Claude/Codex manual-adapter version 0.10.0.
The manual wire versions and state schema 6 are unchanged from v0.12.1, and
the OpenCode package stays 0.11.0: it exports only src/index.js, and nothing
under its src or skills changed since v0.12.1. Its agent definitions are
embedded in the engine and written into each project by orch render-agents,
so they arrive with the engine. To upgrade, update the engine and the
configured Claude or Codex adapter together between runs (see the upgrade
commands above), restart the host and run orch doctor --host claude|codex.
orch doctor reports an installed 0.9.0 adapter as a version mismatch. Re-run
orch render-agents in every project that uses Orch, because #358 changed the
agent definitions on all three hosts. State schema 6 has no active-run
migration, so an active run stays on its original pair.
v0.12.1 release target
- Claude Code evaluation worker. Evaluation plans can now name their host:
a version 3 plan carries a required
host of claude or codex, which is
part of the plan digest and the approval scope. Version 1 and 2 plans stay
Codex plans with unchanged bytes and digests, a claude plan declares no
approved instruction files, and evaluation observations are accepted with
host claude as well as codex —
#342. orch eval run selects
its worker from the frozen plan's host, and a version 3 claude plan now runs
through a new Claude Code worker that launches one print-mode session per
attempt with --restricted, --safe-mode, dontAsk permissions and a fixed
tool set. It requires the Claude subscription login, refuses a workspace
CLAUDE.md or AGENTS.md, and treats any model other than the pinned one as
a safety failure. It records usage with unreported counters left unknown,
stops attempts with an interrupt and a process-tree kill, and never resumes a
disconnected session. Each worker refuses another host's plan before
claiming it —
#343. The host-neutral
evaluation types and containment checks the worker shares with the Codex
worker now live in a common package, with Codex behavior and stored-record
bytes unchanged —
#341. See the
evaluation workflow.
- Claude worker hardening. The Bash allowlist is now seven exact commands
(
go build, go test and go vet, each bare or with ./..., and
gofmt -l .) instead of wildcard rules that accepted flags such as
-toolexec or gofmt -w, so targeted commands like go test -run X are
denied; each child also gets GOWORK=off, GOTOOLCHAIN=local, GOPROXY=off,
GOSUMDB=off and CGO_ENABLED=0 —
#345. A permission_denied
event from a denied tool call no longer ends the attempt as malformed, and the
worker removes the empty claude directory Claude Code 2.1.289 leaves in the
attempt scratch, which previously made every Claude attempt invalid evidence —
#347.
- No live Claude evaluation trial, four-case screening run or twelve-case graded
baseline has been completed, and the exact-match behavior of the Bash rules is
documented rather than observed. The worker's host-enforced containment is
policy enforced by Claude Code, not operating-system isolation, and
go test
still runs workspace test code with your rights. Phase 1 stays open, and a
completed attempt is not a semantic grade.
Engine release v0.12.1, the unchanged Claude/Codex manual-adapter version 0.9.0
and the unchanged OpenCode package 0.11.0 are separate identities; this release
changes no adapter or plugin artifact. To upgrade, update the engine between
runs (see the upgrade commands above), restart the host and run
orch doctor --host claude|codex. For an upgrade from v0.12.0, an installed
0.9.0 adapter, its rendered agent definitions and the 0.11.0 OpenCode package
need no update; from an earlier release, follow the v0.12.0 release notes
below. State schema 6 has no active-run migration, so an active run stays on
its original pair. Metrics schema-2 history requires v0.11.0 or a newer
compatible reader, while legacy schema-1 history remains readable without
rewriting; evaluation observations use schema 3 and are rejected by Delivery
history.
v0.12.0 release
- Evaluation workflow. A reproducible measurement and grading contract defines
case selection and held-out handling, independent grader validation, matched
comparisons, complete attempt costs and explicit improved, regressed or
inconclusive decisions —
#307 — alongside a proposed
user workflow for preview, bounded approval, progress, stopping, local
reports and a separate adoption decision —
#309. The twelve-case
reference-v1 corpus and its grading controls are prepared —
#311. See the
evaluation workflow and
measurement contract.
orch eval commands. orch eval preview --plan FILE validates a version 1
plan, freezes its bounded schedule and retains an immutable local preparation
record, granting no approval —
#313. A guarded evaluation
controller and runtime storage retain progress and attempt evidence —
#315. run (behind a
single-use, digest-bound human assertion), status, stop and report
complete the family, with text, Markdown and JSON report bundles retained
immutably —
#317. orch eval grade
retains evidence-backed grading with immutable corrections and disputes —
#319. See the
grading contract.
- Native Codex evaluation admission. Isolation validation replays synthetic
tool dispatch through the installed Windows Codex dispatcher and pins
TEMP,
TMP and TMPDIR to scratch —
#321. Native task sessions are
admitted only on Windows amd64 with Codex 0.160.0 and verified isolation
controls on the actual connection; every other host, platform or Codex
version still refuses —
#324. Approved evaluations now
run through those sessions: a version 2 plan must declare its approved global
instruction artifacts and protected roots, and both selected revisions must
match the controller binary's clean embedded build revision, with only the
none and requested-profile interventions executing —
#325. See the
native protocol contract.
- No live model trial, screening run or measured baseline has been performed.
Live completion, interruption and recovery checks and the graded baseline
remain separate, separately approved work, and Phase 1 stays open. A
completed attempt is not a semantic grade.
- Shipped default profiles. Fresh Codex setup now defaults to Architect
gpt-6-astra/xhigh, Scout gpt-5.6-luna/max, Implementer
gpt-6.1-sol/xhigh, Specialist gpt-6.1-sol/max, Reviewer
gpt-6-astra/medium and Safe Reviewer gpt-6.1-sol/high; prior and custom
model IDs stay available through Other —
#305. Fresh Claude setup now
defaults to the 5.5 generation: Architect claude-opus-5-5/xhigh, Scout
claude-sonnet-5-5/medium, Implementer claude-sonnet-5-5/high,
Specialist and Reviewer claude-opus-5-5/high, and Safe Reviewer
claude-sonnet-5-5/high —
#330. Existing explicit
configurations keep precedence, and OpenCode defaults are unchanged.
- Claude routed effort is now pinned in each agent definition's
effort
frontmatter, written by orch render-agents alongside model, instead of
being conveyed as a prompt cue; a definition whose rendered effort differs
from the configured one is reported stale —
#331.
- The shipped Claude
orch-implementer and orch-specialist definitions now
tell executors to run checks in the foreground with a Bash timeout long
enough to finish, never to write until or while wait loops, and, when a
check has to run in the background, to wait for that command's completion
notification before reporting back —
#335.
Engine release v0.12.0, the Claude/Codex manual-adapter version 0.9.0 and the
unchanged OpenCode package 0.11.0 are separate identities. To upgrade, update
the engine and the configured Claude or Codex adapter together between runs
(see the upgrade commands above), restart the host, re-run orch render-agents
in each Claude project and run orch doctor --host claude|codex. State schema 6
has no active-run migration, so an active run stays on its original pair.
Metrics schema-2 history requires v0.11.0 or a newer compatible reader, while
legacy schema-1 history remains readable without rewriting; evaluation
observations use schema 3 and are rejected by Delivery history.
v0.11.1 release
- Codex child-usage capture now supports the bounded forked-rollout format,
validating the fork boundary and exact child attribution while excluding
inherited parent counters, timestamps and completion evidence. Unsupported
or malformed evidence remains unavailable; root usage, complete-run savings
and historical backfill are not provided —
#301. See the
metric observation contract.
- Internal native Codex groundwork adds bounded capability preflight, native
Windows workspace/credential isolation diagnostics and single-task sessions
with interruption, in-memory resume and attributable observations —
#295,
#296,
#297. Diagnostic admission now
checks capabilities and inherited tool restrictions rather than an exact host
version — #299. Production native
model execution remains unavailable because model-tool isolation is unverified;
wider live model-tool validation is deferred. See the
native protocol contract.
Engine release v0.11.1, the unchanged Claude/Codex manual-adapter contract 0.8.0,
and the unchanged OpenCode package 0.11.0 are separate identities; a 0.8.0
adapter label alone does not prove capture-v2 support. Adopt supporting engine
and adapter revisions together between runs. State schema 6 has no active-run
migration, so an active run stays on its original pair. Metrics schema-2 history
requires v0.11.0 or a newer compatible reader, while legacy schema-1 history
remains readable without rewriting.
v0.11.0 release
- Delivery mutations now share a repository serializer, and plan approval binds
the submitted scope, engine-contributed criteria, routing, and effective
execution settings.
- State schema 6 keeps human-decision blocks durable through recovery, while
orch doctor --host focuses diagnostics on one configured host without hiding
failures from the others.
- The OpenCode lockfile updates
brace-expansion from 2.1.4 to 2.1.7, clearing
the prerequisite audit finding.
- P1-A adds durable metric observations, attributable Codex child-session
capture, and read-only coverage, measured timing, and outcome reporting. See
the metric observation contract.
Status
Early software. See GitHub Releases
for the tagged-release history. Every pull request merged since PR #40 carries
an Orch audit record in its body — apart from the configuration deliveries,
which orch configure writes in its own body format. Since PR #40, this
repository has been built through the pipeline described above: a plan gate,
an isolated worktree per issue, a review dispatched separately from the work,
CI, and a merge that fails closed unless it carries an approval pinned to the
commit merge-report recorded.
All of that evidence comes from one repository: this one.
Known issues and limitations
What will bite you today — symptom, cause, workaround
Writes made through the shell are not guarded. The pre-write hook
covers Claude Code's Write, Edit, MultiEdit and NotebookEdit,
Codex CLI's apply_patch, and OpenCode V2's edit, write, and
patch. A file written by a shell command —
echo > file, a script, a git checkout — never reaches orch guard, so neither Assist's read-only rule nor Delivery's worktree
containment applies to it. Symptom: an agent modifies your working
tree in Assist and nothing denies it. Workaround: the host's own
permission and approval prompts on shell commands are the only
backstop; leave them on.
The guard cannot tell one role from another. orch guard has a
--role flag that would make a role mechanically read-only, but no
adapter passes it. Claude Code and Codex CLI hook manifests run the
bare command, and the OpenCode V2 orch.delivery guard is host-global
rather than attributed to a dispatched role. In a worktree the guard
treats as writable, a scout or reviewer is no more restricted by the
guard than the implementer. On Claude Code the orch-scout
subagent's tool whitelist does close its write surface — it carries no
Bash — but orch-reviewer and orch-reviewer-safe both carry
Bash, so their read-only discipline for shell-mediated writes rests
on instructions there too. Codex agent definitions carry no tool
whitelist. OpenCode's native orch-scout, orch-reviewer, and
orch-reviewer-safe definitions mechanically deny edit, shell,
and subagent; the edit denial covers every built-in V2 mutation
tool. Its read-only role enforcement therefore comes from those
definitions, not the host-global guard.
An orch run verb invoked from inside a Delivery worktree reports
Assist and names the wrong fix. Every orch command resolves
.orchestrator/ from its own working directory. A Delivery worktree
carries the committed .orchestrator/config.toml but no
state.json — that file is machine-local and gitignored — so orch status run there prints mode: assist while a run is active, and a
lifecycle verb fails with no delivery run is active; run `orch run activate` to enter Delivery first. Activating a second run is exactly
the wrong move. Workaround: run every orch run verb with the primary
checkout as the working directory.
A missing binary fails open, not closed. The Claude Code and Codex
CLI adapters invoke bare orch guard <host> commands; the OpenCode V2
plugin invokes orch guard check. If orch does not resolve on
PATH, the host does not receive an Orch denial, so the guard silently
stops enforcing and the session-start context stops being injected. No
error, no denial. On Codex CLI the same is true while the plugin's
one-time hook trust approval is outstanding — until you approve it,
the bundled hooks do not run at all. Symptom: no denial where you
expected one, and no Orch block at session start. Workaround: install
the binary before the plugin, approve the trust prompt, and run orch doctor; a missing session-start block is the visible tell.
claude plugin install on a host that already has the adapter
changes nothing and leaves the old version running. Claude Code
treats an install of a plugin it already carries as satisfied: claude plugin install orch-claude@orch exits 0 reporting Plugin "orch-claude@orch" is already installed, even when claude plugin marketplace update orch has just fetched a newer adapter into the
plugin cache. Installing and upgrading are two different commands, and
only claude plugin update orch-claude@orch replaces the active
version (it says Restart to apply changes when it does). Symptom:
following the agent install prompt's step 3 on a machine that already
has Orch reports success while the previous adapter goes on running.
Workaround: on an existing install use the upgrade commands above, not
the first-install ones; orch doctor names the installed and the
expected adapter version when they diverge.
orch doctor fails on a machine that lacks a configured host's
command-line tool. Plain orch doctor checks every host the committed
configuration names, and fails when any host's CLI, adapter, selection,
or project agent files fail their checks. Use orch doctor --host claude|codex|opencode to diagnose one configured host: common repository
and selected-host failures still fail the command, while failures from
other configured hosts are reported as advisory notes. Claude and Codex
adapter checks also report absent, duplicate, disabled, missing-version,
and version-mismatch states (plus Codex's not-installed state). A version
mismatch names the installed and expected adapter versions and tells you
to align the older engine or adapter to the same release. OpenCode instead
checks for at least the beta 18314 runtime and exactly one active plugin
with ID orch.delivery because its beta API does not expose adapter
versions. Host enablement is a committed-only key
— the Settings table above marks hosts.claude / hosts.codex /
hosts.opencode as
no (committed) — so machine-local configuration cannot switch a
host off for one machine. Before selected-host diagnostics, a repository
configured for multiple hosts reported a failing doctor on every machine
that had only one of them installed; there was no per-machine diagnostic
choice. Now --host gives that machine a focused result without hiding
the other failures or changing committed host policy. Plain doctor keeps
the historical all-host failure behavior.
Codex workspace-write sandbox mode on Windows fails every agent
write where the sandbox helper infrastructure is absent. Observed
live: every apply_patch fails with orchestrator_helper_launch_failed
before any mutation, which stops Delivery execution cold. Workaround:
confirm the sandbox actually works on that machine before setting
sandbox_mode = "workspace-write" there.
Claude Code applies effort from the subagent definition. Each Claude
project agent definition carries an effort frontmatter field that
overrides the session effort while that subagent runs, and
orch render-agents writes each role's configured effort into it. New
audit records say Effort delivery: parameter; records written earlier
carry prompt-cue and still parse. Which effort levels a Claude model
accepts depends on the model. Codex pins effort in project agent definitions.
OpenCode instead pins its optional model-specific variant in the model reference;
the audit record says Profile delivery: model-variant, including an explicit
no-variant selection when the reference is bare.
A model override does not reach a dispatched agent by itself. No
host can override a model per spawn, so the
routed selection has to match the active project agent definition.
orch render-agents writes all five dispatched roles for every
enabled host under .claude/agents/, .codex/agents/, or
.opencode/agents/, using the
shipped plugin definition as the canonical body and changing only
that host's routing fields. Claude Code's scope priority
table
places project definitions above plugin definitions, so a generated
same-named .claude/agents/ file is what runs while retaining the
plugin's descriptions, tool allowlists, and role instructions. orch doctor checks each enabled host's project files separately from
installed-adapter health, and plan activation checks the selected
host; both fail closed, name every missing, unreadable, or stale path,
and direct you to orch render-agents. Changing effective role
configuration or upgrading Orch is not finished until you re-render.
A Codex CLI upgrade that adds a new apply_patch directive causes
denials until orch catches up. The guard's envelope parser treats
any *** directive line it does not recognize as a malformed
envelope and denies the write. That is deliberate — an unparsed write
must never be allowed — but it means a host upgrade can produce
spurious denials. Workaround: update orch.
OpenCode V2 support has a beta runtime floor. Before project-scoped
catalog discovery, the live smoke check exercised exactly opencode2 v0.0.0-beta-17498 and @opencode-ai/plugin
0.0.0-beta-17498, while doctor checked only that runtime and the active
plugin ID. That old compatibility behavior no longer holds. The current
minimum runtime is opencode2 v0.0.0-beta-18314. Newer numeric V2 beta
builds are accepted only when orch doctor also finds exactly one active
orch.delivery plugin and a URL-location-scoped model catalog response for
the repository. It retains only enabled text-input/text-output tool-capable
provider/model IDs and their variant IDs; provider settings, headers,
credentials, account IDs, and raw API payloads never enter the returned
catalog or its diagnostics. The npm SDK dependency and live smoke remain
exactly pinned to @opencode-ai/plugin 0.0.0-beta-18314 and opencode2 v0.0.0-beta-18314, respectively, to prove the oldest supported contract;
they do not cap runtime support. The V2 API still does not expose an adapter
version. After an OpenCode upgrade, restart the service and rerun doctor
before relying on enforcement; upstream contract drift may require an Orch
update.
The merge gate cannot tell a human's approval from an agent's. The
engine requires an approval carrying the exact literal approve-merge,
pinned to the pull request and head commit merge-report recorded, and
gh pr merge --match-head-commit refuses if that commit is no longer
the head — so a stale or swapped merge fails closed. What none of that
establishes is who produced the approval: the agent assembles that JSON
itself, and internal/run/merge.go says so outright ("the engine
cannot verify a human, so this recorded string is the proof one
approved this specific merge"). Symptom: the audit trail's approval is
the agent's assertion that you approved. Workaround: the merge runs
through gh against GitHub, so GitHub-side branch protection is the
one control on this path that does not depend on the agent.
A crashed run leaves the Delivery lock held; there is no automatic
takeover. .orchestrator/delivery.lock is created with O_EXCL and
Orch never steals it on a staleness guess. This remains true for that
run-spanning lock; the separate per-command mutation serializer is
OS-owned and is released automatically when its process exits. Symptom:
the next run refuses to start, and orch doctor notes that the acquiring
process is no longer running. Workaround: orch resume to reconcile and
continue, or orch abort to end it.
orch grant relay is only partly checked live, and only on native
Windows. What ran live: on 2026-10-09, Claude Code 2.1.295 on native
Windows, a manual launch of the same shape (claude --bg --remote-control <name> --permission-mode auto "<prompt>", without --session-id). That
session started working on the prompt by itself and connected Remote
Control, and its CLAUDE_CODE_SESSION_ID matched the id --bg reported.
Before issue #370, orch grant relay passed a --session-id it generated
and succeeded only if --bg printed that id's first 8 characters; whether
--bg honored the passed --session-id had not run live. On 2026-10-17,
Claude Code 2.1.301 on native Windows, it ran live and did not: --bg
ignored the passed --session-id, printed backgrounded · 20b2927b, the
first 8 characters of the started session's id, and the relay failed closed
with the holder unchanged, leaving that session running. Now the relay passes
no --session-id. It reads the short id from the backgrounded · <id> line
--bg prints, runs claude agents --json, and records as the holder the
sessionId of the one entry with that id and kind background. If no
short id is printed, or that listing fails or does not name exactly one such
entry, the relay fails closed with the holder unchanged, and once a short id
was printed the error names claude stop <id>. Before 2026-10-17 this corrected path had not
run live; on 2026-10-17, on native Windows with Claude Code 2.1.301, it ran
live and recorded the right successor, the session that claude agents --json
listed and whose own CLAUDE_CODE_SESSION_ID matched. A failed relay can still leave a stray background session;
claude agents lists it and claude stop <id> removes it. macOS and Linux
were never checked live. A grant that records default as its permission
mode cannot relay on 2.1.295, whose CLI lists manual instead. Symptom:
orch grant relay exits non-zero with the launch error. Workaround: create
grants with a mode the CLI lists, and continue in the current session if a
relay fails.
Fixed
Defects already corrected, newest first
Everything here was merged on main and shipped in v0.10.0. See
GitHub Releases for the current
release history.
- The wrong-criterion guidance in the standard and safe reviewer
definitions for each host now names a
criterion about "how an LLM agent routes, decides, or behaves" as the
standing instance of proxy-only evidence, instead of stating it of
any agent; before, a reviewer applying the sentence literally could
judge a criterion about this repository's own engine routing wrong —
routing that is deterministic Go under a direct test suite — and
needlessly block the issue —
#213
- The interviews' effort questions now include the role's configured
default among the options they offer; before, a Codex role defaulting
to
max was asked to pick from four options that did not contain it,
so the shipped default could not be chosen as offered —
#210
- A model string typed into an interview that is a near miss of a known
model now gets a did-you-mean check before it is accepted, and the
check fires only on values you type — never on on-disk values or the
engine's own proposed defaults; before, a near-miss string was pinned
verbatim —
#209
orch init and orch configure now offer to seed a root
instruction file this session creates — one yes/no question naming
both files, defaulting to yes, asked when a host being newly enabled
has no file of its own while the other host's carries content
outside its managed block — and answering yes proposes that
sibling's content copied verbatim above a fresh managed block, with
the whole proposed file shown as the summary's diff before anything
is written; answering no proposes the block-only file as before.
Before, the created file held the Orch managed block and nothing
else, so that host's agents ran with none of the repository's
conventions —
#192
- An issue declaring at least one risk domain now carries one further
acceptance criterion, contributed by the engine rather than by the
plan document and always last: it asks for every element of the
structure the change touches to be named with a verdict on whether
the behavior it had before still holds, for a removed behavior to be
recorded as a before-and-after in the document that stated the old
behavior instead of that statement being deleted, and for a
restriction attributed to one named symbol to be established as
holding for that symbol alone or for every symbol of its kind. The
gate document, the run state, the audit record and the created issue
body all carry it, so the human approves it and the existing
one-judgment-per-criterion rule holds the reviewer to it like any
other criterion; all hosts' Delivery skills and every shipped
reviewer definition — the standard reviewer and the safe review
downgrade alike — now quote it and say what settles it: an
enumeration in the pull request body of each element touched with
its before-and-after, not a passing test suite. Before, a plan
issue's criteria were exactly what the plan document listed, so a
preservation clause naming one thing to protect left everything
adjacent to it outside the standard the executor and the reviewer
were measured against —
#190
orch doctor now reports, once per enabled host, a root instruction
file — CLAUDE.md for claude, AGENTS.md for codex — that holds
the Orch managed block and nothing else, saying that host's agents
see no project conventions and that they belong outside the block.
It is a note rather than a failure: Orch cannot author a
repository's conventions, and a repository with none to state is not
broken. Before, a repository that kept its conventions in one host's
file and let Orch create the other's got a file holding the managed
block alone, with nothing anywhere reporting it —
#189
orch doctor gained claude agent definitions, the Claude
counterpart of the codex agent files check: it resolves the
installed plugin root from the install path claude plugin list --json reports — the same listing the adapter check just ran, not a
second one — reads the model each installed agent definition pins in
its frontmatter, and fails naming every role whose
hosts.claude.roles model differs together with both models. It
compares the installed copy rather than this repository's, because a
plugin behind head can still carry an older pin, and it fails closed:
no install path, an absent agents directory, an unreadable
definition and a definition pinning no model are each a failure,
never a pass. It repairs nothing — there is no Claude equivalent of
orch render-agents, so you update the installed plugin or change
the configured model. Before, nothing in the binary compared the
two on Claude Code, and a role whose configured model no longer
matched its installed definition went on being dispatched with only
the Architect's skill instruction between the routed selection and a
mismatched spawn —
#186. That installed-copy
comparison was the before state for this change; after, Claude uses
rendered project definitions and both doctor and activation gate them,
while installed-adapter health remains its own check.
orch doctor now checks each configured host's installed Orch
adapter and fails when it is absent, listed more than once, disabled,
reporting no version at all, at a different version from the one this
build ships, or, on Codex, marked not installed, naming the expected
version and, whenever there is an installed one to name, the
installed version too — an adapter that is absent or reports no
version has none to name, so those failures report the expected
version alone; before, an adapter left behind by a binary-only
upgrade kept running while doctor reported the host healthy —
#167
orch doctor and Codex plan activation now compare the rendered
agent definitions in .codex/agents/ against the current build and
the effective role configuration, and fail closed naming orch render-agents; before, definitions rendered from an older
configuration went on being dispatched with nothing reporting them
stale —
#166. That Codex-only
coverage was the before state; after this change the same generated-file
check covers every enabled host.
- Every reviewer agent definition on all hosts — the standard
reviewer and the safe review downgrade alike — now states that a
request-changes verdict is not confined to findings that block an
acceptance criterion: a required test that fails, a security boundary
the change weakens, and any defect of comparable severity are each
grounds on their own, even when no acceptance criterion names the
area they sit in; before, Claude Code's two reviewers closed the set
at exactly two grounds — a finding blocking a criterion, or a
criterion itself wrong — while Codex's two named the wrong-criterion
ground without ever saying what else could drive request-changes, so
on neither host did a required test failing outside every criterion's
wording have to block the review —
#159
orch run review now refuses, before any mutation, a review that
does not carry exactly one judgment per acceptance criterion the
issue holds, and a criterion judged wrong blocks the issue for you as
part of recording that review; before, a review could approve without
saying anything about an individual criterion, and a criterion that
was itself wrong reached you only if the Architect read the paragraph
and made a second call by hand —
#158
- Codex usage capture now depends only on the rollout that actually
identifies as the dispatched child, so an unrelated neighbour in the
sessions tree — a zero-byte file caught mid-creation, one with no
session metadata, an unparseable first line, or a shape written by
another Codex version — no longer reports usage unavailable for every
child in the run; a rollout that does match is still fully validated
and two matching rollouts still fail closed —
#148
- Claude Code's two reviewer agents now report every finding they make,
low-severity and uncertain ones included, each carrying a severity
and a confidence, and decide the verdict afterwards as a separate
judgment, so a nit stays in the report without by itself costing
another review cycle; before, neither agent said whether a minor or
uncertain finding belonged in the report at all, nor that the verdict
was a judgment made after the findings were listed —
#117
- A verification entry whose text describes the branch as a whole is
given its
branch-scope: name prefix at pr-open, where the name is
first chosen; before, a prefix added on a later review cycle appended
a second entry instead of replacing the original, leaving the stale
unprefixed one in the audit record permanently —
#113
.gitattributes gained the rule that checks .gitignore out with LF
on every platform; before, a Windows checkout could get CRLF line
endings in that file, which is what feeds the empty-pattern hazard
the next entry describes —
#110
- Worktree containment no longer fails open on a
.gitignore whose
blank line survives as an empty pattern — a CRLF blank line, or a
whitespace-only line under LF — because RequireIgnored now queries
two structurally dissimilar child probe paths and requires both to
come back ignored, instead of a bare trailing-slash directory query,
and an empty pattern can never match a non-empty basename —
#106
- The metrics ignore line in
.gitignore is now proposed
unconditionally instead of only when metrics is enabled, closing a
trap where turning metrics on before that line existed could leave
metrics output un-ignored; orch configure-local and orch doctor
now fail closed, naming the missing line, when metrics is enabled
without it —
#107
- Both adapters stopped claiming that per-agent tool whitelists make
every read-only role unable to write; the shipped prose now matches
what the guard actually enforces —
#90
- After two or more escalations on one issue, the skills resolve the
routing in force from the most recent escalation instead of an
unqualified one —
#84
- A rerouted issue's agent definition is checked against the model it
was rerouted to, not the one it was dispatched with —
#76
- A review submitted after an escalation is no longer rejected as a
reviewer mismatch: the skills echo the reviewer currently in force —
#71
- Claude spawns stopped passing a coarse tier alias as the model,
which could never express an exact routed version; a spawn now
matches the installed agent's frontmatter or stops —
#70. That installed-agent
match was the before state; after this change, a spawn matches the
rendered project agent's frontmatter, which takes precedence over the
plugin copy.
- Claude Code gained an
orch-reviewer-safe agent, so a routed
reviewer downgrade dispatches the reviewer the audit record names —
#66
- Verification entries carry the commit they were gathered at, so
evidence from an earlier head is distinguishable from evidence at
the head that merges —
#62
- A review summary gets a 6000-character allowance of its own instead
of the 2000 that cut a real reviewer's findings mid-criterion, and
evidence re-run on a fix commit can now reach the audit record —
#61
- A requested-changes cycle no longer sends the issue back through
pr-open, and the skills' stdin form works under PowerShell —
#58
- A pull request with no required checks reports
no-checks instead
of erroring on an empty response from gh pr checks --required —
#44
- On Windows, a just-exited process no longer probes as still running,
so
orch doctor's dead-acquirer note can fire at all —
#7
Under the hood
This section is for contributors and the curious; none of it is needed
to use the tool.
Enforcement, not convention
The mode rules are resolved by a closed decision table in
internal/guard, reached through the host CLI's pre-write hook. In
Assist, a write to any in-repo file git does not ignore is denied;
git-ignored paths are allowed as local scratch. In Delivery, a write
is allowed only inside a worktree registered to the active run, in a
writable phase, with that worktree's HEAD on its registered branch. If
the guard cannot determine a fact — an unreadable state file, a path it
cannot canonicalize, an ignore probe that fails to run — it denies.
Two things are off limits in either mode, and one that looks like it
is, is not. Anything under .git is denied before the mode is even
consulted. The orchestrator state a session runs against —
state.json and the lock, in the primary checkout — is never writable
by an agent either: Assist denies it as orchestrator internals,
Delivery denies it as lying outside every registered worktree. A
worktree's own committed .orchestrator/config.toml is covered by
neither rule. Inside a registered worktree it is repository content on
a branch under review, so an executor can edit it, and that edit
reaches your configuration the way every other change does — through
the pull-request diff and the human merge gate. It cannot alter
enforcement mid-run, because the guard resolves state from the
outermost .orchestrator root, which is the primary checkout and
never the worktree's copy.
What the table decides is containment. The guard is given the write's
target paths, not the identity of the agent making the write, so it
cannot make one role read-only and another writable; no host adapter
passes the --role narrowing that exists for that purpose. Claude
Code and Codex CLI hook manifests invoke the bare guard command, while
the OpenCode V2 plugin invokes its host-global guard call. Nor does the
guard see writes the host does not route through a guarded tool, which
is why shell-mediated writes escape it entirely. Both gaps are in
Known issues.
Delivery is exclusive across hosts and machines: a lock file
(.orchestrator/delivery.lock, created with O_EXCL) is the lock,
and there is no automatic staleness takeover — recovery is always an
explicit orch abort or orch resume. Run state is schema-versioned
JSON at .orchestrator/state.json (machine-local, atomic writes,
fail-closed loads), persisted after every sub-step, so a crash at any
point is recoverable. Separately, every mutating Delivery command — all
mutating orch run verbs, orch resume, and orch abort — holds an
OS-owned repository serializer through its final state and metrics write.
Before that command-level serializer, the run-spanning lock excluded a
second run but let two invocations in the same run load and replace the
same documents concurrently. orch run plan and status commands remain
outside this serialization, and process exit releases it automatically.
The Delivery pipeline
The animation in How it works walks this lifecycle end
to end; what follows is the same pipeline in detail.
A run starts at the plan gate: a schema-versioned plan document
(issues, dependency waves, risk facts) is validated fail-closed, and a
gate document derives each issue's executor and reviewer from those
facts alone through the routing table — the model never picks its own
reviewer. The gate also runs the memhub health and recall check
described above, gated by memhub.mode. Activation then creates the
GitHub label taxonomy, one issue per task carrying a structured
audit record (rendered markdown plus canonical JSON in a managed
body region: the approved objective, acceptance criteria and required
tests, plus the exact model, its host-native execution profile, how the host
delivered that profile, and the routing rationale, mirrored onto the
pull request), and one branch and isolated worktree per issue under
.orchestrator/worktrees/.
Each issue then walks a closed lifecycle driven by plumbing verbs:
dispatch (dependencies must be merged; the branch is fast-forwarded
onto the default branch) → pr-open (clean, strictly-ahead,
orphan-PR guarded) → review-worktree (a disposable detached
worktree of the pull request head, so the review does not run in the
primary checkout) → review (the routed reviewer, verified against
the live PR head) → ci (reads required checks as one of four honest
states — passing, failing, pending, or the explicit no-checks,
which is never conflated with passing) → merge-report (pins the
approved head SHA, and carries a no_ci_statement whenever
no-checks is what gates the merge, so "nothing gates this" is always
said outright) → merge (human-approved — before #353 only by a person,
now also by an autonomy grant past its stops — re-checked against the live
PR, pinned with --match-head-commit, setting the issue's terminal
delivered label) → cleanup → complete (fast-forward the primary
checkout, return to Assist). Failures route through escalate (the
routing ladder), block (closed failure classes; a secret found stops
the whole run) or abandon. Errors never mutate state; state advances
only on success.
orch resume reconciles an interrupted run against GitHub reality in
three strict stages — observe (all reads up front), classify (a pure
30-row decision table), apply (one state write, skipped when the run
has already converged). It never fabricates approval, never advances
past the human merge gate, and never deletes or recreates anything.
Before state v6 / resume v2, recovery re-derived every blocked issue from
healthy artifacts and copied approved work from the GitHub audit record.
Now operational blocks still recover that way, but review, escalation and
explicit decision blocks retain their cause and original reason until an
explicit resolution. Edited GitHub text cannot replace approved scope or
criteria. orch run resolve-block records a decision tied to the run, issue
and original block, only while approved work stays unchanged; orch resume
then reconciles artifacts. Changed work returns through the plan gate for
fresh approval. Unknown legacy blocks stay blocked with re-planning guidance.
The run-stop statement and per-PR merge approval remain separate gates.
See decision-block recovery for the wire
versions, recovery contract and affected consumers.
Routing and escalation
internal/routing is pure and deterministic: a five-row,
first-match-wins table over four task facts — whether the work is
read-only, whether it is unusually difficult, which of a closed
nine-domain risk enum it touches, and four affirmative claims
(mechanical, low-risk, fully specified, unsurprising) that alone
permit a cheaper reviewer — plus the models that have already failed
this issue. Read-only work goes to a scout, on the specialist model
when it is risky, difficult, or the scout model has already failed.
Risky, difficult or previously-failed work goes to a specialist with a
strong reviewer and refuses the downgrade there even when all four
claims hold, recording the refusal in the rationale. Everything else
goes to an implementer. Any conflict takes the stronger route and says
so in the rationale.
On failure, escalation retires the failed model permanently for that
issue (an effort bump is still a retry; a model swap is not), restores
the strong reviewer on any reroute, and resolves exhaustion to an
explicit return-to-Architect. The code never ranks model strength on
its own.
Package layout
| Path |
Purpose |
cmd/orch/ |
CLI entry point |
internal/cli/ |
Command dispatch: human commands plus the run/guard/hook plumbing verbs |
internal/config/ |
Committed-config schema, fail-closed validation, local-override overlay, canonical TOML writer |
internal/state/ |
Assist/Delivery mode and per-issue run state (schema-versioned JSON, atomic writes) |
internal/lockfile/ |
Exclusive cross-host Delivery lock |
internal/paths/ |
Safe-path primitives: canonical paths, containment, repo-root discovery |
internal/execx/ |
Injectable external-command runner shared by the git/gh/memhub callers (+ scripted test fake) |
internal/gitops/ |
Delivery git mechanics: branches, worktrees, push, fast-forward — policy-free |
internal/ghops/ |
GitHub mechanics via the gh CLI: labels, issues, PRs, gated merge, CI state |
internal/manifest/ |
The issue/PR audit record — lossless render/parse over a managed body region |
internal/memhub/ |
Read-only client for the external memhub CLI: health probe and fixed-canary recall check |
internal/metrics/ |
Local, opt-in per-run JSON metrics recorder (schema-versioned, never transmitted) |
internal/evalplan/ |
Bounded evaluation controller, digest-bound approval and immutable reports. Before #323 production models refused and worker enforcement was unverified; version-2 attempts now require checked native protections, declared context and exact build/profile binding. Live trials/baseline remain pending. |
internal/codexusage/ |
Reader that recovers exact Codex subagent token totals from persisted child rollout files |
internal/routing/ |
Pure role routing and the escalation ladder |
internal/guard/ |
Mechanical pre-write enforcement behind host PreToolUse hooks |
internal/run/ |
The Delivery run engine: plan gate, activation, per-issue lifecycle, resume |
internal/agents/ |
Renders each enabled host's five project agent definitions, substituting host-supported routing fields onto canonical embedded bodies |
internal/instructions/ |
Managed instruction-block engine for AGENTS.md/CLAUDE.md |
internal/question/ |
Host-neutral native question contract (documents out, answer sets back) |
internal/interview/ |
Pure question engines for init, configure and configure-local |
internal/bootstrap/ |
Mechanical PR-flow executors behind init --bootstrap and configure --deliver |
internal/adaptertest/ |
Shared cross-host parity-test layer consumed by the host adapters' tests |
adapters/claude/, adapters/codex/ |
Marketplace host-adapter artifacts: plugin manifests, hooks, skills, agent definitions, plus Claude Code's slash commands |
adapters/opencode/ |
npm-native OpenCode V2 adapter package (@kninetimmy/orch-opencode): plugin module, native agents, skills, tests, and pinned-beta smoke check; not a Codex marketplace artifact |
ORCH-PRD.md |
Product requirements — source of truth for v1 |
Design principles
- Fail closed. Unknown config keys, schema drift, unreadable
locks, indeterminate checks — everything unprovable is denied with a
named remediation.
- Mechanics are policy-free.
gitops/ghops/manifest know how;
internal/run alone decides when and why.
- Humans gate merges. Orch pins the approved head SHA and refuses
if the pull request moved after approval; the merge itself happens
on GitHub. Before #353 the approving human was always present; now
they may delegate a merge to an autonomy grant they created, which
refuses whenever one of its stops applies.
- Everything auditable. The exact model, its host-native execution profile,
how the host delivered that profile, and the routing rationale live in the
issue's audit record and are mirrored onto its pull request.
Build / test
Requires Go 1.26+.
go build ./... # build everything
go test ./... # run the test suite
go vet ./... # static checks
gofmt -l . # list unformatted files (CI fails on any)
go run ./cmd/orch status # or: doctor, help
License
MIT — see LICENSE.