feat(subagents): support model, thinking, and tools overrides#50
Open
0xbentang wants to merge 4 commits into
Open
feat(subagents): support model, thinking, and tools overrides#500xbentang wants to merge 4 commits into
0xbentang wants to merge 4 commits into
Conversation
Expose thinking as a tool call parameter so callers can override the agent default directly. Priority: params.thinking > agent frontmatter thinking.
…thinking Read subagents.agentOverrides from ~/.pi/agent/settings.json (user) and .pi/settings.json (project, takes precedence). Only model and thinking fields are overridden; all other agent defaults remain unchanged.
Use the configured agent directory when reading user settings, merge project overrides per field, apply overrides only to bundled agents, and cover the settings behavior with tests.
Add tools?: string | false to AgentOverride so bundled agent tool lists can be replaced via settings.json. tools: false clears the list to get all default tools.
|
+1. really need this |
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
thinkingspawn parameter alongside the existingmodeloverridesubagents.agentOverridesfor bundled agents in user and project settings.jsonmodel,thinking,tools(allowlist orfalseto clear)Settings format
{ "subagents": { "agentOverrides": { "worker": { "model": "openai/gpt-4o", "thinking": "high" }, "scout": { "model": "openai/gpt-4o-mini", "tools": "read, bash, grep, find, ls" } } } }Testing
npm test(119 tests pass)