chore(subagents): make subagent model agnostic#2
Merged
Conversation
Remove hardcoded 'model:' lines (e.g. anthropic/claude-opus-4-6, claude-haiku-4-5, claude-sonnet-4-6) from the planner, reviewer, scout, visual-tester, and worker agents. The pi coding agent is LLM-agnostic. Hardcoding a model requires an Anthropic key and causes the plugin to error out for users on other providers. Letting the model be inherited from the session/default config instead makes the subagents work for everyone. Mirrors upstream PR HazAT#55 by olivierverdier.
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
Remove the hardcoded
model:lines from the subagent definitions so they inherit the model from the session/default config instead of requiring an Anthropic key.Affected agents:
agents/planner.md— wasanthropic/claude-opus-4-6agents/reviewer.md— wasanthropic/claude-opus-4-6agents/scout.md— wasanthropic/claude-haiku-4-5agents/visual-tester.md— wasanthropic/claude-sonnet-4-6agents/worker.md— wasanthropic/claude-sonnet-4-6Why
The pi coding agent is explicitly LLM-agnostic. Hardcoding an Anthropic model forces every user to have an Anthropic API key, and the plugin errors out for anyone on another provider. Dropping the
model:field lets each subagent fall back to the user's configured default, matching pi's provider-agnostic design.Context
Mirrors upstream PR HazAT/pi-interactive-subagents#55 by @olivierverdier — "Model agnostic subagents". The diff is byte-for-byte identical (same resulting blob hashes) for the five touched files.
Checklist
npm test— 133 passed, 0 failed)