[object Object]

← back to Build Debrief

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

8615b8dade549d5eb5561205489e6c20b3dacdef · 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 8615b8dade549d5eb5561205489e6c20b3dacdef
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>
---
 src/server.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server.js b/src/server.js
index d4af778..1b5bba1 100644
--- a/src/server.js
+++ b/src/server.js
@@ -222,7 +222,7 @@ app.post('/api/project/:id/action', async (req, res) => {
     }
     if (action === 'open-claude') {
       const prompt = (args.prompt || `Resume work on ${p.name}. Project at ${p.path}.`).replace(/"/g, '\\"');
-      await openInIterm(p.path, { title: p.name, cmd: `claude "${prompt}"` });
+      await openInIterm(p.path, { title: p.name, cmd: `claude --model opus "${prompt}"` });
       return res.json({ ok: true });
     }
     if (action === 'gitify') {

← a87937d chore: macstudio3 migration — reconcile from mac2 + repoint  ·  back to Build Debrief  ·  (newest)