Skip to content

feat(runner): agent-backend seam + multivariate wizard-runner flag (#521)#692

Draft
gewenyu99 wants to merge 1 commit into
mainfrom
pi/01-seam-flag
Draft

feat(runner): agent-backend seam + multivariate wizard-runner flag (#521)#692
gewenyu99 wants to merge 1 commit into
mainfrom
pi/01-seam-flag

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Part of the pluggable-runner epic #520. Implements #521 — the AgentBackend seam + the multivariate wizard-runner flag (anthropic | pi, default anthropic). anthropic wraps today's claude-agent-sdk path verbatim; selectBackend resolves the flag inside the linear mode.

Bottom of the pi stack: #692#693#694#695.

⚠️ Draft. pi is not yet at parity with the anthropic backend — see #695 for the full status + open gaps.

)

Introduce AgentBackend, the seam the linear mode hands off to instead of
calling the SDK directly, plus the multivariate `wizard-runner` flag
(anthropic | pi, default anthropic). The `anthropic` backend wraps today's
claude-agent-sdk path (initializeAgent + runAgent) verbatim; selectBackend
resolves the flag (unknown/missing -> anthropic) and logs the active backend.
`pi` resolves to the control until the pi.dev backend lands (#524).

Prompt assembly, error routing, and the outro stay in linear.ts so every
backend shares them.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

gewenyu99 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant