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

Function isSubagentContext

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

Source from the content-addressed store, hash-verified

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

Callers 1

getSubagentLogNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected