You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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
# Remove Agent Selection from Pi in the Init Command
2
+
3
+
## Goal
4
+
5
+
Stop prompting users to select and configure an agent during `berget code init` when they choose Pi. The Pi init flow should only install the provider and set `defaultProvider = 'berget'`.
6
+
7
+
## Background
8
+
9
+
Pi uses a single system prompt (`SYSTEM.md`), so the init wizard currently asks:
10
+
11
+
1. "Set up an agent for Pi?"
12
+
2. Choose an agent from a list
13
+
3. Write/replace `SYSTEM.md`
14
+
15
+
This adds friction. Pi users can configure agents manually; the init command should focus on auth + provider setup only.
16
+
17
+
OpenCode will keep its multi-agent selection flow (agents are stored as separate `.md` files).
18
+
19
+
## Files to Change
20
+
21
+
### 1. `src/commands/code/init.ts`
22
+
23
+
- Remove `initPiAgent` from the import from `./pi.js`
24
+
- In `configureTool()`, remove the `await initPiAgent({ cwd, files, homeDir, prompter, scope })` call
|**Remove agent prompts**|`sets up pi project with fresh install`, `preserves existing Pi settings when setting defaultProvider`, `creates api key for pi when no seat`, `login failure shows manual auth instructions`|
43
+
|**Delete**|`skips agent selection for pi project` (rename or repurpose), `sets up agent for pi project`, `sets up agent for pi globally`, `overwrites pi SYSTEM.md when content differs`, `throws CancelledError when user cancels at agent write confirmation (pi)`|
0 commit comments