config: support Anthropic, OpenAI, Gemini, and OpenCode Zen providers#20
Merged
Conversation
- Add ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY to .env.schema - OPENCODE_ZEN_API_KEY no longer required (any one provider suffices) - start.sh auto-detects provider and picks model: - Orchestration/coding: opus-4-6 / gpt-5.3-codex / gemini-3-pro - Triage (sentry): haiku-4-5 / gpt-5-mini / gemini-3-flash - install.sh prompts for all four providers - Remove hardcoded defaultProvider/defaultModel from settings.json - Update control-agent skill with model selection tables - Update CI simulated input for new prompt order
3721620 to
ac3b8e6
Compare
| | `OPENCODE_ZEN_API_KEY` | `opencode-zen/claude-haiku-4-5` | | ||
|
|
||
| ```bash | ||
| tmux new-session -d -s sentry-agent "export PATH=\$HOME/.varlock/bin:\$HOME/opt/node-v22.14.0-linux-x64/bin:\$PATH && export PI_SESSION_NAME=sentry-agent && varlock run --path ~/.config/ -- pi --session-control --skill ~/.pi/agent/skills/sentry-agent --model <MODEL_FROM_TABLE_ABOVE>" |
There was a problem hiding this comment.
Bug: The SKILL.md file contains conflicting instructions for spawning sentry-agent, with an outdated section hardcoding a model that will fail if its specific API key is not set.
Severity: HIGH
Suggested Fix
Remove the old "## Sentry Agent" section from pi/skills/control-agent/SKILL.md entirely. Retain only the updated "### Spawning sentry-agent" section that includes the model selection table and uses the <MODEL_FROM_TABLE_ABOVE> placeholder.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: pi/skills/control-agent/SKILL.md#L359
Potential issue: The documentation file `pi/skills/control-agent/SKILL.md` contains two
conflicting sets of instructions for spawning the `sentry-agent`. An older section
includes a command that hardcodes the model to `opencode-zen/claude-haiku-4-5`. A newer
section, introduced by this pull request, provides instructions for dynamic model
selection based on available API keys. If an operator follows the older, hardcoded
instructions and the `OPENCODE_ZEN_API_KEY` is not configured, the `sentry-agent` will
fail to start, even if other provider keys are available. This creates documentation
duplication and a risk of incorrect deployment.
Did we get this right? 👍 / 👎 to inform future reviews.
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.
Adds direct support for four LLM providers. Set at least one API key.
Providers:
ANTHROPIC_API_KEYclaude-opus-4-6claude-haiku-4-5OPENAI_API_KEYgpt-5.3-codexgpt-5-miniGEMINI_API_KEYgemini-3-pro-previewgemini-3-flash-previewOPENCODE_ZEN_API_KEYclaude-opus-4-6claude-haiku-4-5Changes:
.env.schema: addANTHROPIC_API_KEY,OPENAI_API_KEY,GEMINI_API_KEYstart.sh: auto-detect provider from env, pass--modelto piinstall.sh: prompt for all four providers (all optional, warns if none set)settings.json: remove hardcodeddefaultProvider/defaultModelCONFIGURATION.md: document all four providers