{
 "schema_version": 1,
 "generated": "2026-10-19",
 "id": "google-research-harness2--swap-codex-executor-into-agent-loop",
 "repo": "google-research/harness2",
 "repo_url": "https://github.com/google-research/harness2",
 "repo_slug": "google-research-harness2",
 "title": "Run harness refinement with the Codex executor",
 "page_title": "How to run harness refinement with the Codex executor with harness2",
 "summary": "Switch from the default OpenCode executor to Codex to see how the executor changes refined-harness results.",
 "who": "Developer who already uses Codex as a coding agent and wants harness improvements tuned to that executor",
 "problem": "Harness edits that help one executor may not carry over to another, and you have no way to check without a controlled run.",
 "outcome": "A refinement run on Codex whose results are stored separately so you can compare it against an OpenCode run.",
 "steps": [
  "Read the Codex executor section in docs/SETUP.md and finish its prerequisites.",
  "Install a benchmark: harness2-setup jb",
  "Run with Codex: harness2 --bench jb --k 1 --mode parallel --substrate cx --max-tasks 1",
  "Use a fresh HARNESS2_RUNS_DIR when changing models or task selection.",
  "Judge and report with matching flags: harness2-judge --bench jb --k 1 --mode parallel --substrate cx"
 ],
 "agent_prompt": "In google-research/harness2, run one JobBench task with --substrate cx and --k 1 --mode parallel, then judge it with matching flags. Verify the run completes under its own runs directory and that network restrictions are configured first.",
 "agents": [
  "codex"
 ],
 "difficulty": "Advanced",
 "time": "1 hour 30 minutes",
 "basis": "readme",
 "caveat": "Codex runs with its sandbox disabled and executors get open web access, so run it only in an isolated environment, and confirm whether judge and report also need the substrate flag in the experiment guide.",
 "category": "Software & DevOps",
 "tags": [
  "Software & DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Linux, Python 3.12 and uv for installation",
  "No credentials needed for the local demo (harness2-demo)",
  "Model-backed runs need Node.js 20+, the Google Cloud CLI, a Vertex AI project and model IDs in .env, and gcloud application-default login",
  "LAB needs Pandoc and Poppler; WorkBuddy-Bench needs Docker",
  "Model-backed benchmark runs incur API costs"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "best": false,
 "score": 0.493,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/google-research-harness2/swap-codex-executor-into-agent-loop/",
 "md": "https://dedupedai.com/use-cases/google-research-harness2/swap-codex-executor-into-agent-loop/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly."
}
