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

Function getAgentName

src/utils/teammate.ts:98–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 * Priority: AsyncLocalStorage (in-process) > dynamicTeamContext (tmux via CLI args).
97 */
98export function getAgentName(): string | undefined {
99 const inProcessCtx = getTeammateContext()
100 if (inProcessCtx) return inProcessCtx.agentName
101 return dynamicTeamContext?.agentName
102}
103
104/**
105 * Returns the team name if this session is part of a team.

Callers 15

callFunction · 0.85
callFunction · 0.85
handleMessageFunction · 0.85
handleBroadcastFunction · 0.85
handleShutdownRequestFunction · 0.85
handleShutdownApprovalFunction · 0.85
handleShutdownRejectionFunction · 0.85
callFunction · 0.85
WorkerPendingPermissionFunction · 0.85
useSwarmBannerFunction · 0.85
getTeamContextAttachmentFunction · 0.85

Calls 1

getTeammateContextFunction · 0.85

Tested by

no test coverage detected