Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { quotePowerShellLiteral } from '../../src/shared/powershell-native-argument'
import { quotePosixShell } from '../../src/shared/shell-argument-quoting'
function quoteTerminalArg(value: string): string {
return process.platform === 'win32' ? quotePowerShellLiteral(value) : quotePosixShell(value)
}
export function nodeTerminalCommand(args: readonly string[]): string {
const nodeExecutable = quoteTerminalArg(process.execPath)
const executable = process.platform === 'win32' ? `& ${nodeExecutable}` : nodeExecutable
// Pin the runner’s Node executable because Windows CI shells may not inherit setup-node’s PATH.
return [executable, ...args.map(quoteTerminalArg)].join(' ')
}