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

Function formatAgent

src/cli/handlers/agents.ts:20–30  ·  view source on GitHub ↗
(agent: ResolvedAgent)

Source from the content-addressed store, hash-verified

18import { getCwd } from '../../utils/cwd.js'
19
20function formatAgent(agent: ResolvedAgent): string {
21 const model = resolveAgentModelDisplay(agent)
22 const parts = [agent.agentType]
23 if (model) {
24 parts.push(model)
25 }
26 if (agent.memory) {
27 parts.push(`${agent.memory} memory`)
28 }
29 return parts.join(' · ')
30}
31
32export async function agentsHandler(): Promise<void> {
33 const cwd = getCwd()

Callers 1

agentsHandlerFunction · 0.85

Calls 2

resolveAgentModelDisplayFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected