DEDUPED We read 1,000+ AI sources. You read one email. Subscribe free

AI USE CASES

How to resume a long refinement run after it stops midway with harness2

Re-issue the same command to continue a multi-task run without redoing finished tasks.

Authorization notice. harness2 is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forResearcher running a larger JobBench or LAB sweep that was interrupted by a crash or quota limit

The problemLong model-backed runs cost money, and restarting from scratch after an interruption wastes both time and API spend.

The outcomeA completed run that picked up where it stopped, with results kept under the same runs directory.

What you need first

  • 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

Steps

  1. Note the exact command you used, including --bench, --k, --mode, any subset flags and seed.
  2. Re-run the identical harness2 command to resume.
  3. Use a new HARNESS2_RUNS_DIR only if you changed models or task selection.
  4. Run harness2-judge and harness2-report with the same flags once refinement finishes.
  5. Check each command's --help for extra options.

Prompt for your agent

My google-research/harness2 run on <benchmark> stopped partway. Reconstruct the exact original command, re-run it to resume, and verify that previously finished tasks were not repeated by checking the runs/ folder.

Caveat. Resume only works when you repeat the same benchmark, executor, subset, --k, --mode and seed, and changing models or task selection requires a new HARNESS2_RUNS_DIR.

About harness2

A framework that lets an AI agent keep improving its own setup (prompts, tools, memory, skills) while the model itself stays unchanged. Part of this week's top 10 repos: ranked #2 on Repo Radar. View google-research/harness2 on GitHub.

More with harness2

See all use cases for google-research/harness2

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 [email protected] and we will look at it promptly. Full disclaimer page