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

Function isTeammateAgentContext

src/utils/agentContext.ts:124–131  ·  view source on GitHub ↗
(
  context: AgentContext | undefined,
)

Source from the content-addressed store, hash-verified

122 * Type guard to check if context is a TeammateAgentContext.
123 */
124export function isTeammateAgentContext(
125 context: AgentContext | undefined,
126): context is TeammateAgentContext {
127 if (isAgentSwarmsEnabled()) {
128 return context?.agentType === 'teammate'
129 }
130 return false
131}
132
133/**
134 * Get the subagent name suitable for analytics logging.

Callers

nothing calls this directly

Calls 1

isAgentSwarmsEnabledFunction · 0.85

Tested by

no test coverage detected