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

Function startInProcessTeammate

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

Source from the content-addressed store, hash-verified

1640 * @param config - Runner configuration
1641 */
1642export function startInProcessTeammate(config: InProcessRunnerConfig): void {
1643 // Extract agentId before the closure so the catch handler doesn't retain
1644 // the full config object (including toolUseContext) while the promise is
1645 // pending - which can be hours for a long-running teammate.
1646 const agentId = config.identity.agentId
1647 void runInProcessTeammate(config).catch(error => {
1648 logForDebugging(`[inProcessRunner] Unhandled error in ${agentId}: ${error}`)
1649 })
1650}

Callers 1

spawnMethod · 0.85

Calls 2

runInProcessTeammateFunction · 0.85
logForDebuggingFunction · 0.50

Tested by

no test coverage detected