Skip to content

Remove agent selection from Pi init flow#79

Merged
marcusolsson merged 1 commit into
mainfrom
remove-pi-agent-selection
Jun 15, 2026
Merged

Remove agent selection from Pi init flow#79
marcusolsson merged 1 commit into
mainfrom
remove-pi-agent-selection

Conversation

@marcusolsson

Copy link
Copy Markdown
Contributor

Summary

Stop prompting users to select and configure an agent during berget code init when they choose Pi. The Pi init flow now only installs the provider and sets defaultProvider = '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 .md files).

Changes

  • src/commands/code/init.ts — Remove initPiAgent import and call
  • src/commands/code/pi.ts — Delete initPiAgent function; remove unused imports (getAllAgents, toPiPrompt, CancelledError, getPiAgentDir)
  • src/agents/index.ts — Remove toPiPrompt export (only used by initPiAgent)
  • src/commands/code/__tests__/init.test.ts — Update Pi-related tests to no longer include agent-selection prompts; delete obsolete Pi agent tests

Verification

  • npm run test:run passes (279 tests)
  • npm run typecheck passes
  • npm run lint passes

- 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
@marcusolsson marcusolsson force-pushed the remove-pi-agent-selection branch from e4b5cff to 8c209bd Compare June 15, 2026 07:00
@marcusolsson marcusolsson merged commit 0fdf189 into main Jun 15, 2026
1 check passed
@marcusolsson marcusolsson deleted the remove-pi-agent-selection branch June 15, 2026 07:11
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