mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-08-07 19:56:18 -04:00
chore(agents): wire agy + cursor harness adapters (verified headless flags)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,19 @@ harness_opencode() { # opencode — non-interactive run
|
|||||||
( cd "$dir" && opencode run "$(cat "$prompt")" )
|
( cd "$dir" && opencode run "$(cat "$prompt")" )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
harness_cursor() { # Cursor CLI agent — composer-2.5, headless full-auto
|
||||||
|
local dir="$1" prompt="$2"
|
||||||
|
( cd "$dir" && cursor-agent -p "$(cat "$prompt")" --model composer-2.5 --force --trust )
|
||||||
|
}
|
||||||
|
|
||||||
|
harness_agy() { # Antigravity CLI — Gemini 3.1 Pro, headless full-auto
|
||||||
|
# --new-project is required for --model to take effect (otherwise agy resumes the
|
||||||
|
# previous conversation and silently keeps its old model).
|
||||||
|
local dir="$1" prompt="$2"
|
||||||
|
( cd "$dir" && agy --print --new-project --print-timeout 60m \
|
||||||
|
--model="Gemini 3.1 Pro (High)" --dangerously-skip-permissions "$(cat "$prompt")" )
|
||||||
|
}
|
||||||
|
|
||||||
# ---- NICE-TO-HAVE (verify the exact invocation for your version before trusting) ----
|
# ---- NICE-TO-HAVE (verify the exact invocation for your version before trusting) ----
|
||||||
|
|
||||||
harness_pi() { # pi — CONFIRM headless CLI + flags
|
harness_pi() { # pi — CONFIRM headless CLI + flags
|
||||||
@@ -33,11 +46,6 @@ harness_pi() { # pi — CONFIRM headless CLI + flags
|
|||||||
( cd "$dir" && pi run "$(cat "$prompt")" ) # placeholder — verify
|
( cd "$dir" && pi run "$(cat "$prompt")" ) # placeholder — verify
|
||||||
}
|
}
|
||||||
|
|
||||||
harness_cursor() { # Cursor CLI agent — CONFIRM flags
|
|
||||||
local dir="$1" prompt="$2"
|
|
||||||
( cd "$dir" && cursor-agent -p "$(cat "$prompt")" --force ) # placeholder — verify
|
|
||||||
}
|
|
||||||
|
|
||||||
# ---- build/typecheck gate (fast, local) ----
|
# ---- build/typecheck gate (fast, local) ----
|
||||||
# Returns non-zero on failure. This is a smoke gate — CI runs the full suite. Tune freely.
|
# Returns non-zero on failure. This is a smoke gate — CI runs the full suite. Tune freely.
|
||||||
run_gate() {
|
run_gate() {
|
||||||
|
|||||||
Reference in New Issue
Block a user