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

Function getAgentModelDisplay

src/utils/model/agent.ts:124–129  ·  view source on GitHub ↗
(model: string | undefined)

Source from the content-addressed store, hash-verified

122}
123
124export function getAgentModelDisplay(model: string | undefined): string {
125 // When model is omitted, getDefaultSubagentModel() returns 'inherit' at runtime
126 if (!model) return 'Inherit from parent (default)'
127 if (model === 'inherit') return 'Inherit from parent'
128 return capitalize(model)
129}
130
131/**
132 * Get available model options for agents

Callers 2

AgentDetailFunction · 0.85
ConfirmStepFunction · 0.85

Calls 1

capitalizeFunction · 0.85

Tested by

no test coverage detected