Search-SWE
Search-SWE evaluates whether coding agents can implement and optimize real search systems under fixed resource constraints.
Introduction
Search is a core capability in AI agent applications, from retrieving evidence for research assistants to locating code for software agents and grounding enterprise assistants in internal knowledge. Yet building an effective search system—or improving an existing one—requires substantial engineering expertise: choices in query understanding, indexing, retrieval, and ranking must balance relevance with latency and resource use. As coding agents become part of everyday software development, a natural question arises: can they also engineer effective search systems?
We introduce Search-SWE, a benchmark for evaluating coding agents on implementing and optimizing executable search systems. Its design centers on explicit task contracts, reproducible environments with fixed inputs, and task-specific resource budgets. Agents inspect their environment, write and test code, and iterate; a separate verifier evaluates the resulting system on held-out queries, checking functionality, retrieval quality, efficiency, and compliance with task rules. The benchmark measures working systems and the practical quality–efficiency trade-offs made during development.
Search-SWE in Action
Open interactive demoThis demo follows long-document reranking end to end—showing how a coding agent interprets the specification, experiments with solutions, and submits a working system for isolated verification and held-out evaluation.
Tasks
View all tasksExplore tasks spanning query understanding, retrieval, ranking, and representation learning.
- Reasoning-intensive Query Rewriting Rewrite complex biology queries to bridge the gap between query intent and relevant documents.
- Memory-constrained Dense Retrieval Search 1.5M vectors within 512 MiB of memory and a 64 MiB index workspace while meeting quality and latency gates.
- Long-document Reranking Improve long-document reranking through window selection and score aggregation, with a fixed model and candidate set.
- Code Embedding Fine-tuning Fine-tune a pretrained embedder for code retrieval while preserving its backbone architecture.
Contributing
Contribution guideWe welcome new tasks and improvements to tools and documentation. For agent-assisted task authoring, use the create-searchswe-task skill.
- Create a taskFork the repository and work in a contribution branch. Create
tasks/<task-name>with a unique name of up to five lowercase, hyphen-separated words, and record the authors. - Define the contractSpecify inputs, interfaces, metrics and resource limits. Reuse the shared CPU/GPU images and add task dependencies; the launcher prepares the coding agent. Add a separate verifier and integrity audit, record services in
task.toml, and pin inputs and hashes inassets.jsonwith provenance and usage terms. - Validate and refineRun package checks and verifier tests, then
search-swe run <task-name>. Inspect trajectories, scores and judge health, fix issues, and revalidate affected checks. Record model feedback and the final tested revision inVALIDATION.md. - Submit a PROpen a PR to
mainwith task requirements, input provenance and validation evidence. Enable maintainer edits where available; state outstanding checks or hosting help needed.
Use one or two similar reviewed tasks as structural references and record them in VALIDATION.md. Maintainers use the task-review skill for publication and merge checks.