Repository navigation
Let a spawn set each task's model and thinking level - #185
Conversation
Every subagent ran the profile's subagent model, so a quick review and a deep one could not run at different models or effort without changing the profile setting between spawns (#184). The spawn tools' tasks now take optional model (provider/id) and thinking. What a task leaves out comes from the profile, models are resolved before any child opens, and an unknown model refuses the spawn with the list of models the user can use. A resumed child keeps its model and level, as before.
|
Reviewed and tested on top of main (924e61f): check clean, 289/290 pass, new test fails without the src change as it should. Design is right — per-task override on the profile's subagent model, one shared Pushed one line (0427965): a task that names a model now also needs configured auth for its provider (like Pi's own Holding the merge for now. |
The model only sees the spawn schema's optional model field; it does not know
which ids Pi is logged in to, nor ids newer than its training. models(provider?)
lists provider/id for every available model with the profile's subagent default
marked, for the main agent and delegating children alike. The main prompt and
the delegation paragraph tell the model to call it when the user names a family
without a version ("Opus").
|
Pushed 2334126: a |
Part of #184 (model and thinking per spawn; roles are left for the questions in the issue).
Why
Every subagent ran the profile's subagent model. A quick review and a deep one could not use different models or effort without changing the profile setting between spawns.
What changed
model(provider/id) andthinking, in both spawn tools. What a task leaves out comes from the profile.Tradeoffs
provider/id, as inconfig.jsonand the run records. Pi's fuzzy--modelmatching needs aModelRuntimethatChildrendoes not have.Blast Radius
Spawns without the new fields behave as before. The spawn tool schema changes, so the main agent's cached prompt is rewritten once after the update.
Verification
npm run check,npm test(288 pass) andnpm pack --dry-run. The new test fails with the change reverted.verify-pi-optchat, isolated profile onopenai/gpt-6-luna:max): asked in plain words for three tasks, the agent spawned Haiku 5.5 at low, the profile model at low, and the profile model at max. Each child session'smodel_change,thinking_level_changeand assistant message match, and the agent view showsclaude-haiku-5-5.