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

Function getTeammateCommand

src/utils/swarm/spawnUtils.ts:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 * current process executable path.
22 */
23export function getTeammateCommand(): string {
24 if (process.env[TEAMMATE_COMMAND_ENV_VAR]) {
25 return process.env[TEAMMATE_COMMAND_ENV_VAR]
26 }
27 return isInBundledMode() ? process.execPath : process.argv[1]!
28}
29
30/**
31 * Builds CLI flags to propagate from the current session to spawned teammates.

Callers 1

spawnMethod · 0.50

Calls 1

isInBundledModeFunction · 0.85

Tested by

no test coverage detected