mm scripts: default to MiniMax-M3.1-Flash-Preview with per-script effort

Flash is the default model; --m3 falls back to M3, --effort overrides.
Defaults: max (review-minimax, review-loop, mm-worktree-task), medium
(explore), low (ci-triage). ask-minimax-run applies MINIMAX_EFFORT to
Flash models when --effort is not passed. Bump stale fixture date.
This commit is contained in:
Paul O'Reilly
2026-10-13 10:23:53 +13:00
parent d6e0220bf5
commit 840d7509e1
16 changed files with 134 additions and 30 deletions

View File

@@ -17,6 +17,7 @@ Usage:
review-loop-run launch --kind <plan|spec|tests|code|verify> --name <tag> [--round N]
--file <path> [--file <path> ...] [--context "<text>"]
[--prev <result.md>] [--tools "<extra>"] [--timeout <secs>]
[--m3] [--effort low|medium|high|xhigh|max]
[--project <repo>] [--dryrun|-n]
review-loop-run status [--name <tag>] [--round N] [--project <repo>]
review-loop-run counts <result.md>
@@ -238,7 +239,7 @@ kind_tools() {
}
cmd_launch() {
local kind="" name="" round=1 context="" prev="" tools="" timeout=1500 project="" dryrun=0
local kind="" name="" round=1 context="" prev="" tools="" timeout=1500 project="" dryrun=0 use_m3=0 effort_arg=""
local -a files=()
while [[ $# -gt 0 ]]; do
case "$1" in
@@ -251,11 +252,15 @@ cmd_launch() {
--tools) tools="$2"; shift 2 ;;
--timeout) timeout="$2"; shift 2 ;;
--project) project="$2"; shift 2 ;;
--m3) use_m3=1; shift ;;
--effort) effort_arg="$2"; shift 2 ;;
--dryrun|-n) dryrun=1; shift ;;
-h|--help) usage; exit 0 ;;
*) die "unknown option: $1" 2 ;;
esac
done
if [[ $use_m3 -eq 1 ]]; then model="MiniMax-M3"; effort="$effort_arg"; else model="MiniMax-M3.1-Flash-Preview"; effort="${effort_arg:-max}"; fi
[[ -z "$effort" || "$effort" =~ ^(low|medium|high|xhigh|max)$ ]] || die "--effort must be low|medium|high|xhigh|max" 2
[[ " $KINDS " == *" $kind "* ]] || die "--kind must be one of: $KINDS" 2
[[ "$name" =~ ^[A-Za-z0-9._-]+$ ]] || die "--name must match ^[A-Za-z0-9._-]+\$" 2
[[ "$round" =~ ^[0-9]+$ ]] || die "--round must be an integer" 2
@@ -323,7 +328,7 @@ EOF
launch_body=$(cat <<EOF
#!/usr/bin/env bash
cd "$repo" || exit 1
timeout ${timeout} ask-minimax-run --model MiniMax-M3 --allowedTools "$allow" --permission-mode acceptEdits -p "\$(cat "$prompt")" > "$stdout" 2>&1
timeout ${timeout} ask-minimax-run --model ${model}${effort:+ --effort ${effort}} --allowedTools "$allow" --permission-mode acceptEdits -p "\$(cat "$prompt")" > "$stdout" 2>&1
echo "exit=\$?" >> "$stdout"
EOF
)