autor-bench-eloop
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
03 SKILL.md 正文
autor-bench-eloop — Autor Research + SWE-bench Benchmark Loop
Loop interval: 30m | Max duration: 12h (24 iterations)
Purpose
Drive the autor research + benchmarking pipeline: run run_autor_experiment.py for technique comparison, evaluate against SWE-bench, and build the bandit state for technique selection.
Entry conditions (all must be true to continue)
run_autor_experiment.pyexists and passespython3 -m py_compile- SWE-bench cloned at
~/.swes/ ai_orchaccessible at~/worktrees/pr6270-swebench/orchestration/- No active background runs (check
tmux list-sessionsforautor-*sessions) - Bandit state at
technique_bandit/bandit_state.jsonreadable
Each iteration
Phase 1: OBSERVE — System State
# Check active autor runs
tmux list-sessions 2>/dev/null | grep -E "autor-|swebench-" || echo "no active sessions"
# Check latest score files
ls -t research-wiki/scores/SR-*.json 2>/dev/null | head -5
# Check SWE-bench eval status
ls -t ~/.swes/eval_results/ 2>/dev/null | head -3 || echo "no eval results yet"
# Check bandit state
python3 -c "import json; d=json.load(open('technique_bandit/bandit_state.json')); [print(f'{k}: n={v[\"n\"]}, mean={v[\"mean\"]:.2f}') for k,v in d['techniques'].items()]"
Phase 2: MEASURE — Quality Metric
Primary metric: rubric mean across techniques in bandit_state.json.
Secondary metric: SWE-bench resolution rate (instances solved / total evaluated).
# Compute current technique means
python3 -c "
import json
d = json.load(open('technique_bandit/bandit_state.json'))
for k, v in sorted(d['techniques'].items(), key=lambda x: -x[1].get('mean',0)):
print(f'{k}: n={v[\"n\"]}, mean={v[\"mean\"]:.2f}')
"
# Check SWE-bench results if available
if [ -f ~/.swes/eval_results/latest.json ]; then
python3 -c "import json; d=json.load(open('$HOME/.swes/eval_results/latest.json')); print(f'SWE-bench: {d[\"resolved\"]}/{d[\"total\"]} = {d[\"resolved\"]/max(d[\"total\"],1)*100:.1f}%')"
fi
Phase 3: DIAGNOSE — What needs running?
Decision tree:
- All techniques n≥15 AND SWE-bench eval done → STOP (goal reached)
- SR-multi-exemplar or SR-prtype have n<12 → run
run_autor_experiment.py --technique <technique> --prs 6265,6261,6245,6269 --n 1 - No SWE-bench comparison done → run SWE-bench comparison via
swebench-testersubagent - ai_orch CLI comparison not done → run
ai_orch --agent-cli claudevsrun_autor_experiment.pycomparison - Live run divergence from computed → flag in findings
Phase 4: PLAN — Next dispatch
Based on diagnose, pick ONE of:
python scripts/run_autor_experiment.py --technique SR-multi-exemplar --prs 6265,6261,6245,6269 --n 1python scripts/run_autor_experiment.py --technique SR-prtype --prs 6265,6261,6245,6269 --n 1- Spawn SWE-bench comparison via
swebench-testersubagent - Spawn ai_orch CLI comparison via
aiorch-cli-testersubagent
Phase 5: RECORD — Log findings
Append to wiki/syntheses/et_logs/eloop_cycles.md:
## YYYY-MM-DD HH:MM cycle
### Quality metric: technique means from bandit_state.json
### SWE-bench: X resolved / Y evaluated
### Live vs computed gap: ±X points
### New runs dispatched: [list]
### Findings: [observations]
touch /tmp/autor_bench_eloop_last_run
Phase 6: FIX — Run experiments
6a. Run autor experiment:
cd $HOME/llm-wiki-autor-phase3
python scripts/run_autor_experiment.py --technique <chosen> --prs 6265,6261,6245,6269 --n 1 --outdir research-wiki/scores
6b. Run SWE-bench comparison if dispatched:
Use swebench-tester subagent — runs predictions through SWE-bench harness.
6c. Run ai_orch CLI comparison if dispatched: Compare raw CLI output (claude/codex/gemini via ai_orch) vs autor harness on same SWE-bench instances.
Phase 7: RECAP
## Autor-Bench Loop Cycle — HH:MM
- Best technique: X @ Y.mean (n=Z)
- Live vs computed: ±X pts
- SWE-bench: X% resolution (N/M)
- Next run: technique=Z
Metrics Tracking
| Metric | Source | Healthy threshold |
|---|---|---|
| SR-multi-exemplar mean | bandit_state.json | >86 (Phase 7 live target) |
| Live vs computed gap | run output vs phase7_results.md | <3 pts |
| SWE-bench resolution | ~/.swes/eval_results/latest.json | >15% (beats SWE-agent) |
Anti-Stall Rules
- If run_autor_experiment.py fails → log error, skip to next technique
- If SWE-bench harness fails → log, skip to CLI comparison
- If all techniques at n≥15 → STOP, write final synthesis
- If tmux session stuck (>1h) → kill session, restart run
- If bandwidth limited → prioritize SR-multi-exemplar (current best)
Invocation
# Start the loop (via /loop skill)
/loop 30m /autor-bench-eloop
# Or manually for one cycle
/autor-bench-eloop
Key Files
scripts/run_autor_experiment.py— deterministic autor harnesstechnique_bandit/bandit_state.json— bandit state + technique scoresresearch-wiki/scores/SR-*.json— score artifactswiki/syntheses/phase7_results.md— Phase 7 synthesis~/.swes/— SWE-bench evaluation suite~/worktrees/pr6270-swebench/orchestration/— ai_orch CLI orchestration
04 同仓库更多 Skills
disk-reclaim-playbook
Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.
claudea-bench
Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
pr
Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
pr-report
This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.