DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to refine a Codex-based agent harness on office tasks with Harness2

Run Harness2 with the Codex executor on the WorkBuddy-Bench office subset to improve the harness around the model.

Short answer: Install with uv venv --python 3.12 .venv and uv pip install -e '.[render]'; then set up the benchmark with harness2-setup wb (WorkBuddy needs Docker); Preview the task selection with --dry-run before spending on model calls. All steps.

Credentials. Model-backed runs use your Vertex AI project and incur API costs; start with a small task selection.

Who it is forAn agent researcher who wants to see whether recursive harnessing helps Codex on office work.

The problemHand-tuning prompts, tools and memory for an agent on unseen tasks is slow and unprincipled.

The outcomeA refined harness and evaluation results for office tasks, saved under runs/ with adopted harnesses and lessons.

What you need first

  • Linux, Python 3.12, and uv
  • For the local demo: nothing else, since it needs no model credentials
  • For model-backed runs: Node.js 20+, the Google Cloud CLI, a Vertex AI project with model IDs, and API budget
  • For LAB: Pandoc and Poppler. For WorkBuddy-Bench: Docker

Steps

  1. Install with uv venv --python 3.12 .venv and uv pip install -e '.[render]'
  2. Set up the benchmark with harness2-setup wb (WorkBuddy needs Docker)
  3. Preview the task selection with --dry-run before spending on model calls
  4. Run Harness2 with --bench wb, --subset office, --k 1 and --substrate cx to use Codex
  5. Read the task summaries, adopted harnesses and evaluation results under runs/

Prompt for your agent

Using google-research/harness2, set up WorkBuddy-Bench, dry-run a small office subset selection, then run one Propose-Probe-Compose step with the Codex executor and summarize what the adopted harness changed.

Caveat. Executor network access is unrestricted and Codex runs with its sandbox disabled, so configure network restrictions before evaluating.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for google-research/harness2 and "Refine a Codex-based agent harness on office tasks"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer