Migrate Pages Router to App Router
an agent harness with tools and a workspace
Suite v5 (version 5.0) · 44 scored tasks · cut 2026-11-19· What changed
What it asks
This is the website for Lantern Books, a small bookshop, built on Next.js 14 with the Pages Router. Read README.md first. Migrate the whole site to the App Router. Everything the site serves today must come from `app/` at the project root, and the `pages/` folder must be gone when you finish. Requirements: - Migrate every page and the API route: the home page, the book pages, the genre pages, search, about, the custom not-found page, the shared layout that wraps every page, and `/api/books`. - Keep every URL. Keep the HTTP status codes, including 404 for anything unknown, and the API's status codes for bad requests and unsupported methods. - For the same data, keep the rendered HTML content the same: the same text, links and navigation, including which navigation link is marked as the current page. Each page keeps its title and description. - Keep the rendering behaviour the pages had: pages that were built ahead of time stay built ahead of time, and a page that was rendered on every request keeps being rendered on every request. - Keep the existing tests passing (`npm test`), and make sure `npm run build` succeeds. - Do not add dependencies, and do not change package.json, the lockfile or the config files. You may change files under app/, components/, lib/ and styles/ (and delete pages/). End with a short summary of what you changed and anything that behaves differently from before.
How it's scored
Test groups
- Builds, pages/ removed, URLs kept
- Same content
- Shared layout
- Not found
- Rendering semantics
- Metadata
- Client and server boundaries
- Existing tests still pass
Scored 34 tests in total, scaled to 10, by hidden tests.
10 counted runs without a score.
Which checks trip models up
Share of the 28 setups’ newest counted runs that passed each check, hardest first. A part-credit check counts the share it earned.
Score spread
One dot per setup, at its mean score. Dots at the same score stack. Select a dot for its run.
Local Cloud
Show the scores as a table
Best performers
Each model's best setup (the one the leaderboard ranks it by, on its Overall score), ranked by score on this task, then time. Check squares are from the setup's newest counted run. Select a run ID to open that run.
| # | Maker | Model | Setup | Score | Builds, pages/ removed, URLs kept | Same content | Shared layout | Not found | Rendering semantics | Metadata | Client and server boundaries | Time | Tokens out | Cost |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Anthropic | claude-sonnet-5.5 | cloud pi openrouter | 10.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 1m 02s | 7.6k | $0.508 |
| 2 | Qwen | qwen3.8-27b | cloud pi openrouter | 10.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 1m 15s | 18k | $0.603 |
| 3 | OpenAI | gpt-6-luna | cloud pi openrouter | 10.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 2m 13s | 8.4k | $0.719 |
| 4 | OpenAI | gpt-6.1-sol | cloud pi openrouter | 10.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 6m 49s | 14k | $2.48 |
| 5 | DeepSeek | deepseek-v4.1-flash | cloud opencode openrouter | 10.0 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | 10m 20s | 68k | $0.078 |
| 6 | Z.ai (OpenRouter) | glm-5.3-flash | cloud pi openrouter | 9.4 | ✓ | ~ | ~ | ✓ | ✓ | ✓ | ✓ | 1m 17s | 10k | $0.075 |
| 7 | Qwen | qwen3.6-35b-a3b | local q4_k_m · pi AMD Ryzen 7 7700, NVIDIA RTX 5070 Ti 16 GB, 32 GB (Whitehall) | 9.4 | ✓ | ~ | ~ | ✓ | ✓ | ✓ | ✓ | 7m 45s | 12k | ≈$0.0083 |
| 8 | Qwen | qwen3.6-35b-a3b | local 6bit · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 9.4 | ✓ | ~ | ~ | ✓ | ✓ | ✓ | ✓ | 12m 13s | 26k | ≈$0.0022 |
| 9 | Mistral AI | mistralai/devstral-small-2-2512 | local q4_k_m · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 7.9 | ✓ | ✓ | ✓ | ~ | ✓ | ~ | ~ | 53m 48s | 5.2k | ≈$0.0098 |
| 10 | Poolside | laguna-xs-2.1 | local q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood) | 1.5 | ~ | ✕ | ✕ | ✕ | ~ | ✕ | ~ | 20m 01s | 14k | ≈$0.0024 |
| 11 | Unknown | nvidia-nemotron-3.5-lightning-30b-a3b | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 1.2 | ~ | ✕ | ✕ | ✕ | ✕ | ✕ | ~ | 20m 00s | 31k | ≈$0.0037 |
| 12 | Unknown | granite-4.2-3b | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.6 | ~ | ✕ | ✕ | ✕ | ✕ | ✕ | ~ | 14m 42s | 28k | ≈$0.0027 |
| 13 | Recursive | flint | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.6 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ~ | 20m 01s | 27k | ≈$0.0037 |
| 14 | Ornith AI | ornith-1.5-9b | local q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood) | 0.6 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ~ | 1h 02m | 22k | ≈$0.0076 |
| 15 | thinkingmachines | thinkingmachines/inkling-2-mini | local q4_k_m · reasoning high · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.1×2 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ~ | 20m 00s | 25k | ≈$0.0037 |
| 16 | Allen Institute for AI | allenai/olmocr-2-7b | local q4_k_m · opencode Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 6.7s | 273 | ≈<$0.0001 |
| 17 | OpenAI | gpt-oss-20b | local mxfp4 · reasoning medium · pi Apple M1 Pro, 32 GB (Ironwood) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 14s | 217 | ≈<$0.0001 |
| 18 | OpenAI | gpt-oss-20b | local mxfp4 · reasoning high · pi Apple M1 Pro, 32 GB (Ironwood) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 20s | 517 | ≈<$0.0001 |
| 19 | OpenAI | gpt-oss-20b | local mxfp4 · reasoning low · opencode Apple M1 Pro, 32 GB (Ironwood) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 29s | 78 | ≈<$0.0001 |
| 20 | NVIDIA | nemotron-3-nano-4b | local q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 44s | 1.8k | ≈$0.00013 |
| 21 | Qwen | qwen3.6-35b-a3b | local 6bit · reasoning off · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 6m 23s | 19k | ≈$0.0012 |
| 22 | thinkingmachines | thinkingmachines/inkling-2-mini | local q4_k_m · reasoning low · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse) | 0.0 | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ | 20m 01s | 19k | ≈$0.0037 |
- Anthropiccloud pi openrouterScore 10.0✓✓✓✓✓✓✓Time 1m 02sTokens out 7.6kCost $0.508
- Qwencloud pi openrouterScore 10.0✓✓✓✓✓✓✓Time 1m 15sTokens out 18kCost $0.603
- OpenAIcloud pi openrouterScore 10.0✓✓✓✓✓✓✓Time 2m 13sTokens out 8.4kCost $0.719
- OpenAIcloud pi openrouterScore 10.0✓✓✓✓✓✓✓Time 6m 49sTokens out 14kCost $2.48
- DeepSeekcloud opencode openrouterScore 10.0✓✓✓✓✓✓✓Time 10m 20sTokens out 68kCost $0.078
- Z.ai (OpenRouter)cloud pi openrouterScore 9.4✓~~✓✓✓✓Time 1m 17sTokens out 10kCost $0.075
- Qwenlocal q4_k_m · pi AMD Ryzen 7 7700, NVIDIA RTX 5070 Ti 16 GB, 32 GB (Whitehall)Score 9.4✓~~✓✓✓✓Time 7m 45sTokens out 12kCost ≈$0.0083
- Qwenlocal 6bit · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 9.4✓~~✓✓✓✓Time 12m 13sTokens out 26kCost ≈$0.0022
- Mistral AIlocal q4_k_m · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 7.9✓✓✓~✓~~Time 53m 48sTokens out 5.2kCost ≈$0.0098
- Poolsidelocal q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood)Score 1.5~✕✕✕~✕~Time 20m 01sTokens out 14kCost ≈$0.0024
- Unknownlocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 1.2~✕✕✕✕✕~Time 20m 00sTokens out 31kCost ≈$0.0037
- Unknownlocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.6~✕✕✕✕✕~Time 14m 42sTokens out 28kCost ≈$0.0027
- Recursivelocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.6✕✕✕✕✕✕~Time 20m 01sTokens out 27kCost ≈$0.0037
- Ornith AIlocal q4_k_m · reasoning on · pi Apple M1 Pro, 32 GB (Ironwood)Score 0.6✕✕✕✕✕✕~Time 1h 02mTokens out 22kCost ≈$0.0076
- thinkingmachineslocal q4_k_m · reasoning high · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.1×2 runs✕✕✕✕✕✕~Time 20m 00sTokens out 25kCost ≈$0.0037
- Allen Institute for AIlocal q4_k_m · opencode Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕Time 6.7sTokens out 273Cost ≈<$0.0001
- OpenAIlocal mxfp4 · reasoning medium · pi Apple M1 Pro, 32 GB (Ironwood)Score 0.0✕✕✕✕✕✕✕Time 14sTokens out 217Cost ≈<$0.0001
- OpenAIlocal mxfp4 · reasoning high · pi Apple M1 Pro, 32 GB (Ironwood)Score 0.0✕✕✕✕✕✕✕Time 20sTokens out 517Cost ≈<$0.0001
- OpenAIlocal mxfp4 · reasoning low · opencode Apple M1 Pro, 32 GB (Ironwood)Score 0.0✕✕✕✕✕✕✕Time 29sTokens out 78Cost ≈<$0.0001
- NVIDIAlocal q4_k_m · reasoning on · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕Time 44sTokens out 1.8kCost ≈$0.00013
- Qwenlocal 6bit · reasoning off · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕Time 6m 23sTokens out 19kCost ≈$0.0012
- thinkingmachineslocal q4_k_m · reasoning low · pi Apple M5 Pro, 48 GB (Duskfall, Eclipse)Score 0.0✕✕✕✕✕✕✕Time 20m 01sTokens out 19kCost ≈$0.0037
Score against effort
Score against median time per run, log scale. Up and to the left is better. Each dot is a setup; the best setup of each model is named. Times and costs are from different machines and providers, so read them as each setup's own, not as a like-for-like speed test.
Local Cloud
Show the points as a table
Harness comparison
The same task through each agent harness this suite scores for it.
| Harness | Setups | Mean score | Best score | Median time |
|---|---|---|---|---|
| opencode | 7 | 5.7 | 10.0 | 8m 32s |
| pi | 21 | 3.8 | 10.0 | 6m 49s |
- opencodeSetups 7Mean score 5.7Best score 10.0Median time 8m 32s
- piSetups 21Mean score 3.8Best score 10.0Median time 6m 49s
Same setup, different harness
opencodepi
Show the scores as a table
| Setup | Harness scores |
|---|---|
| gpt-6-luna | opencode 10.0 · pi 10.0 |
| qwen3.6-35b-a3b (reasoning on) | opencode 10.0 · pi 9.4 |
| glm-5.3-flash | opencode 10.0 · pi 9.4 |
| thinkingmachines/inkling-2-mini (reasoning high) | opencode 0.0 · pi 0.1 |
| allenai/olmocr-2-7b | opencode 0.0 · pi 0.0 |
| gpt-oss-20b (reasoning low) | opencode 0.0 · pi 0.0 |