MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / isSubagentContext

Function isSubagentContext

source code/utils/agentContext.ts:117–121  ·  view source on GitHub ↗
(
  context: AgentContext | undefined,
)

Source from the content-addressed store, hash-verified

115 * Type guard to check if context is a SubagentContext.
116 */
117export function isSubagentContext(
118 context: AgentContext | undefined,
119): context is SubagentContext {
120 return context?.agentType === 'subagent'
121}
122
123/**
124 * Type guard to check if context is a TeammateAgentContext.

Callers 1

getSubagentLogNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected