MCPcopy
hub / github.com/codeaashu/claude-code / createAgentId

Function createAgentId

src/utils/uuid.ts:24–27  ·  view source on GitHub ↗
(label?: string)

Source from the content-addressed store, hash-verified

22 * Example: aa3f2c1b4d5e6f7a8, acompact-a3f2c1b4d5e6f7a8
23 */
24export function createAgentId(label?: string): AgentId {
25 const suffix = randomBytes(8).toString('hex')
26 return (label ? `a${label}-${suffix}` : `a${suffix}`) as AgentId
27}
28

Callers 6

executeForkedSkillFunction · 0.85
runAgentFunction · 0.85
callFunction · 0.85
createSubagentContextFunction · 0.85
runForkedAgentFunction · 0.85

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected