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.
This commit is contained in:
@@ -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 <task-number> <slug> [--base ref] [--cli codex|agy|mm] [--fg]}
|
||||
number=${1:?usage: launch.sh <task-number> <slug> [--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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user