[object Object]

← back to Animals

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

a7c20edd9ae44553ca5edcf7407e8a539f8add26 · 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 a7c20edd9ae44553ca5edcf7407e8a539f8add26
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>
---
 agents/animal-yolo/server.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/agents/animal-yolo/server.js b/agents/animal-yolo/server.js
index f64a6b2..05cae05 100644
--- a/agents/animal-yolo/server.js
+++ b/agents/animal-yolo/server.js
@@ -130,7 +130,7 @@ async function runOne() {
 
   // Run Claude in print mode with the prompt; cwd = project root.
   // Claude is allowed to edit + bash but should NOT push to remote.
-  const claudeArgs = ['--print', '--permission-mode', 'acceptEdits', '-p', task.prompt];
+  const claudeArgs = ['--model', 'opus', '--print', '--permission-mode', 'acceptEdits', '-p', task.prompt];
   const out = await runChild(claude, claudeArgs, ROOT, TASK_TIMEOUT_MS);
   if (out.timed_out) {
     log(`✗ ${task.id} — timed out after ${TASK_TIMEOUT_MS/60000}min`);

← c5a90f5 auth: accept second admin user dbrown  ·  back to Animals  ·  auto-save: 2026-07-27T07:48:56 (1 files) — _nav5x.mjs cc3bcfb →