Skip to content

feat(rlm): configure a default subagent model - #923

Open
olivermontes wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
olivermontes:feat/921-subagent-default-model
Open

feat(rlm): configure a default subagent model#923
olivermontes wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
olivermontes:feat/921-subagent-default-model

Conversation

@olivermontes

@olivermontes olivermontes commented Aug 8, 2026

Copy link
Copy Markdown

Summary

Adds subagents.defaultModel as a persistent global or project-level default for RLM child agents.

Resolution order is now:

  1. Explicit rlm(..., model=...)
  2. subagents.defaultModel
  3. Parent-model inheritance

Configured selectors use the existing authenticated-catalog lookup and auth preflight. An unavailable selector fails admission rather than silently falling back.

Closes #921.

Validation

  • npm test -- test/suite/regressions/4649-subagent-model-selection.test.ts test/settings-manager.test.ts
  • npx biome check packages/coding-agent/src/core/settings-manager.ts packages/coding-agent/src/core/agent-session.ts packages/coding-agent/test/settings-manager.test.ts packages/coding-agent/test/suite/regressions/4649-subagent-model-selection.test.ts
  • npm run build

Note

Add subagents.defaultModel setting to configure a default subagent model in RLM

  • Adds a subagents.defaultModel field to the Settings interface and a getSubagentDefaultModel() accessor on SettingsManager.
  • In AgentSession.runRlmChild, the configured default is used when no explicit model is passed to rlm.run, falling back to the parent model only if neither is set.
  • Behavioral Change: if the configured default model is unavailable or fails auth preflight, spawn now fails rather than falling back to the parent model.

Macroscope summarized c4fe65d.

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.

Add a persistent default model/provider policy for RLM subagents

1 participant