Open
Conversation
Owner
Author
|
Github base branch sideeffect. Keepin main fork clean |
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.
Summary
Adds Pi (
pi/omegonbinary) as a supported agent backend forexpect.What changed
packages/agentdetect-agents.ts— registerspiwith binaries["pi", "omegon"]and skill dir.pi/skillsacp-client.ts— addsAcpAdapter.layerPi: reads~/.pi/agent/auth.jsonto check auth, resolvespi-acpadapter package at runtime, and adds a per-adapterinactivityTimeoutMsfield (pi's extended-thinking mode can silently reason for several minutes before emitting its first token — its timeout is raised to 10 min vs the 3 min default for other agents)agent.ts— wiresAgent.layerPiand adds"pi"to theAgentBackendunionpackages/sharedmodels.ts— adds"pi"toAgentProviderliterals and display nameslaunched-from.ts— addsPI_CODING_AGENT_DIRenv var for auto-detectionTests
detect-agents.test.ts— detectspiviapibinary, detects viaomegonfallbackacp-adapter.test.ts—layerPiresolves adapter, unauthenticated/not-installed error messagesRuntime dependency
Pi's ACP adapter is the published
pi-acpnpm package (^0.0.24), loaded at runtime viarequire.resolve(same pattern as other ACP adapters). No bundling changes needed.Usage
Tested
Ran against a live Next.js project with real git changes. Pi generated a 15-step test plan from the diff, executed all steps in ~4 minutes, and reported 8 passed / 7 failed with a session replay URL.