[object Object]

← back to Ventura Claw

Pin autonomous Claude CLI invocation to Opus (--model opus)

fa4ad4dd6a3b8920f53910ffbfae1f9cf64e8ab1 · 2026-07-23 11:41:50 -0700 · Steve Abrams

Bare 'claude' spawn inherited the CLI's drifting default model; pin to Opus
so this build/gen loop always runs on the intended model.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files touched

Diff

commit fa4ad4dd6a3b8920f53910ffbfae1f9cf64e8ab1
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Thu Jul 23 11:41:50 2026 -0700

    Pin autonomous Claude CLI invocation to Opus (--model opus)
    
    Bare 'claude' spawn inherited the CLI's drifting default model; pin to Opus
    so this build/gen loop always runs on the intended model.
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---
 server/lib/smart-router.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/lib/smart-router.js b/server/lib/smart-router.js
index 805cbf0..7034832 100644
--- a/server/lib/smart-router.js
+++ b/server/lib/smart-router.js
@@ -78,7 +78,7 @@ async function callClaudeCLI(prompt, opts = {}) {
     const env = { ...process.env };
     delete env.ANTHROPIC_API_KEY;
     delete env.ANTHROPIC_AUTH_TOKEN;
-    const child = spawn("claude", ["-p", "--output-format", "text"], { env });
+    const child = spawn("claude", ["--model", "opus", "-p", "--output-format", "text"], { env });
     let out = "", err = "";
     child.stdout.on("data", d => out += d);
     child.stderr.on("data", d => err += d);

← 49d825b fix: add rel=noopener noreferrer to target=_blank link in ad  ·  back to Ventura Claw  ·  (newest)