MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getStandaloneAgentName

Function getStandaloneAgentName

src/utils/standaloneAgent.ts:17–23  ·  view source on GitHub ↗
(appState: AppState)

Source from the content-addressed store, hash-verified

15 * Uses getTeamName() for consistency with isTeammate() swarm detection.
16 */
17export function getStandaloneAgentName(appState: AppState): string | undefined {
18 // If in a team (swarm), don't return standalone name
19 if (getTeamName()) {
20 return undefined
21 }
22 return appState.standaloneAgentContext?.name
23}
24

Callers 1

useSwarmBannerFunction · 0.85

Calls 1

getTeamNameFunction · 0.85

Tested by

no test coverage detected