Build your own coding benchmark and RL environment

SWE-bench and Terminal-Bench style: task instances, patches, graders, rewards and pass@k.

SWE-bench, SWE-bench Verified, Terminal-Bench, SWE-Gym, R2E-Gym and DeepSWE’s training environments are how agents are measured and trained: each task is a real repository at a commit, an issue, and tests that decide whether the agent fixed it.

About 780 minutes across 6 stages. Skills: Dataset validation, Patch application, Grading, Reward design, Statistics (pass@k).

The guides are part of licode Club.

Stages

  1. Validate task instances.
  2. Apply a unified diff.
  3. Grade a run.
  4. Turn a run into a reward.
  5. Compute pass@k and the leaderboard numbers.
  6. Handle flaky tests and duplicates.