The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
fix(scripts): resolve claude.cmd on Windows by enabling shell for spawn (#1471)
Michael163cdee60ffe
diff --git a/scripts/claw.js b/scripts/claw.jsindex 0ff539b88..04a4228ce 100644--- a/scripts/claw.js+++ b/scripts/claw.js@@ -91,11 +91,16 @@ function askClaude(systemPrompt, history, userMessage, model) {}args.push('-p', fullPrompt);+ // On Windows, the `claude` binary installed via npm is `claude.cmd`.+ // Node's spawn() cannot resolve `.cmd` wrappers via PATH without shell: true,+ // so this call fails with `spawn claude ENOENT` on Windows otherwise.+ // 'claude' is a hardcoded literal here (not user input), so shell mode is safe.const result = spawnSync('claude', args, {encoding: 'utf8',stdio: ['pipe', 'pipe', 'pipe'],env: { ...process.env, CLAUDECODE: '' },timeout: 300000,+ shell: process.platform === 'win32',});if (result.error) {