MCPcopy Index your code
hub / github.com/codeaashu/claude-code / resolveAgentModelDisplay

Function resolveAgentModelDisplay

src/tools/AgentTool/agentDisplay.ts:78–84  ·  view source on GitHub ↗
(
  agent: AgentDefinition,
)

Source from the content-addressed store, hash-verified

76 * Returns the model alias or 'inherit' for display purposes.
77 */
78export function resolveAgentModelDisplay(
79 agent: AgentDefinition,
80): string | undefined {
81 const model = agent.model || getDefaultSubagentModel()
82 if (!model) return undefined
83 return model === 'inherit' ? 'inherit' : model
84}
85
86/**
87 * Get a human-readable label for the source that overrides an agent.

Callers 2

AgentsListFunction · 0.85
formatAgentFunction · 0.85

Calls 1

getDefaultSubagentModelFunction · 0.85

Tested by

no test coverage detected