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

How to score one agent patch on a SWE-sweep task with Swe Sweep

Run a unified diff against one benchmark task and get graded Harbor results.

Short answer: git clone https://github.com/facebookresearch/swe-sweep.git; then cd swe-sweep; uv sync. All steps.

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

  1. git clone https://github.com/facebookresearch/swe-sweep.git
  2. cd swe-sweep
  3. uv sync
  4. sweep infra doctor
  5. uv 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

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