From 73ceae2aa8844cff67d32561d89d54fdcb5d8a88 Mon Sep 17 00:00:00 2001 From: Marcos Paulo Date: Sat, 5 Sep 2026 06:57:28 +0000 Subject: [PATCH] feat(scripts): add oc CLI target to launch.sh Claude Code against an Ollama-backed model via the headroom hub. Model defaults to glm-5.3:cloud, overridable with OC_MODEL. Unproven here, so route it at tasks whose failure is cheap to detect. --- .agents/scripts/launch.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.agents/scripts/launch.sh b/.agents/scripts/launch.sh index c5741c2..8086c0f 100755 --- a/.agents/scripts/launch.sh +++ b/.agents/scripts/launch.sh @@ -6,13 +6,13 @@ # .agents/scripts/launch.sh 07 primitives --cli mm --fg # # Routing comes from plans/astro-refactor/MODEL-ROUTING.md. Override with --cli. -# All three CLIs are launched with their permission prompts disabled: these run +# All four CLIs are launched with their permission prompts disabled: these run # unattended inside a worktree, and a blocked edit or bash call just hangs. set -euo pipefail cd "$(git rev-parse --show-toplevel)" -number=${1:?usage: launch.sh [--base ref] [--cli codex|agy|mm] [--fg]} +number=${1:?usage: launch.sh [--base ref] [--cli codex|agy|mm|oc] [--fg]} slug=${2:?slug, e.g. scaffold} shift 2 @@ -118,6 +118,12 @@ run() { ( cd "$dir" && mm --dangerously-skip-permissions \ --model opus -p "$prompt" ) ;; + oc) + # Claude Code against a local-Ollama-backed model, through the headroom + # hub. Unproven on this repo — give it the task whose failure is cheapest. + ( cd "$dir" && OLLAMA_CLAUDE_MODEL="${OC_MODEL:-glm-5.3:cloud}" \ + ollama-claude --dangerously-skip-permissions -p "$prompt" ) + ;; *) echo "unknown cli: $cli" >&2; exit 2 ;; esac }