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

Function getSubagentLogName

src/utils/agentContext.ts:141–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 * and custom agents are always mapped to the literal "user-defined".
140 */
141export function getSubagentLogName():
142 | AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
143 | undefined {
144 const context = getAgentContext()
145 if (!isSubagentContext(context) || !context.subagentName) {
146 return undefined
147 }
148 return (
149 context.isBuiltIn ? context.subagentName : 'user-defined'
150 ) as AnalyticsMetadata_I_VERIFIED_THIS_IS_NOT_CODE_OR_FILEPATHS
151}
152
153/**
154 * 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