Skip to content

feat(subagents): support model, thinking, and tools overrides#50

Open
0xbentang wants to merge 4 commits into
HazAT:mainfrom
0xbentang:model-override
Open

feat(subagents): support model, thinking, and tools overrides#50
0xbentang wants to merge 4 commits into
HazAT:mainfrom
0xbentang:model-override

Conversation

@0xbentang

@0xbentang 0xbentang commented May 6, 2026

Copy link
Copy Markdown

Summary

  • Adds a thinking spawn parameter alongside the existing model override
  • Supports subagents.agentOverrides for bundled agents in user and project settings.json
  • Project settings override user settings per field, without affecting project or global agents
  • Overridable fields: model, thinking, tools (allowlist or false to 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)

0xbentang added 3 commits May 6, 2026 08:46
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.
@0xbentang 0xbentang marked this pull request as ready for review May 6, 2026 01:05
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.
@0xbentang 0xbentang changed the title feat(subagents): support model and thinking overrides feat(subagents): support model, thinking, and tools overrides May 6, 2026
@JayGhiya

JayGhiya commented May 6, 2026

Copy link
Copy Markdown

+1. really need this

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.

2 participants