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

Function buildInheritedEnvVars

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

Source from the content-addressed store, hash-verified

133 * plus any provider/config env vars that are set in the current process.
134 */
135export function buildInheritedEnvVars(): string {
136 const envVars = ['CLAUDECODE=1', 'CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1']
137
138 for (const key of TEAMMATE_ENV_VARS) {
139 const value = process.env[key]
140 if (value !== undefined && value !== '') {
141 envVars.push(`${key}=${quote([value])}`)
142 }
143 }
144
145 return envVars.join(' ')
146}
147

Callers 3

handleSpawnSplitPaneFunction · 0.85
spawnMethod · 0.85

Calls 2

quoteFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected