Repository navigation
Give each agent's leaderboard its own indexable page - #16
Merged
Merged
Conversation
The per-agent view lived at /?model=<id> and was noindexed as a re-cut of the home page, though each agent ranks the repos differently. It moves to /model/<id> with its own title, description and sitemap entry, and the old URL 308s there. Host, search and sort views stay noindex. Also fixes a 500 from /api/badge when ?model= named an Object.prototype key such as "constructor": the check used `in`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Agent Friendly Code — score diffOverall: 91.0 → 91.0 (±0.0) Per agent
No signals changed between base and head. Posted by agent-friendly-action. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/model/<id>that search engines can index, with its own title, description and sitemap entry./?model=<id>308-redirects to it, keeping any host, search, sort and page params./api/badge/...svg?model=constructorno longer returns a 500.Motivation
The per-agent view was
noindexas a re-cut of the home page, but each agent ranks the repos differently (the top repo issurrealdb/surrealdboverall andgitlab-org/clifor Claude Code), so it is distinct content that could rank for agent-specific queries. Not a roadmap item.Changes
app/model/[slug]/page.tsx: the new page. Unknown slugs 404.app/page.tsx: overall board only; redirects the old param. Board UI and view logic moved tocomponents/LeaderboardBoard.tsx,lib/leaderboard-view.tsandlib/utils/leaderboard-href.tsso both pages share them.SearchBar,HostSelect,SortSelect: navigate on the current path instead of a hard-coded/.app/sitemap.ts,app/llms.txt/route.ts: list the nine agent boards.?model=withisModelId(Object.hasOwn) instead ofin.Indexing rules match the overall board: the board and its
?page=Npages are indexable with a self-canonical; host, search and sort views arenoindex, follow.Testing
bun x tsc --noEmit,bun x biome check .,bun run test(251 pass),next build.next start: status, canonical, robots and title for/,/?page=2,/model/claude-code(plain,?page=2,?host=github),/model/nope(404),/?model=cursor&page=2&host=github(308 to/model/cursor?host=github&page=2)./model/claude-codestay on that path. Sort dropdown, mobile and dark mode not checked.Screenshots / screencasts
None attached; see the Vercel preview at
/model/claude-code.Docs + roadmap sync
N/A for the changelog — no release is being cut. Noted under "Already shipped" in
tasks/0.9.0/README.mdso it gets a changelog line with 0.9.0. AGENTS.md and README.md layout sections updated.Risks / rollback
Old
/?model=URLs are permanent redirects, so reverting after crawlers have followed them leaves/model/<id>links that 404. Otherwise a plain revert.🤖 Generated with Claude Code