Skip to content

chore(subagents): make subagent model agnostic#2

Merged
0xRichardH merged 1 commit into
mainfrom
chore/model-agnostic-subagents
Jun 25, 2026
Merged

chore(subagents): make subagent model agnostic#2
0xRichardH merged 1 commit into
mainfrom
chore/model-agnostic-subagents

Conversation

@0xRichardH

Copy link
Copy Markdown
Owner

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 — was anthropic/claude-opus-4-6
  • agents/reviewer.md — was anthropic/claude-opus-4-6
  • agents/scout.md — was anthropic/claude-haiku-4-5
  • agents/visual-tester.md — was anthropic/claude-sonnet-4-6
  • agents/worker.md — was anthropic/claude-sonnet-4-6

Why

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

  • Unit tests pass (npm test — 133 passed, 0 failed)
  • No behavior change beyond model selection
  • Only the five subagent files are modified

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.
@0xRichardH 0xRichardH merged commit cfbb1ef into main Jun 25, 2026
@0xRichardH 0xRichardH deleted the chore/model-agnostic-subagents branch June 25, 2026 06:40
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