#!/usr/bin/env bash # With/without A/B (and optional interactive) eval for a codegraph version on a # repo. Codegraph is the ONLY variable: both arms launch claude with # --strict-mcp-config — with = codegraph-only MCP (pointed at $CG_BIN), # without = empty MCP. Built-in Read/Grep/Bash stay available in both arms. # # Usage: run-all.sh "" [headless|tmux|all] # # Each headless arm reports the three feedback metrics (parse-run.mjs prints all # three under every run, and compare-arms.mjs puts the arms side by side at the # end when both ran): # residual context occupancy (CG-7) window still held by the arm's retrieval # explore sufficiency (CG-8) was the response ENOUGH — the agent's next act # allocation efficiency (CG-9) share of returned bytes the answer cited # docs/benchmarks/agent-eval-feedback-metrics.md is the entry point; the three # per-metric docs it links carry the caveats. # # MULTI-TURN: separate questions with "||" to run them as ONE session — # run-all.sh "How does X work?||Where is Y handled in that path?" # Turn 1 runs normally; every later turn `--resume`s the same session, so the # earlier turns' tool output is still in the window (that is the whole point: # residual context occupancy, the cost a single-question run cannot see). # Segments land in run-