How datacurve-ai/deep-swe works
Purpose and Entry Points
DeepSWE is a Harbor-format benchmark corpus for evaluating coding agents on 113 long-horizon changes in active open-source projects. It is not an application: its consumable entry point is the task collection at tasks/, executed by the external Pier runner. Dataset-level discovery is defined by tasks/manifest.json, tasks/manifest.schema.json, and tasks/dataset.toml.
Dataset and Task Selection
Each immediate child of tasks/ is an independently runnable task, identified by its directory name and declared through its own metadata. Pier can target the complete collection or a single task directory. The manifest/dataset metadata provides the collection boundary; individual task.toml files provide task-specific source repository, base revision, language, container image, and execution limits. Examples: tasks/fastapi-implicit-head-options/task.toml, tasks/kcp-go-multiplexed-kcp-streams/task.toml.
Per-Task Contract
Every task follows the same portable layout:
• Agent-facing requirement: instruction.md.
• Reproducible work environment: environment/Dockerfile.
• Submission extraction: pre_artifacts.sh.
• Independent verifier: tests/.
• Offline reviewer reference: solution/.
This standardized contract allows heterogeneous target ecosystems to be evaluated by one orchestration framework. See tasks/README.md and representative paths tasks/httpx-streaming-json-iteration/instruction.md, tasks/httpx-streaming-json-iteration/task.toml.
Agent Execution and Submission Boundary
Pier launches an agent in the task’s isolated environment, where it modifies the checked-out upstream project and commits its work. The key trust boundary is pre_artifacts.sh: after the agent finishes, Pier invokes it to convert committed work into a patch artifact. That patch, rather than the mutable agent container, crosses into grading. Representative paths: tasks/bandit-interprocedural-taint-checks/pre_artifacts.sh, tasks/bandit-interprocedural-taint-checks/environment/Dockerfile.
Verification Pipeline
The extracted patch is applied in a pristine, separate verifier container. The verifier entry script and Python grader execute held-out behavioral checks and emit structured scoring/reporting artifacts. This isolates test execution from agent-side state and prevents reference-solution leakage. Main paths: tasks/fastapi-deprecation-response-headers/tests/Dockerfile, tasks/fastapi-deprecation-response-headers/tests/test.sh, tasks/fastapi-deprecation-response-headers/tests/grader.py, tasks/fastapi-deprecation-response-headers/tests/config.json.
Reference Solutions and Evaluation Semantics
solution/solution.patch and solution/solve.sh document a canonical implementation for human spot checks, but are explicitly outside the runtime grading path. Grading accepts any patch with correct observable behavior, not a particular implementation structure. Paths: tasks/prometheus-transactional-reload-status/solution/solution.patch, tasks/prometheus-transactional-reload-status/solution/solve.sh.
Runtimes and Infrastructure
Task environments span TypeScript/JavaScript, Go, Python, Rust, and related ecosystem tooling, selected per task Dockerfile; there is no shared application runtime in this repository. Required infrastructure is Docker-compatible sandboxing plus Pier (Harbor-compatible); Pier may run sandboxes locally or on Modal. External LLM providers are used by the runner/agent layer (for example Anthropic or OpenAI), while task isolation can restrict outbound network access. The benchmark itself contains no service implementation or persistent datastore.
Main entry points: tasks Task directories · environment/Dockerfile Agent environment · tests/Dockerfile Verifier container · pre_artifacts.sh Patch extractor
Components 15
Dataset collection
- Dataset metadata · Defines the task collection boundary and manifest contract.
tasks/manifest.json - Task directories · 113 independently runnable long-horizon coding tasks.
tasks
Portable task contract
- Task metadata · Pins upstream source, revision, runtime image, and limits.
tasks/httpx-streaming-json-iteration/task.toml - Agent instruction
tasks/httpx-streaming-json-iteration/instruction.md - Agent environment · Checked-out upstream project workspace for agent changes.
tasks/bandit-interprocedural-taint-checks/environment/Dockerfile - Patch extractor · Converts committed agent work into the patch artifact.
tasks/bandit-interprocedural-taint-checks/pre_artifacts.sh - Verifier container · Pristine environment separate from the agent workspace.
tasks/fastapi-deprecation-response-headers/tests/Dockerfile - Verifier entry script
tasks/fastapi-deprecation-response-headers/tests/test.sh - Python grader · Runs held-out checks against the patched project.
tasks/fastapi-deprecation-response-headers/tests/grader.py - Reference solution · Canonical patch and solve script for human spot checks only.
tasks/prometheus-transactional-reload-status/solution/solution.patch
Execution and grading
- Pier runner · Discovers tasks and runs agent and verifier sandboxes.
- Coding agent · Modifies and commits the upstream project in the isolated workspace.
- Submission patch · The only agent-side output passed to grading.
- Score and report · Structured evaluation output.
tasks/fastapi-deprecation-response-headers/tests/config.json - LLM providers · Used by the runner and agent layer.
Connections 21
- Dataset metadata → Task directories: indexes
- Pier runner → Dataset metadata: discovers
- Pier runner → Task directories: selects all or one
- Task directories → Task metadata: contains
- Task directories → Agent instruction: contains
- Task directories → Agent environment: contains
- Task directories → Patch extractor: contains
- Task directories → Verifier container: contains
- Task metadata → Agent environment: configures
- Pier runner → Agent environment: launches
- Agent instruction → Coding agent: guides
- Agent environment → Coding agent: hosts
- LLM providers → Coding agent: inference
- Coding agent → Patch extractor: committed work
- Patch extractor → Submission patch: extracts
- Pier runner → Verifier container: launches separately
- Submission patch → Verifier container: applies in pristine sandbox
- Verifier container → Verifier entry script: runs
- Verifier entry script → Python grader: invokes
- Python grader → Score and report: emits
- Reference solution → Python grader: excluded from runtime grading