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

Function startInProcessTeammate

src/utils/swarm/inProcessRunner.ts:1544–1552  ·  view source on GitHub ↗
(config: InProcessRunnerConfig)

Source from the content-addressed store, hash-verified

1542 * @param config - Runner configuration
1543 */
1544export function startInProcessTeammate(config: InProcessRunnerConfig): void {
1545 // Extract agentId before the closure so the catch handler doesn't retain
1546 // the full config object (including toolUseContext) while the promise is
1547 // pending - which can be hours for a long-running teammate.
1548 const agentId = config.identity.agentId
1549 void runInProcessTeammate(config).catch(error => {
1550 logForDebugging(`[inProcessRunner] Unhandled error in ${agentId}: ${error}`)
1551 })
1552}
1553

Callers 2

handleSpawnInProcessFunction · 0.85
spawnMethod · 0.85

Calls 2

runInProcessTeammateFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected