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

How to generate reviewed agent trajectories for training data with Harness Zero

Run a harnessing agent over benchmark tasks and export successful trials as an SFT dataset.

Short answer: Run uv sync in the cloned Harness Zero folder; then copy .env.example to .env and fill in the key for the model route you use; create a task list with printf 'uspto-train-000\nuspto-train-001\n' > /tmp/tasks.txt. All steps.

  • Top pick
  • Research
  • Advanced
  • 2 hours
  • From the README
  • Any agent

Credentials. The .env file holds live model API keys, so keep it out of version control and do not paste keys into agent prompts.

Who it is forAn ML researcher who wants training trajectories for a small student model and has Docker and a model API key ready.

The problemCollecting agent trajectories by hand is slow, and raw runs without review do not carry the behaviors of an optimized harness.

The outcomeA reviewed rollout directory of trial results and an sft.jsonl file built from trials that met the reward threshold.

What you need first

  • Python 3.12 to 3.13 and uv installed
  • Docker running, since rollouts run in local Docker sandboxes via Harbor
  • API key for your model route (OpenAI, Azure AI Foundry, or OpenRouter) in a .env file copied from .env.example
  • A Tinker key (TM_API_KEY) if you plan to run training

Steps

  1. Run uv sync in the cloned Harness Zero folder.
  2. Copy .env.example to .env and fill in the key for the model route you use.
  3. Create a task list with printf 'uspto-train-000\nuspto-train-001\n' > /tmp/tasks.txt.
  4. Run harness-zero run-rollout --dataset data/uspto --components harness_bank/uspto --teacher-middleware-factory harness_bank.uspto.middlewares:build_teacher_middlewares --tasks-file /tmp/tasks.txt --attempts 1 --concurrency 8 --student-model openai: --student-reasoning-effort high --teacher-provider openai --teacher-model --teacher-reasoning-effort high --job-name demo --output-dir runs, filling in the model names for your route. (inferred, check the README)
  5. Run harness-zero build-sft --trials runs/demo --output sft.jsonl --reward-threshold 1.0.

Prompt for your agent

Using the repo metaevo-ai/harness-zero, run a reviewed rollout on the task IDs in <tasks-file> with the USPTO harness bank, then build an SFT dataset from runs/demo. Expected output: sft.jsonl containing only trials that met reward threshold 1.0. Verify that runs/demo contains trial results before you run build-sft.

Caveat. The README names the USPTO route in the quickstart; other domains need their own harness_bank folder and task data.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for metaevo-ai/harness-zero and "Generate reviewed agent trajectories for training data"

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