From 387d41a0dc0fdfdd19895f18e5d5e435db6f73f2 Mon Sep 17 00:00:00 2001 From: eauchs Date: Tue, 1 Sep 2026 22:22:57 +0200 Subject: [PATCH] dir-steering: pass --think, not --think-high, to ds4 build_direction.py --think aborts before capturing anything: ds4: unknown option: --think-high The ds4 CLI accepts --think, --think-max and --nothink; --think-high is not one of them, so every thinking-mode capture fails at the first pair. The non-thinking path is unaffected, which is why the default run works. Verified on macOS with GLM 5.3 Flash Q2: with the fix, --think completes 100 pairs and writes a 45 x 4096 direction, and the resulting direction is nearly orthogonal to the one captured on direct answers (mean per-layer cosine 0.19), so the two capture points are not interchangeable. --- dir-steering/tools/build_direction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dir-steering/tools/build_direction.py b/dir-steering/tools/build_direction.py index f660fb3ef..61f059cae 100755 --- a/dir-steering/tools/build_direction.py +++ b/dir-steering/tools/build_direction.py @@ -82,7 +82,7 @@ def run_capture( ] if system: cmd += ["--system", system] - cmd.append("--think-high" if think else "--nothink") + cmd.append("--think" if think else "--nothink") result = subprocess.run(cmd, cwd=ds4.parent, env=env, check=False, stdout=subprocess.DEVNULL, stderr=subprocess.PIPE) if result.returncode != 0: