Skip to content

add efficiency leaderboard metric#70

Open
kevinfosterNG wants to merge 1 commit into
sculptdotfun:mainfrom
kevinfosterNG:codex/add-efficiency-metric
Open

add efficiency leaderboard metric#70
kevinfosterNG wants to merge 1 commit into
sculptdotfun:mainfrom
kevinfosterNG:codex/add-efficiency-metric

Conversation

@kevinfosterNG

Copy link
Copy Markdown

What changed

  • add an Efficiency tab to the homepage leaderboard beside Cost and Tokens
  • compute efficiency client-side as totalTokens / totalCost and display it as a Tok/$ column
  • fetch and sort the full filtered result set client-side for efficiency mode so rankings stay accurate
  • update homepage and README copy to mention the new efficiency metric

Why

The homepage currently highlights spend and token volume, but it does not surface which submissions get the most tokens per dollar. This adds a focused third ranking mode without changing the database schema.

Impact

Users can now switch the root leaderboard to an efficiency-oriented view and identify the most cost-efficient submissions, while existing cost and token rankings remain unchanged.

Validation

  • pnpm build
  • pnpm exec tsc --noEmit
    Fails in the current repo due to pre-existing type/config issues unrelated to this change.
  • pnpm lint
    Fails in the current repo because the script still uses next lint, which is invalid under the current Next.js setup.
  • pnpm test
    Fails in the current repo because the script runs node directly on test/ccusage.test.mts.

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

@kevinfosterNG is attempting to deploy a commit to the sculpt Team on Vercel.

A member of the Team first needs to authorize it.

@kevinfosterNG kevinfosterNG changed the title [codex] add efficiency leaderboard metric add efficiency leaderboard metric Jun 17, 2026
@kevinfosterNG
kevinfosterNG marked this pull request as ready for review June 17, 2026 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant