--- pretty_name: Next.js Selfbench language: - en tags: - code - software-engineering - benchmark - nextjs - harbor size_categories: - n<1K --- # Next.js Selfbench Next.js Selfbench is a 47-task software-engineering evaluation packaged for the [Harbor](https://harborframework.com/) evaluation framework. Each task asks an agent to implement a change in a frozen revision of [`vercel/next.js`](https://github.com/vercel/next.js), then evaluates the resulting patch with task-specific tests. This repository contains the raw evaluation only. It does not include model outputs, scores, costs, or benchmark result artifacts. ## Use Download the raw task package with the Hugging Face CLI: ```bash hf download dari-ai/nextjs-selfbench --repo-type dataset --local-dir nextjs-selfbench ``` The downloaded directory is a Harbor task collection. Configure your Harbor job to use either the collection or an individual top-level task directory, such as `nextjs-selfbench/nextjs-pr-96284`. Agent credentials and agent configuration are intentionally not included in this dataset. See the [Harbor documentation](https://harborframework.com/) for installation and job configuration. ## Contents Each top-level task directory contains: - `task.toml`: Harbor task configuration and source metadata. - `instruction.md`: the request shown to the coding agent. - `environment/`: the frozen Next.js repository and build environment. - `tests/`: verifier setup and task-specific tests. - `solution/`: the reference patch and solution script. - `.selfbench-manifest.json`: task provenance and integrity checksums. `tasks.tsv` provides a compact manifest of all 47 task IDs, difficulty labels, and definition/test/solution checksums. ## Reproducibility Each task pins a Next.js base commit and includes its repository archive, so it does not depend on future upstream changes. The task definitions use Harbor schema version 1.4 and were generated with Selfbench compiler revision 22; these are provenance fields, not additional installation requirements. ## Important evaluation note The repository includes verifier tests and reference solutions because this is the complete raw evaluation package. Do not expose `tests/` or `solution/` to an agent. Harbor runs the verifier in its separate verifier environment when the task is run normally; preserve that separation if adapting these tasks to another framework. ## Licensing The embedded Next.js source is distributed under its upstream license. Other files retain the terms of their respective sources. Review the included upstream license and source metadata before redistributing modified versions.