Commit 9e02d42b1bfe

Vincent Demeester <vincent@sbr.pm>
2026-03-25 16:20:29
fix(pir): delegate model selection to modes.json
Removed hardcoded --provider and --model CLI flags that overrode modes.json, causing pi to start in 'custom' mode with sonnet-4-6 instead of the configured code-work mode.
1 parent 20283c6
Changed files (1)
pkgs
my
scripts
bin
pkgs/my/scripts/bin/pir
@@ -1,11 +1,11 @@
 #!/usr/bin/env bash
-# Pi coding agent with Vertex AI Claude provider
+# Pi coding agent with secrets provisioned via pass-run
 # Usage: pir [args...]
-# Uses google-vertex-claude provider with claude-sonnet-4-6
+# Model/provider controlled by ~/.pi/agent/modes.json
 
 exec pass-run -q \
   -e GOOGLE_CLOUD_PROJECT=redhat/google/osp/project \
   -e GOOGLE_CLOUD_LOCATION=redhat/google/osp/location \
   -e GEMINI_API_KEY=redhat/google/osp/vdeemest-api-key \
   -e SYNTHETIC_API_KEY=ai/synthetic.new/api_key \
-  -- pi --provider google-vertex-claude --model claude-sonnet-4-6 "$@"
+  -- pi "$@"