[object Object]

← back to Slack Idea Board

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

189d8c30a677c8b0d7850179bda1adaadb1155b2 · 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 189d8c30a677c8b0d7850179bda1adaadb1155b2
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.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server.js b/server.js
index 4f6e890..c0485c6 100644
--- a/server.js
+++ b/server.js
@@ -169,7 +169,7 @@ function launchClaude(prompt, cwd) {
   fs.writeFileSync(promptFile, prompt, 'utf8');
   const dir = fs.existsSync(cwd) ? cwd : os.homedir();
   fs.writeFileSync(launcher,
-    `#!/bin/bash\ncd ${JSON.stringify(dir)} || exit 1\nclaude "$(cat ${JSON.stringify(promptFile)})"\n`, { mode: 0o755 });
+    `#!/bin/bash\ncd ${JSON.stringify(dir)} || exit 1\nclaude --model opus "$(cat ${JSON.stringify(promptFile)})"\n`, { mode: 0o755 });
   const osa = `tell application "iTerm2"
     activate
     tell current window to create tab with default profile

← 6bf6b15 ideas: make public — no auth (allow anyone in)  ·  back to Slack Idea Board  ·  idea-board: add 'Good for an Agent Abrams build / project?' 5babc6e →