← back to Dw Marketing Reels
Pin autonomous Claude CLI invocation to Opus (--model opus)
d86340e1695c4ec1fcf275ee8282c3c35502d104 · 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
M scripts/video-runner.mjs
Diff
commit d86340e1695c4ec1fcf275ee8282c3c35502d104
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>
---
scripts/video-runner.mjs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/video-runner.mjs b/scripts/video-runner.mjs
index a6fefa9..6507268 100644
--- a/scripts/video-runner.mjs
+++ b/scripts/video-runner.mjs
@@ -43,7 +43,7 @@ function runClaude(CLAUDE_BIN, pr) {
let err = '';
// Give the render its audio toolchain without mutating the pm2/server env.
const env = { ...process.env, ...(HF_PY ? { HYPERFRAMES_PYTHON: HF_PY } : {}) };
- const ch = spawn(CLAUDE_BIN, ['-p', pr], { cwd: ROOT, env, stdio: ['ignore', 'inherit', 'pipe'] });
+ const ch = spawn(CLAUDE_BIN, ['--model', 'opus', '-p', pr], { cwd: ROOT, env, stdio: ['ignore', 'inherit', 'pipe'] });
ch.stderr.on('data', d => { err += d; process.stderr.write(d); });
ch.on('close', code => resolve({ ok: code === 0, code, err }));
ch.on('error', e => resolve({ ok: false, code: -1, err: String(e.message) }));
← acc7a77 auto-save: 2026-07-23T07:19:17 (3 files) — data/new-arrivals
·
back to Dw Marketing Reels
·
auto-save: 2026-07-24T07:26:03 (3 files) — data/new-arrivals 5ebec05 →