Skip to content

feat(runner): pi.dev backend behind wizard-runner=pi (#524)#693

Draft
gewenyu99 wants to merge 1 commit into
pi/01-seam-flagfrom
pi/02-pi-backend
Draft

feat(runner): pi.dev backend behind wizard-runner=pi (#524)#693
gewenyu99 wants to merge 1 commit into
pi/01-seam-flagfrom
pi/02-pi-backend

Conversation

@gewenyu99

@gewenyu99 gewenyu99 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Epic #520 · implements #524 — the pi backend on pi.dev (@earendil-works/pi-coding-agent) driving the PostHog LLM gateway (registered as an anthropic-messages provider, same model id as anthropic).

Stacked on #692. Stack: #692#693#694#695.

⚠️ Draft — transport works; parity is WIP (see #695).

Add the `pi` backend on pi.dev (@earendil-works/pi-coding-agent). Registers
the PostHog LLM gateway as an in-memory `anthropic-messages` provider (bearer
auth, Bedrock-fallback + wizard metadata/flag headers), resolves the same
model id as the anthropic control (claude-sonnet-4-6), runs the commandments
as the system prompt via DefaultResourceLoader, and drives
createAgentSession → prompt → subscribe, mapping pi tool/agent events onto the
run spinner + log. Errors map to AgentErrorType; selectBackend routes
wizard-runner=pi here.

Verified end-to-end on the CI build channel against express-todo: the gateway
provider resolves, the model responds, and the agent loop streams to the TUI.
Wizard tools (load_skill_menu, env ops) + skills discovery are follow-ups
(#5/#4) — without them the agent can't yet complete the integration.

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

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci error-tracking-upload-source-maps
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci error-tracking-upload-source-maps/android
  • /wizard-ci error-tracking-upload-source-maps/cicd-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-nested-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-gitlab-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-ssh-vps-node-raw
  • /wizard-ci error-tracking-upload-source-maps/flutter
  • /wizard-ci error-tracking-upload-source-maps/ios
  • /wizard-ci error-tracking-upload-source-maps/next
  • /wizard-ci error-tracking-upload-source-maps/next-no-posthog
  • /wizard-ci error-tracking-upload-source-maps/node-raw
  • /wizard-ci error-tracking-upload-source-maps/node-rollup
  • /wizard-ci error-tracking-upload-source-maps/node-rollup-typescript-plugin
  • /wizard-ci error-tracking-upload-source-maps/node-webpack
  • /wizard-ci error-tracking-upload-source-maps/nuxt-3-6
  • /wizard-ci error-tracking-upload-source-maps/nuxt-4-3
  • /wizard-ci error-tracking-upload-source-maps/react-native
  • /wizard-ci error-tracking-upload-source-maps/react-vite
  • /wizard-ci error-tracking-upload-source-maps/rust
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

gewenyu99 commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

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