Who it is forAn ML engineer or agent builder who has a model's patch for a bug-fixing task and needs a graded score.
The problemChecking whether a model's patch fixes the hidden bugs in a real repository requires running the right task with the right harness.
The outcomeA graded Harbor trial for the task, with results written under the jobs/ directory.
What you need first
- Python with uv (or pip) installed
- Harbor, as pinned by the repo
- A unified diff file (model.patch) made against a task's base commit
- Docker or the environment Harbor needs for the verifier, if Harbor requires it (inferred)
Steps
git clone https://github.com/facebookresearch/swe-sweep.gitcd swe-sweepuv syncsweep infra doctoruv run harbor run --path tasks/pandora-bench__dateutil --agent swesweep.patch_agent:PatchAgent --agent-kwarg "patch_path=$(realpath /path/to/model.patch)" --jobs-dir jobs --n-concurrent 1 --yes(inferred, check the README)
Prompt for your agent
Using the repo at facebookresearch/swe-sweep, run the Harbor command for the task tasks/<task-name> with the patch at <path-to-model.patch> as the patch_path, writing output to jobs/. Report the directory where results were written and whether the trial completed without errors.
Caveat. Harbor 0.23 does not support the separate verifier environments these tasks use, so the project pins a Harbor source revision until Harbor 0.24 is released.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for facebookresearch/swe-sweep and "Score one agent patch on a SWE-sweep task"
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