What do you want to do?
4 use cases
-
Score an existing coding agent harness
Run all 94 released scenarios against your product directory and get a pass rate.
- REPO
YuyaoGe/doc2harness - Software and DevOps
- Intermediate
View prompt
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.
- REPO
-
Re-run one scenario family to debug a harness
Narrow scoring to one family, such as headless or permission, to find a failing area.
- REPO
YuyaoGe/doc2harness - Software and DevOps
- Intermediate
View prompt
Use the repo YuyaoGe/doc2harness to re-run only the <family-name> scenario family against the product at <path-to-product-directory>. Use tools/run_production_catalog.py with --family <family-name> and report which scenarios failed. Verify the catalog still loads with the family filter applied.
- REPO
-
Confirm the scenario catalog is intact before scoring
Verify that the catalog loads and contains 94 scenarios before any scoring run.
View prompt
In the repo YuyaoGe/doc2harness, run the Python sanity check that imports active_scenario_ids and prints its length. Report the printed number and any digest error. Verify that the output is exactly 94 before reporting the catalog as intact.
-
Build a new agent harness and score it
Use the builder image and your own model key to generate a harness, then score it.
View prompt
Use the repo YuyaoGe/doc2harness to build a new harness with the builder tag <builder-tag> and output to <output-dir>, using the local LiteLLM gateway at <gateway-url>. Run the dry-run first, then the real build, and report the output path. Verify the dry-run printed the full plan before starting the real build.
Quick start with Doc2harness
- Check you have what it needs: Python 3.11 or newer; Docker installed and running; The repo cloned locally.
- Open YuyaoGe/doc2harness on GitHub and read the README and license.
- 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.
These steps come from our top use case, Score an existing coding agent harness, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for YuyaoGe/doc2harness
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 freeAbout this repo
- Who it is forCoding agent developers and AI researchers who need to score a harness they built or a harness a model generated.
- Why it is hot116 stars, launched 29 days ago, picked up by one AI source we track
- LanguagePython
- Sourcegithub.com/YuyaoGe/doc2harness · Back to Hot repos
Requirements
- 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
Add this badge to your README
Maintain Doc2harness? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/yuyaoge-doc2harness/?utm_source=github&utm_medium=badge&utm_campaign=YuyaoGe-doc2harness)
HTML
<a href="https://dedupedai.com/use-cases/yuyaoge-doc2harness/?utm_source=github&utm_medium=badge&utm_campaign=YuyaoGe-doc2harness"><img src="https://dedupedai.com/badge/YuyaoGe/doc2harness.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Doc2harness
What is Doc2harness?
Doc2Harness is a Python benchmark that measures how well a model builds a working coding agent harness, then tests that harness against a scripted mock model using 94 released scenarios. It is an open-source project on GitHub: https://github.com/YuyaoGe/doc2harness.
How do I use Doc2harness?
Run docker build --target evaluation -t doc2harness/evaluation:candidate -f containers/Dockerfile . from the repo root (see containers/README.md for mirror options); then 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. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Doc2harness for?
Coding agent developers and AI researchers who need to score a harness they built or a harness a model generated.
What can I do with Doc2harness?
4 use cases so far, for example: Score an existing coding agent harness; Re-run one scenario family to debug a harness; Confirm the scenario catalog is intact before scoring. Each has steps and a copy-paste agent prompt.
What do I need to run Doc2harness?
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.
What are alternatives to Doc2harness?
Other hot AI repos in Software and DevOps: Skills, Claude Mem, Freellmapi, Andrej Karpathy Skills, Agent Desktop.
Is Doc2harness safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.