Skip to content

perf(pi): match anthropic — batch tool calls, 1M context, fewer round-trips#696

Closed
gewenyu99 wants to merge 1 commit into
pi/04-security-subagentsfrom
pi/05-pi-parity-perf
Closed

perf(pi): match anthropic — batch tool calls, 1M context, fewer round-trips#696
gewenyu99 wants to merge 1 commit into
pi/04-security-subagentsfrom
pi/05-pi-parity-perf

Conversation

@gewenyu99

Copy link
Copy Markdown
Collaborator

Problem

Changes

Test plan

…-trips

One purpose: bring the pi backend to performance parity with the anthropic control.

- Batching: read-only tools run in parallel (executionMode) + a PI_RUNTIME_NOTES rule to issue independent calls in one turn. pi now does fewer round-trips than anthropic (which doesn't batch in this flow).
- 1M context window (anthropic-beta header + contextWindow), matching the control; removes the post-run compaction overflow.
- Anti-spiral PI_RUNTIME_NOTES rules so fence-blocked commands don't loop: inspect via read not shell, never retry a blocked command, only the project's own scripts, run bare in the project root. (swift 12->6 blocks, nuxt 9->2.)
- Real MCP dashboard wiring: bindExtensions lifecycle + pre-warmed cache registering only the curated dashboard/insight tools as direct tools (proxy off, context lean).
- pi-only: snake_case events + untrusted-file guard live in PI_RUNTIME_NOTES; shared commandments reverted untouched.

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 20, 2026

Copy link
Copy Markdown
Collaborator Author

@gewenyu99

Copy link
Copy Markdown
Collaborator Author

Superseded — folded into the focused split #697#701 (perf parity now in #701).

@gewenyu99 gewenyu99 closed this Jun 20, 2026
@gewenyu99 gewenyu99 deleted the pi/05-pi-parity-perf branch June 27, 2026 02:24
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