feat(runner): central runner plan + anthropic runner seam (#521)#692
Closed
gewenyu99 wants to merge 3 commits into
Closed
feat(runner): central runner plan + anthropic runner seam (#521)#692gewenyu99 wants to merge 3 commits into
gewenyu99 wants to merge 3 commits into
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jun 19, 2026
Re-add the wizard-runner flag key on top of latest main (it lived only on the old stack, which is being re-authored). Read by the wizardRunner resolver middleware in #692b; no importer yet. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mcp-prompt-streaming.ts and agent-prompt-loader.ts hardcoded 'claude-sonnet-4-6'; point them at the shared DEFAULT_AGENT_MODEL constant (agent-interface already uses it on main). Value unchanged; prep for the MODELS alias map in #692a. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
20d5b6f to
66850b4
Compare
4 tasks
gewenyu99
commented
Jun 30, 2026
| } | ||
|
|
||
| /** The fall-through when a program has no `ROUTES` entry. */ | ||
| export const DEFAULT_ROUTE: Route = { |
Collaborator
Author
There was a problem hiding this comment.
Right now we just default everything to this
66850b4 to
4c6f355
Compare
Introduce runner-plan.ts: the central config map (ROUTES -> {router, runner,
model}, DEFAULT_ROUTE = linear/anthropic/sonnet), the RUNNERS/MODELS registries,
the middleware-chain plumbing, and resolvePair (empty chain -> map terminal).
Extract the claude-agent-sdk path (initializeAgent + runAgent, incl.
emitStepEvents) into backends/anthropic.ts behind the AgentRunner seam. linear.ts
resolves the (runner, model) pair and dispatches through the runner; skill
install, ask bridge (richLinks), prompt assembly (teamProductOptIns), error
routing and outro stay shared. The pair's model threads via modelOverride.
Behavior identical: every program resolves to linear/anthropic/sonnet. The
orchestrator fork (isOrchestratorEnabled) is untouched here; resolveRouter and
the per-flag middleware land in #692b.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4c6f355 to
79cafb3
Compare
edwinyjlim
approved these changes
Jul 1, 2026
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Epic #520 · implements #521.
Problem
@anthropic-ai/claude-agent-sdk) — no way to swap or A/B an alternate backend.Changes
AgentBackendseam +selectBackend(flags)inrunner/backends/(unknown/missing →anthropic).linear.tsat the agent-run step;anthropicwraps today's path verbatim.wizard-runnerflag (anthropic | pi, defaultanthropic); active backend logged each run.Test plan
selectBackendunit-tested per variant.wizard-runnercreated in PostHog (US + EU), defaultanthropic, 100%anthropic.