After Switchyard: Orca, Linear and a Delivery Skill

My agent setup has been rebuilt four times in about two months, and this blog has a post for most of them. Rook was the workstation: an LXC with the CLIs, the repositories and a rule that agents open pull requests and I merge them. Corv was an always-on Hermes agent that orchestrated and handed real coding to OpenCode. Switchyard was a template that took GitHub issues through a planner, an implementer and a review gate in worktrees. The software factory wired discovery and planning tools into a gated pipeline and taught me how much scaffolding costs per call.

The current setup keeps the parts of each that survived contact with real work. Linear holds the scope and the state. Orca runs the agents, their worktrees and the messages between them. A skill called delivery holds the process. It is less ceremony than Switchyard per issue, arguably. I’ll come back to the “arguably”.

Treat the specific models in this post as a snapshot. The structure is what I am fairly settled on. Which model sits in which seat changes often, sometimes in the middle of a batch, and the coordination shape itself is still an experiment I am running against alternatives.

What replaced what

Switchyard was a template, so every project carried its own copy of the workflow, and an updater script to carry it forward. That was fine for one repository and tedious for three. The delivery skill lives once, in a private agent-workflow repository, symlinked into ~/.agents/skills/delivery and ~/.claude/skills/delivery. Claude Code, Codex and OpenCode all read the same file. Each project’s AGENTS.md keeps only what is specific to it: the Linear team, product docs, verify skills and where to start. If the two disagree, the project file wins.

The rest of the swap looks like this:

JobSwitchyardNow
Scope and work stateGitHub issuesLinear issues, projects and milestones
Plan before buildOpenSpec proposal for every changeDesign only when interfaces or ownership are unclear
IsolationWorktree scripts and project hooksorca worktree create --linear-issue <ID>
Running workersHerdr panes or a headless runnerOrca orchestration runs and workers
Waking the coordinatorPolling panesOrca notifications on worker_done
MemoryFiles on diskEngram for decisions, handoff files for sessions

Linear earns its place by having statuses I trust. Todo means ready, bounded and unblocked. In Progress means claimed, with the chat and worktree recorded on the issue. In Review means a PR exists. Done means merged. Agents move issues through those states, and at close-out they post the token usage for the issue as a comment and one project update with outcomes, evidence and limits.

Orca took over Herdr’s job of keeping workers visible, and adds a worktree bound to the Linear issue, a run with tasks and dispatch IDs, and a wake when a worker reports back. The coordinator ends its turn after starting a worker and Orca brings it back. Nothing polls.

The hierarchy

For a batch of issues, the shape is a supervisor over one fresh coordinator per issue, and each coordinator over its own workers. Linear and GitHub sit beside the coordinator: it reads and moves the issue, and ends at a PR with required CI.

%%{init: {"flowchart": {"useMaxWidth": false, "nodeSpacing": 16, "rankSpacing": 32, "diagramPadding": 4}}}%%
flowchart TB
    me["me\nqueue, merge authority"] -.-> sup["Supervisor\nCodex Astra"]
    sup -->|"one per issue"| c1["Issue coordinator\nCodex Sol"]
    subgraph wt["one Orca worktree per issue"]
        c1 --> build["Builder\nCodex"]
        c1 --> review["Reviewer\nClaude Opus"]
        c1 --> fix["Fix worker\nLuna, Terra, Sol"]
        c1 --> side["OpenCode\nscreens, chores"]
        review --> sonnet["4 Sonnet\nlarge issues"]
        build ~~~ fix
        build ~~~ side
    end

The supervisor owns the queue. It creates each issue’s linked worktree, starts a coordinator there with the full authority written out, and waits. After a merge it verifies the merge commit and the Linear Done state before it advances its checkpoint, and it compares the changed paths against every PR still open. It does not build or review anything.

Each issue coordinator is a fresh session. It owns the issue from pickup to close-out: Linear status, the build, the independent review, fixes, hosted CI and the merge.

The coordinator is meant to be thin. It sizes the issue, writes the task specs, dispatches workers, reads their summaries and decides. It does not read full diffs or run analysis itself. Every worker writes its full report to /tmp/<ISSUE-ID>-<task>.md and sends a worker_done of at most ten lines: outcome, revision checked, findings by severity, check results and the report path. The coordinator opens a report only for a finding it has to decide on.

Builders, reviewers and fix workers are always Orca workers, never in-process subagents. The coordinator’s own subagents are for read-only searching.

Builder and reviewer are never the same CLI

The one rule I would keep if I threw out everything else: Codex-built work gets a Claude reviewer, and Claude-built work gets a Codex reviewer. The reviewer reports findings and does not fix them. A fresh fix worker does that, then runs the lint checks and the failure paths the fix touches before handing back.

How much review an issue gets depends on its size:

  • small is one bounded change with an obvious check. It gets a screen from OpenCode on GLM-5.3 Flash, which reads the diff against the acceptance criteria and says “clean” or not. A full review starts only if it raises doubts.
  • medium gets one reviewer using pstack-interrogate, plus pstack-blast-radius for risky diffs.
  • large crosses modules or touches storage, permissions or recovery. It gets the full bmad-code-review, with an Opus lead and four Sonnet reviewers in parallel.

