Who it is forA developer who has a coding agent product in a directory and wants an objective pass rate before a release or comparison.
The problemChecking whether a coding agent harness really enforces its rules and behaves correctly across file, permission, state, and startup cases is slow to do by hand.
The outcomeA JSON receipt for each scenario plus catalog_receipt.json, with a score of pass divided by pass plus fail over applicable scenarios.
What you need first
- Python 3.11 or newer
- Docker installed and running
- The repo cloned locally
- For building a new harness only: the builder image, a local LiteLLM gateway, and your own API key
Steps
- Run
docker build --target evaluation -t doc2harness/evaluation:candidate -f containers/Dockerfile .from the repo root (see containers/README.md for mirror options). - Confirm your product directory contains src/yuyao/, then run
PYTHONPATH=src:tools:run python3 tools/run_production_catalog.py --artifact /path/to/product --artifact-id my-product --output /tmp/scores --concurrency 12 --timeout 300. (inferred, check the README) - Wait about 25 to 90 seconds at concurrency 12 for the full catalog to finish.
- Open /tmp/scores/catalog_receipt.json and read the score, remembering that INCONCLUSIVE is not counted as a failure.
Prompt for your agent
Use the repo YuyaoGe/doc2harness to score the product at <path-to-product-directory>. Run tools/run_production_catalog.py with --artifact <path-to-product-directory> and --output <output-dir>, then report the pass and fail counts from catalog_receipt.json. Verify that the product directory contains src/yuyao/ before running.
Caveat. The README says the leaderboard numbers come from the full 328-case suite and cannot be reproduced from this 94-scenario subset alone.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for YuyaoGe/doc2harness and "Score an existing coding agent harness"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer