mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
f4162649b8
## Summary - replace AgentOps headless Claude print worker paths with Codex exec or non-CLI providers - switch compile auto-detect/default headless CLI runtime from claude-cli to codex-cli - fix two shellcheck blockers from the merged skill corpus and refresh generated docs/hash metadata ## Validation - bash /Users/bo/acfs/skill-pipeline/scripts/no-api-print-scan.sh /Users/bo/dev/agentops/skills /Users/bo/dev/agentops/scripts /Users/bo/dev/agentops/hooks - shellcheck --severity=error skills/compile/scripts/compile.sh scripts/eval-agent-harness.sh scripts/run-rpi-phases.sh skills/agy-rules-workflows/scripts/close-guard.sh skills/rch/scripts/mine_rch_history.sh - cd cli && go test ./cmd/ao -run 'TestResolveCompileRuntime|TestPreflightCompileRuntime|TestCompileScriptOptionsPassesBatchFlags|TestRunCompile_EndToEnd_FixtureCorpus' -count=1 - bash scripts/regen-all.sh --check - PRE_PUSH_SKIP_MKDOCS=1 bash scripts/pre-push-gate.sh --fast Note: unscoped /Users/bo/acfs/skill-pipeline/scripts/no-api-print-scan.sh still flags ACFS conformance-selftest fixture strings outside this repo; AgentOps scoped roots are clean.
26 lines
1.1 KiB
Bash
Executable File
26 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Headless RPI phase runner with timeouts.
|
|
# Chains Research → Implement phases non-interactively.
|
|
# Usage: ./scripts/run-rpi-phases.sh "description of work"
|
|
set -euo pipefail
|
|
|
|
TASK="${1:?Usage: run-rpi-phases.sh '<task description>'}"
|
|
SCRATCH_DIR="./scratch"
|
|
mkdir -p "$SCRATCH_DIR"
|
|
|
|
echo "=== RPI Phase 1: Research (10 min timeout) ==="
|
|
timeout 600 codex exec -C "$(pwd)" -s workspace-write \
|
|
"Execute RPI Phase 1: research and write findings to disk for: ${TASK}. Do NOT plan or ask questions — just execute. Write output to ${SCRATCH_DIR}/research.md" \
|
|
|| echo "Phase 1 timed out or failed"
|
|
|
|
echo ""
|
|
echo "=== RPI Phase 2: Implement (15 min timeout) ==="
|
|
timeout 900 codex exec -C "$(pwd)" -s workspace-write \
|
|
"Execute RPI Phase 2: implement changes for: ${TASK}. Use research from ${SCRATCH_DIR}/research.md if available. Run tests after each change. Do NOT stop to plan — implement and verify." \
|
|
|| echo "Phase 2 timed out or failed"
|
|
|
|
echo ""
|
|
echo "=== RPI Complete ==="
|
|
echo "Research: ${SCRATCH_DIR}/research.md"
|
|
echo "Verify: git diff --stat"
|