MCPcopy
hub / github.com/codeaashu/claude-code / getDefaultTeammateModel

Function getDefaultTeammateModel

src/tools/shared/spawnMultiAgent.ts:72–82  ·  view source on GitHub ↗
(leaderModel: string | null)

Source from the content-addressed store, hash-verified

70import { isCustomAgent } from '../AgentTool/loadAgentsDir.js'
71
72function getDefaultTeammateModel(leaderModel: string | null): string {
73 const configured = getGlobalConfig().teammateDefaultModel
74 if (configured === null) {
75 // User picked "Default" in the /config picker — follow the leader.
76 return leaderModel ?? getHardcodedTeammateModelFallback()
77 }
78 if (configured !== undefined) {
79 return parseUserSpecifiedModel(configured)
80 }
81 return getHardcodedTeammateModelFallback()
82}
83
84/**
85 * Resolve a teammate model value. Handles the 'inherit' alias (from agent

Callers 1

resolveTeammateModelFunction · 0.85

Calls 3

getGlobalConfigFunction · 0.85
parseUserSpecifiedModelFunction · 0.85

Tested by

no test coverage detected