Skip to content
Back to skills

Swebench Eval

ASecurity

Evaluates language models' ability to resolve real-world software engineering issues by generating code patches. It probes long-context reasoning, cross-file dependency understanding, and execution-based validation within large, complex codebases. Use when the user wants to benchmark on SWE-bench, or asks about evaluating this task. Reports resolve_rate.

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongitdocumentation

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill swebench-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Swebench Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Swebench Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-swebench-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-swebench-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: swebench-eval
description: Evaluates language models' ability to resolve real-world software engineering issues by generating code patches. It probes long-context reasoning, cross-file dependency understanding, and execution-based validation within large, complex codebases. Use when the user wants to benchmark on SWE-bench, or asks about evaluating this task. Reports resolve_rate.
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2310.06770
  bibtex_key: [REDACTED]
  confidence: high
---

# swebench-eval

> SWE-bench: Can Language Models Resolve Real-World GitHub Issues? — Cobbe et al. (2023) (arXiv:2310.06770, 2023)

## What this evaluates

Evaluates language models' ability to resolve real-world software engineering issues by generating code patches. It probes long-context reasoning, cross-file dependency understanding, and execution-based validation within large, complex codebases.

## Datasets

- **SWE-bench** — total ?; splits: (unstated)

## Metrics

- `resolve_rate` **(primary)** — range: percent
  - Percentage of benchmark instances where the model's generated patch successfully resolves the issue, typically validated by passing all associated repository tests.

## Input / output format

**Input**: Task instructions, issue description text, retrieved source files (via BM25 or oracle retrieval), documentation, an example patch file, and a prompt instructing the model to generate a patch.

**Output**: A code patch file intended to resolve the specified GitHub issue.

## Scoring recipe

```python
resolved = 0
for instance in dataset:
    patch = model.generate(instance.input)
    if apply_and_run_tests(patch, instance.repo) == 'PASS_ALL':
        resolved += 1
resolve_rate = (resolved / len(dataset)) * 100
```

## Common pitfalls

- Context window limits force aggressive file retrieval, which may exclude necessary context or include irrelevant files.
- Oracle retrieval assumes knowledge of edited files, making it unrealistic for actual engineering workflows.
- Tokenization differences across models (e.g., Llama vs GPT-4) cause non-standard context length measurements, affecting fair comparison.

## Evidence (verbatim from paper)

> SWE-bench instances provide an issue description and a codebase as input to the model... we construct the input to the model consisting of task instructions, the issue text, retrieved files and documentation, and finally an example patch file and prompt for generating the patch file. Table 2: Model resolve rates with BM25 retrieval, with different maximum context lengths.

## Citation

```bibtex
@misc{cobbe2023swebench,
  title={SWE-bench: Can Language Models Resolve Real-World GitHub Issues?},
  author={Cobbe et al. (2023)},
  year={2023},
  note={arXiv:2310.06770}
}
```

- arXiv: 2310.06770

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.