The best case for this so far was SYL-89 on Sylux, my self-hosted file storage project. The issue was permanent removal from Trash. The builder measured how removal scaled with the number of trashed files. The reviewer, Claude Opus against a Codex build, held the deletion at one folder of 1,000 files and added 20,000 unrelated live files to the same account. The query rescanned the owner’s entries and held Sylux’s only database writer for 3.93 to 4.30 seconds across three runs. After the fix started from the selected tree, the median was 19.58 ms. A second, focused review compared old and new query results in 11,584 randomized cases, because that query decides what gets deleted. (PR #80)

The builder’s test was reasonable. It just varied the dimension the builder had thought of.

Routing is a table

Every worker gets an explicit model and effort from a routing table, chosen by role and size. Nothing starts on a CLI’s default. A trimmed version:

RoleSmallMediumLarge
Builder (Codex)gpt-6-luna, mediumgpt-6.2-sol, mediumgpt-6.2-sol, high
Reviewer (Claude)Sonnet, mediumOpus, highOpus, high
Review fix (Codex)gpt-6-lunagpt-6.1-terraescalate to Sol
Review screenGLM-5.3 Flash

The table is meant to be swapped. Each model is pinned in one file, so trying a different one is a one-line edit, and I make that edit a lot. The first values were copied from Switchyard’s routing. Sol moved from 6.1 to 6.2 between two batches on the same day, and the review-fix rows went from Sol for everything to Luna, Terra and Sol by how much judgment the fix needs. I can also override any row for a session. When a new model lands in a family I route, it gets compared against the pinned one before it replaces it, not after.

Follow-up tasks are sized by the task, not the issue. A list of three findings on a large issue is still bounded work, so fixes are capped at medium. If a worker fails the same check twice, it moves up a row.

The table also says what happens when a CLI runs out of usage, which it does. The builder falls back from Codex to Claude to OpenCode, with large builds waiting for me. The reviewer is whichever of Codex and Claude did not build, then OpenCode. The coordinator asks at pickup which CLIs have headroom and names the fallbacks then, not when one runs dry halfway through a fix. On SYL-83, Codex hit its limit during review fixes and Claude took over coordination and restarted three fix workers from partial work.

OpenCode runs on its own Go subscription, so it is a separate quota from both. Within it, Qwen4 Max costs about 14 times as much per request as GLM-5.3 Flash, so Qwen4 Max is kept for the fallback rows.

What the batches showed

The delivery skill has a batch procedure for running several issues unattended. I give it the queue, the repository, the allowed CLIs and whether reviewed PRs may merge, then leave. Everything gets written up in an evaluation log, including partial runs.

The batches are experiments as much as deliveries. The log keeps a list of open questions, each with a proposed comparison: whether cheaper models can handle review fixes, whether the supervisor needs Astra or Sol would do, when an issue coordinator needs a stronger model. A bigger one compares three setups for the same batch: a single Codex Desktop agent splitting the work however it likes, one Orca coordinator managing every issue, and the supervisor with fresh coordinators described above. The rule is to vary one choice at a time and judge quality and interventions before speed or tokens. The supervisor shape is the one under test right now, not a verdict. Four batches on Sylux so far, all on 18 and 19 November:

BatchWorkPickup to last mergeOwner interventionsFresh inputCached input
Sequentialtwo research docs39m 36s00.84M21.7M
Concurrentresearch doc, large account export1h 44m 04s01.97M62.9M
Concurrentmedia playback, permanent removalabout 63m01.83M67.8M
ConcurrentFiles search, keyboard shortcuts50m 24s01.46M46.8M

Each batch merged every issue it took, with independent review and passing required checks. The workloads differ too much to say whether concurrency or a routing change made one faster than another, and the log says so each time.

The concurrent batches overlapped less than I expected. Two coordinators start at once, but the builds overlapped for 7 to 9 minutes and the reviews for 3 to 4. In the slower batches most of the elapsed time came after review: fix rounds, hosted CI and serialized merges. The export issue alone took three fix rounds and three focused re-reviews. One round caught cleanup that could leave every account’s metadata in a single account’s export.

Two changes came straight out of the numbers. On the export issue, the coordinator dispatched model sessions to watch CI, and two watchers cost about 100k fresh input and 1.92M cached input to wait. Coordinators now wait with a shell command, gh pr checks --required --watch in a background shell, and the next two batches spent zero tokens on waiting. The other was the rule that fix workers run lint and the failure paths they touched before handing back. On the export issue a Clippy failure had first turned up in re-review. Later fixes caught their own problems before handoff, though the workloads are too different to credit the rule with that.

Cached input dwarfs everything else. Across the four batches it is roughly 200 million tokens against about 6 million fresh. This is the factory’s lesson again in smaller print: every worker is a fresh session that rereads its instructions, tools and the code. The thin coordinator and the ten-line handoff exist to keep that from compounding. I have not measured what any of it does to the subscription quotas, which is the number I care about. That needs provider telemetry I don’t have yet.

The “arguably”

Per issue, this is lighter than Switchyard. There is no template in each repository and no planner stop for every change. A small fix gets a cheap screen instead of a full review, and design happens only when it is needed.

The skill has grown to make that possible, though. The core file is about a hundred lines, but it now has a routing table, a seven-step batch procedure, a wrap-up procedure and a usage script, and the evaluation log is nearly three times the length of the core file. Most of the rules came from one failure each. Some of it is a template’s worth of process with the copying removed.

The difference I care about is where the overhead sits. In Switchyard it sat in every issue. Here it sits in the skill and in the evaluation log, and I pay for it once when a batch goes wrong and I change a rule.

Tonight

As I write this, a four-issue batch is running on Sylux: online backup, file copies, expiring share links and a disposable Active Directory to Keycloak qualification. All four coordinators were told to start at once, with unique ports, data roots and container resources, and to agree at pickup who owns the schema migrations and the shared Files UI. Copy and share both touch the same Files actions, and backup has to restore a database whose schema the other two may have changed.

The handoff says I’m going to bed, and I am. The evaluation will be in the log by morning, or the blocker will be.

Discussion