MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getImplementorDisplayName

Function getImplementorDisplayName

cli/src/utils/implementor-helpers.ts:65–84  ·  view source on GitHub ↗
(
  agentType: string,
  index?: number,
)

Source from the content-addressed store, hash-verified

63 * Get the display name for an implementor agent.
64 */
65export const getImplementorDisplayName = (
66 agentType: string,
67 index?: number,
68): string => {
69 let baseName = 'Implementor'
70 if (agentType.includes('editor-implementor-opus')) {
71 baseName = 'Opus'
72 } else if (agentType.includes('editor-implementor-gemini')) {
73 baseName = 'Gemini'
74 } else if (agentType.includes('editor-implementor-gpt-5')) {
75 baseName = 'GPT-5'
76 } else if (agentType.includes('editor-implementor')) {
77 baseName = 'Sonnet'
78 }
79
80 if (index !== undefined) {
81 return `${baseName} #${index + 1}`
82 }
83 return baseName
84}
85
86/**
87 * Get the index of an implementor agent among its siblings.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected