Remove agent selection from Pi init flow#79
Merged
Conversation
- Stop prompting users to select/configure an agent during berget code init for Pi - Pi init now only installs the provider and sets defaultProvider = 'berget' - Delete initPiAgent function and its imports (getAllAgents, toPiPrompt) - Remove toPiPrompt export from src/agents/index.ts (was only used by initPiAgent) - Update tests: remove agent-selection prompts from Pi tests, delete obsolete Pi agent tests
e4b5cff to
8c209bd
Compare
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
Stop prompting users to select and configure an agent during
berget code initwhen they choose Pi. The Pi init flow now only installs the provider and setsdefaultProvider = 'berget'.Background
Pi uses a single system prompt (
SYSTEM.md), so the init wizard previously asked users to set up an agent. This added friction. Pi users can configure agents manually; the init command should focus on auth + provider setup only.OpenCode keeps its multi-agent selection flow (agents are stored as separate
.mdfiles).Changes
src/commands/code/init.ts— RemoveinitPiAgentimport and callsrc/commands/code/pi.ts— DeleteinitPiAgentfunction; remove unused imports (getAllAgents,toPiPrompt,CancelledError,getPiAgentDir)src/agents/index.ts— RemovetoPiPromptexport (only used byinitPiAgent)src/commands/code/__tests__/init.test.ts— Update Pi-related tests to no longer include agent-selection prompts; delete obsolete Pi agent testsVerification
npm run test:runpasses (279 tests)npm run typecheckpassesnpm run lintpasses