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

Function isTeammate

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

Source from the content-addressed store, hash-verified

123 * For tmux teammates, requires BOTH an agent ID AND a team name.
124 */
125export function isTeammate(): boolean {
126 // In-process teammates run within the same process
127 const inProcessCtx = getTeammateContext()
128 if (inProcessCtx) return true
129 // Tmux teammates require both agent ID and team name
130 return !!(dynamicTeamContext?.agentId && dynamicTeamContext?.teamName)
131}
132
133/**
134 * Returns the teammate's assigned color,

Callers 15

getPromptFunction · 0.85
callFunction · 0.85
handleMessageFunction · 0.85
handleBroadcastFunction · 0.85
requiresUserInteractionFunction · 0.85
validateInputFunction · 0.85
checkPermissionsFunction · 0.85
callFunction · 0.85
useSwarmBannerFunction · 0.85
syncTeammateModeFunction · 0.85
callFunction · 0.85
callFunction · 0.85

Calls 1

getTeammateContextFunction · 0.85

Tested by

no test coverage detected