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

Function getSubagentLogName

source code/utils/agentContext.ts:143–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 * and custom agents are always mapped to the literal "user-defined".
142 */
143export function getSubagentLogName():
144 | AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
145 | undefined {
146 const context = getAgentContext()
147 if (!isSubagentContext(context) || !context.subagentName) {
148 return undefined
149 }
150 return (
151 context.isBuiltIn ? context.subagentName : 'user-defined'
152 ) as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
153}
154
155/**
156 * Get the invoking request_id for the current agent context — once per

Callers 1

handleSessionFileAccessFunction · 0.85

Calls 2

getAgentContextFunction · 0.85
isSubagentContextFunction · 0.85

Tested by

no test coverage detected