/**
 * IDE preview of the Cursor models report.
 * Source of truth: data/current.json. The block between the GENERATED markers is rewritten by
 * scripts/sync_canvas.py (generate_web.py runs it), so edit the JSON, not the data below.
 * This file cannot run on a website — use web/ for breyd.com. Monthly permalinks live there.
 */
import {
  BarChart,
  Callout,
  Card,
  CardBody,
  CardHeader,
  Divider,
  Grid,
  H1,
  H2,
  H3,
  Link,
  Pill,
  Row,
  Select,
  Stack,
  Stat,
  Table,
  Text,
  useCanvasState,
  useMemo,
} from "cursor/canvas";

type Vendor = "Grok" | "Anthropic" | "OpenAI";
type TaskId = "trading" | "software" | "writing";
type Intensity = "light" | "standard" | "heavy";
type Slot = "peak" | "value" | "budget";

type CatalogRow = {
  name: string;
  vendor: Vendor;
  pool: "Cursor Models" | "Other Models";
  input: number;
  output: number;
  cacheRead: number;
  cacheWrite: number | null;
  ctxDefault: string;
  ctxMax: string;
  visible: boolean;
  notes: string;
};

type CompareModel = {
  id: string;
  short: string;
  name: string;
  vendor: Vendor;
  input: number;
  output: number;
  cacheRead: number;
  pool: "cursor" | "other";
  ctxK: number;
  ctxMaxK: number;
  cursorbench: number | null;
  cursorbenchUsd: number | null;
  swePro: number | null;
  eqElo: number | null;
  gdpval: number | null;
  financeNote: string;
  longCtxOverK?: number;
  longCtxMult?: number;
  tokenRateExempt?: boolean;
};

type Scenario = {
  label: string;
  blurb: string;
  input: number;
  output: number;
  cache: number;
};

type Pick = { title: string; model: string; why: string };

type SeatPlan = {
  id: string;
  name: string;
  usdPerSeatMonth: number | null;
  priceLabel: string;
  billedHow: string;
  cursorModels: string;
  otherModels: string;
  legacy: boolean;
};

type SourceLink = { label: string; href: string };

// BEGIN GENERATED FROM data/current.json (python3 scripts/sync_canvas.py). Do not edit by hand.

const SNAPSHOT = {
  "asOf": "2026-11-27",
  "retrieved": "2026-11-27",
  "biasNote": "Authoring model is Claude Opus 5.5 (Anthropic), which is itself a row in this catalog; the September and October editions were written by Cursor Grok 4.6. Anthropic rows lead most charts this month: on CursorBench 4.1 Claude Fable 5.2 Max is first among Grok, Claude, and GPT rows and Opus 5.5 Max second, and Haiku 5.5 Max ties Grok 4.7 Extra High. Those are Cursor's published scores, not this author's ranking. Seat prices are Cursor list rates.",
  "notInCursor": [
    "OpenAI's current API lineup is the GPT-6 family: GPT-6.2 Astra ($8 / $40), GPT-6.2 Sol ($2 / $10), GPT-6.1 Terra ($1 / $5), and GPT-6 Luna ($0.10 / $0.50), each listed at 1.05M context, plus the original GPT-6 Astra ($10 / $50). None is on Cursor's model table in this snapshot; Cursor's newest OpenAI rows are still GPT-5.6. Atlas writing Elo for GPT-6 Astra (2,177) and GPT-6 Sol (2,126) is therefore not a Cursor picker option.",
    "Claude Mythos 5.2 (the Fable 5.2 model without some cyber and biology safeguards) is limited to vetted organisations and is not on Cursor's table."
  ],
  "cursorPool": "Grok 4.7, Grok 4.6, Grok 4.5, and Composer 2.5",
  "poolsIntro": "New plans are sold as The X Subscription: one weekly pool for Cursor models (Grok 4.7, Grok 4.6, Grok 4.5, and Composer 2.5), shared across Cursor and Grok. Claude and GPT are not included on any new plan; Premium and up pay their API list price from prepaid credit. Legacy plans (Pro, Pro+, Ultra, Teams Standard and Premium) keep the two monthly pools. Fast speed on Grok is the default on Premium and higher and doubles the token rate.",
  "cursorPoolCard": "Grok 4.7, Grok 4.6, Grok 4.5, and Composer 2.5. Weekly on new plans, monthly on legacy plans. Exempt from the Teams Cursor Token Rate. The only included usage on new plans. Size is a multiple of Plus (Premium 4×, Super 15×, Ultra 50×); the dollar size is unpublished.",
  "otherPoolCard": "Every Claude and GPT row. Not included on new plans: Premium and up pay the API list price from prepaid credit, and Plus and Free cannot use them. Legacy Pro, Pro+, Ultra, and legacy Teams still have an included Other Models pool (dollar size unpublished). Hidden rows still bill if you turn them on.",
  "seatVsCard": "The seat buys the weekly Cursor-model pool. On new plans Claude and GPT spend is extra from the first token, and Cursor models past the pool bill at their token rates. Teams and Enterprise add $0.25/M on Claude and GPT, except models whose cache read is under $0.10/M (Luna, Haiku 5.5).",
  "grokFastDefault": {
    "short": "Premium+ default",
    "where": "Premium and higher (and legacy Pro, Pro+, Ultra)"
  },
  "composerNote": "Every Grok, Anthropic, and OpenAI row on Cursor’s public model table as of this snapshot. Hidden models still work if you enable them; they still bill. Composer 2.5 is a Cursor model, not Grok/Claude/GPT ($0.50 / $2.50 list); it has no CursorBench 4.1 row.",
  "priceCaption": "Source: cursor.com/docs/models-and-pricing, retrieved 27 Nov 2026. Sol is still $4 / $20: Cursor labels it promotional “through November 21, 2026”, OpenAI’s pricing page says the promo runs until 30 Nov 2026, and neither publishes the rate after. Grok Fast not shown (2×).",
  "tradingNote": "Jane Street’s head of quant research called Fable 5.1 state of the art on their trading-intuition tests, and Jump Trading reported Fable 5.2 had 10% lower error than the next best model on an internal research-automation benchmark. Those are customer quotes, not public leaderboards. No model here sees live bids or your broker. For trading work in Cursor: Haiku 5.5 / Luna / Grok to ingest; Opus 5.5 or Fable to argue the thesis; you to take the risk.",
  "monthHardCaption": "20 × published CursorBench 4.1 $/task at each model’s top published effort. Terra, Luna, and Fable 5.1 omitted (not on 4.1).",
  "monthReadLead": "If most of your Cursor use is “change this function and add a test,” the mixed-month chart is closer to reality. If you run long agents on messy repos, the CursorBench month is the one that outruns any seat; on new plans Claude and GPT bill from prepaid credit on top of the seat."
};

const CATALOG: CatalogRow[] = [
  {
    "name": "Grok 4.7",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 2,
    "output": 6,
    "cacheRead": 0.5,
    "cacheWrite": null,
    "ctxDefault": "256k",
    "ctxMax": "500k",
    "visible": true,
    "notes": "Joint Cursor + SpaceXAI. Default 256k; input over 256k bills 2× (the “Grok 4.7 500k” row) up to 500k. Effort: low / medium / high / xhigh. Default high. Plus and legacy Start are fixed at medium effort, standard speed."
  },
  {
    "name": "Grok 4.7 Fast",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 4,
    "output": 12,
    "cacheRead": 1,
    "cacheWrite": null,
    "ctxDefault": "256k",
    "ctxMax": "500k",
    "visible": true,
    "notes": "Default speed on Premium and higher, and on legacy Pro, Pro+, and Ultra. 2× standard Grok 4.7. Fast long context (>256k) bills at 3× the standard rates, up to 500k."
  },
  {
    "name": "Grok 4.7 500k",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 4,
    "output": 12,
    "cacheRead": 1,
    "cacheWrite": null,
    "ctxDefault": ">256k",
    "ctxMax": "500k",
    "visible": true,
    "notes": "New row this month. The long-context rate for Grok 4.7: requests over 256k input bill at 2× standard, up to 500k."
  },
  {
    "name": "Grok 4.7 500k (Fast)",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 6,
    "output": 18,
    "cacheRead": 1.5,
    "cacheWrite": null,
    "ctxDefault": ">256k",
    "ctxMax": "500k",
    "visible": true,
    "notes": "New row this month. Fast long context: 3× standard Grok 4.7 rates above 256k input, up to 500k."
  },
  {
    "name": "Grok 4.6",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 2,
    "output": 6,
    "cacheRead": 0.5,
    "cacheWrite": null,
    "ctxDefault": "256k",
    "ctxMax": "256k",
    "visible": true,
    "notes": "Joint Cursor + SpaceXAI. Effort: low / medium / high / xhigh. Default high. Cursor recommends Grok 4.7; 4.6 remains available."
  },
  {
    "name": "Grok 4.6 Fast",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 4,
    "output": 12,
    "cacheRead": 1,
    "cacheWrite": null,
    "ctxDefault": "256k",
    "ctxMax": "256k",
    "visible": true,
    "notes": "Fast speed for Grok 4.6. 2× standard Grok 4.6 rates."
  },
  {
    "name": "Grok 4.5",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 2,
    "output": 6,
    "cacheRead": 0.5,
    "cacheWrite": null,
    "ctxDefault": "256k",
    "ctxMax": "256k",
    "visible": true,
    "notes": "Previous Cursor Grok. Fast variant is $4 / $18."
  },
  {
    "name": "Grok 4.5 Fast",
    "vendor": "Grok",
    "pool": "Cursor Models",
    "input": 4,
    "output": 18,
    "cacheRead": 1,
    "cacheWrite": null,
    "ctxDefault": "256k",
    "ctxMax": "256k",
    "visible": true,
    "notes": "Fast speed tier. Output is 3× standard Grok 4.5, not 2×."
  },
  {
    "name": "Claude Fable 5.2",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 8,
    "output": 40,
    "cacheRead": 0.2,
    "cacheWrite": 10,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": true,
    "notes": "New. Replaces Fable 5.1 as the visible Fable: 20% cheaper on input and output, cache reads $0.20/M. About 2× Opus 5.5. Effort low to max; Cursor suggests starting at high. Needs the Anthropic data-retention opt-in (off by default for Privacy Mode Teams and all Enterprise)."
  },
  {
    "name": "Claude Fable 5.1",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 10,
    "output": 50,
    "cacheRead": 0.25,
    "cacheWrite": 12.5,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden by default since Fable 5.2; still selectable. Needs data-retention opt-in. Cache reads $0.25/M. Guardrail trips route to Opus. About 2.5× Opus 5.5 on input and output."
  },
  {
    "name": "Claude Fable 5",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 10,
    "output": 50,
    "cacheRead": 1,
    "cacheWrite": 12.5,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Same list price as 5.1; cache reads 4× more expensive than 5.1."
  },
  {
    "name": "Claude Opus 5.5",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 4,
    "output": 20,
    "cacheRead": 0.2,
    "cacheWrite": 5,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": true,
    "notes": "20% cheaper than Opus 5 ($4 / $20). Cache reads $0.20/M. ZDR compatible. Fast is $8 / $40. US-only endpoints +10%. No 1M surcharge."
  },
  {
    "name": "Claude Sonnet 5.5",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 2,
    "output": 10,
    "cacheRead": 0.1,
    "cacheWrite": 2.5,
    "ctxDefault": "200k",
    "ctxMax": "1M",
    "visible": true,
    "notes": "Same $2 / $10 as Sonnet 5. Cache reads now $0.10/M (Sonnet 5 is $0.20). No 1M surcharge. US-only endpoints +10%."
  },
  {
    "name": "Claude Haiku 5.5",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 0.1,
    "output": 0.5,
    "cacheRead": 0.01,
    "cacheWrite": 0.125,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": true,
    "notes": "New. Successor to Claude 4.5 Haiku, about 90% cheaper up to 100k input. Requests over 100k input bill at 5× ($0.50 / $2.50, cache read $0.05). Exempt from the Teams token rate (cache read under $0.10/M)."
  },
  {
    "name": "Claude Opus 5",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 5,
    "output": 25,
    "cacheRead": 0.5,
    "cacheWrite": 6.25,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Previous Opus. Hidden by default. $5 / $25. Fast mode is $10 / $50. No 1M surcharge."
  },
  {
    "name": "Claude Sonnet 5",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 2,
    "output": 10,
    "cacheRead": 0.2,
    "cacheWrite": 2.5,
    "ctxDefault": "200k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Previous Sonnet. Hidden by default. Same $2 / $10 as Sonnet 5.5. Newer tokenizer can count more tokens for the same text."
  },
  {
    "name": "Claude 4.5 Haiku",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 1,
    "output": 5,
    "cacheRead": 0.1,
    "cacheWrite": 1.25,
    "ctxDefault": "200k",
    "ctxMax": "200k",
    "visible": false,
    "notes": "Hidden by default. 200k context only. Superseded by Claude Haiku 5.5."
  },
  {
    "name": "Claude Opus 4.8",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 5,
    "output": 25,
    "cacheRead": 0.5,
    "cacheWrite": 6.25,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Previous Opus. Same list price as Opus 5."
  },
  {
    "name": "Claude 4.7 Opus",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 5,
    "output": 25,
    "cacheRead": 0.5,
    "cacheWrite": 6.25,
    "ctxDefault": "300k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden. Fast preview of 4.7 is $30 / $150."
  },
  {
    "name": "Claude 4.6 Opus",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 5,
    "output": 25,
    "cacheRead": 0.5,
    "cacheWrite": 6.25,
    "ctxDefault": "200k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden. Same Opus-class list price."
  },
  {
    "name": "Claude 4.6 Sonnet",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 3,
    "output": 15,
    "cacheRead": 0.3,
    "cacheWrite": 3.75,
    "ctxDefault": "200k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden. Older Sonnet price is $3 / $15, above Sonnet 5."
  },
  {
    "name": "Claude 4.5 Opus",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 5,
    "output": 25,
    "cacheRead": 0.5,
    "cacheWrite": 6.25,
    "ctxDefault": "200k",
    "ctxMax": "200k",
    "visible": false,
    "notes": "Hidden. 200k cap."
  },
  {
    "name": "Claude 4.5 Sonnet",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 3,
    "output": 15,
    "cacheRead": 0.3,
    "cacheWrite": 3.75,
    "ctxDefault": "200k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden. Extended context to 1M at the same rates."
  },
  {
    "name": "Claude 4 Sonnet",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 3,
    "output": 15,
    "cacheRead": 0.3,
    "cacheWrite": 3.75,
    "ctxDefault": "200k",
    "ctxMax": "200k",
    "visible": false,
    "notes": "Hidden. 1M sibling doubles price above 200k input."
  },
  {
    "name": "Claude 4 Sonnet 1M",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 6,
    "output": 22.5,
    "cacheRead": 0.6,
    "cacheWrite": 7.5,
    "ctxDefault": "1M",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden. 2× when input exceeds 200k. Easy to overspend."
  },
  {
    "name": "Claude Opus 4.7 Fast",
    "vendor": "Anthropic",
    "pool": "Other Models",
    "input": 30,
    "output": 150,
    "cacheRead": 3,
    "cacheWrite": 37.5,
    "ctxDefault": "200k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Limited research preview. Most expensive Claude in the picker."
  },
  {
    "name": "GPT-5.6 Sol",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 4,
    "output": 20,
    "cacheRead": 0.4,
    "cacheWrite": 5,
    "ctxDefault": "272k",
    "ctxMax": "1M",
    "visible": true,
    "notes": "Cursor still lists $4 / $20 as “promotional pricing through November 21, 2026”. OpenAI’s pricing page says the promo runs until 30 Nov 2026; neither publishes the rate after. Long context >272k: 2× input, 1.5× output. Fast 2×."
  },
  {
    "name": "GPT-5.6 Terra",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 2,
    "output": 12,
    "cacheRead": 0.2,
    "cacheWrite": 2.5,
    "ctxDefault": "272k",
    "ctxMax": "1M",
    "visible": true,
    "notes": "Mid GPT-5.6. Same 1M long-context multipliers as Sol."
  },
  {
    "name": "GPT-5.6 Luna",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 0.2,
    "output": 1.2,
    "cacheRead": 0.02,
    "cacheWrite": 0.25,
    "ctxDefault": "272k",
    "ctxMax": "1M",
    "visible": true,
    "notes": "Cheapest GPT-5.6. Fast is 2×. Long context >272k: 2× input, 1.5× output. Exempt from the Teams token rate (cache read under $0.10/M)."
  },
  {
    "name": "GPT-5.5",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 5,
    "output": 30,
    "cacheRead": 0.5,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden. More token-efficient than GPT-5.4. Long context 2× input."
  },
  {
    "name": "GPT-5.4",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 2.5,
    "output": 15,
    "cacheRead": 0.25,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "1M",
    "visible": false,
    "notes": "Hidden. Fast is ~15% faster at 2× price. Long context 2× input."
  },
  {
    "name": "GPT-5.4 Mini",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 0.75,
    "output": 4.5,
    "cacheRead": 0.075,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. 90% cache discount."
  },
  {
    "name": "GPT-5.4 Nano",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 0.2,
    "output": 1.25,
    "cacheRead": 0.02,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Cost-optimised GPT-5.4."
  },
  {
    "name": "GPT-5.3 Codex",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 1.75,
    "output": 14,
    "cacheRead": 0.175,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Coding-tuned GPT-5.3."
  },
  {
    "name": "GPT-5.2",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 1.75,
    "output": 14,
    "cacheRead": 0.175,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Codex sibling at the same rates."
  },
  {
    "name": "GPT-5.2 Codex",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 1.75,
    "output": 14,
    "cacheRead": 0.175,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Agentic coding variant of GPT-5.2."
  },
  {
    "name": "GPT-5.1 Codex",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 1.25,
    "output": 10,
    "cacheRead": 0.125,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Mini sibling is $0.25 / $2 with 4× rate limits."
  },
  {
    "name": "GPT-5.1 Codex Max",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 1.25,
    "output": 10,
    "cacheRead": 0.125,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Same token price as GPT-5.1 Codex."
  },
  {
    "name": "GPT-5.1 Codex Mini",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 0.25,
    "output": 2,
    "cacheRead": 0.025,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. 4× rate limits vs GPT-5.1 Codex."
  },
  {
    "name": "GPT-5",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 1.25,
    "output": 10,
    "cacheRead": 0.125,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Fast is 2×. Mini is $0.25 / $2. Codex sibling same price."
  },
  {
    "name": "GPT-5 Fast",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 2.5,
    "output": 20,
    "cacheRead": 0.25,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. 2× GPT-5."
  },
  {
    "name": "GPT-5 Mini",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 0.25,
    "output": 2,
    "cacheRead": 0.025,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Small GPT-5."
  },
  {
    "name": "GPT-5-Codex",
    "vendor": "OpenAI",
    "pool": "Other Models",
    "input": 1.25,
    "output": 10,
    "cacheRead": 0.125,
    "cacheWrite": null,
    "ctxDefault": "272k",
    "ctxMax": "272k",
    "visible": false,
    "notes": "Hidden. Original GPT-5 coding variant."
  }
];

const COMPARE: CompareModel[] = [
  {
    "id": "grok47",
    "short": "Grok 4.7",
    "name": "Grok 4.7",
    "vendor": "Grok",
    "input": 2,
    "output": 6,
    "cacheRead": 0.5,
    "pool": "cursor",
    "ctxK": 256,
    "ctxMaxK": 500,
    "cursorbench": 48.6,
    "cursorbenchUsd": 10.19,
    "swePro": null,
    "eqElo": 2012,
    "gdpval": null,
    "financeNote": "No public finance score. CursorBench 4.1 Extra High 48.6% at $10.19 (High 46.0% at $6.88). The only family here inside the included weekly pool on new plans. SWE-bench Pro still lists Grok 4.5, not 4.7."
  },
  {
    "id": "grok47fast",
    "short": "Grok Fast",
    "name": "Grok 4.7 Fast",
    "vendor": "Grok",
    "input": 4,
    "output": 12,
    "cacheRead": 1,
    "pool": "cursor",
    "ctxK": 256,
    "ctxMaxK": 500,
    "cursorbench": 48.6,
    "cursorbenchUsd": 10.19,
    "swePro": null,
    "eqElo": 2012,
    "gdpval": null,
    "financeNote": "Same model at 2× every token rate. CursorBench publishes one cost per effort level ($10.19 at Extra High) and does not say which speed it priced; Fast would be about 2× if that cost is at standard rates."
  },
  {
    "id": "fable52",
    "short": "Fable 5.2",
    "name": "Claude Fable 5.2",
    "vendor": "Anthropic",
    "input": 8,
    "output": 40,
    "cacheRead": 0.2,
    "pool": "other",
    "ctxK": 300,
    "ctxMaxK": 1000,
    "cursorbench": 61.3,
    "cursorbenchUsd": 48.11,
    "swePro": 93,
    "eqElo": null,
    "gdpval": null,
    "financeNote": "No published finance or GDPval-AA score. Jump Trading: 10% lower error than the next best model on an internal research-automation benchmark. AA-Briefcase v1.1 rubric 66.1%. 20% cheaper than Fable 5.1. Needs data-retention opt-in."
  },
  {
    "id": "fable51",
    "short": "Fable 5.1",
    "name": "Claude Fable 5.1",
    "vendor": "Anthropic",
    "input": 10,
    "output": 50,
    "cacheRead": 0.25,
    "pool": "other",
    "ctxK": 300,
    "ctxMaxK": 1000,
    "cursorbench": null,
    "cursorbenchUsd": null,
    "swePro": 81.2,
    "eqElo": 2155,
    "gdpval": 1853,
    "financeNote": "Hidden by default since Fable 5.2, still selectable. FrontierFinance 55.9% (vs Fable 5 at 49.2%) is still the only published finance score in this set. Jane Street: SOTA trading intuition. Not on CursorBench 4.1. Needs data-retention opt-in."
  },
  {
    "id": "opus55",
    "short": "Opus 5.5",
    "name": "Claude Opus 5.5",
    "vendor": "Anthropic",
    "input": 4,
    "output": 20,
    "cacheRead": 0.2,
    "pool": "other",
    "ctxK": 300,
    "ctxMaxK": 1000,
    "cursorbench": 58.1,
    "cursorbenchUsd": 11.88,
    "swePro": 89.9,
    "eqElo": 2051,
    "gdpval": null,
    "financeNote": "No finance score published. ZDR compatible. CursorBench 4.1 Max 58.1% at $11.88; Extra High 56.7% at $6.54; High 54.5% at $3.87. AA-Briefcase v1.1 rubric 61.2%."
  },
  {
    "id": "sonnet55",
    "short": "Sonnet 5.5",
    "name": "Claude Sonnet 5.5",
    "vendor": "Anthropic",
    "input": 2,
    "output": 10,
    "cacheRead": 0.1,
    "pool": "other",
    "ctxK": 200,
    "ctxMaxK": 1000,
    "cursorbench": 54.4,
    "cursorbenchUsd": 8.63,
    "swePro": 81.3,
    "eqElo": null,
    "gdpval": null,
    "financeNote": "Cache reads now $0.10/M. CursorBench 4.1 Max 54.4% at $8.63; High 43.8% at $1.41. No writing Elo on the Atlas snapshot used here."
  },
  {
    "id": "haiku55",
    "short": "Haiku 5.5",
    "name": "Claude Haiku 5.5",
    "vendor": "Anthropic",
    "input": 0.1,
    "output": 0.5,
    "cacheRead": 0.01,
    "pool": "other",
    "ctxK": 300,
    "ctxMaxK": 1000,
    "cursorbench": 48.4,
    "cursorbenchUsd": 1.14,
    "swePro": null,
    "eqElo": null,
    "gdpval": null,
    "financeNote": "Requests over 100k input bill at 5× ($0.50 / $2.50). CursorBench 4.1 Max 48.4% at $1.14, level with Grok 4.7 Extra High at about a ninth of the cost. Exempt from the Teams token rate.",
    "longCtxOverK": 100,
    "longCtxMult": 5,
    "tokenRateExempt": true
  },
  {
    "id": "sol",
    "short": "Sol",
    "name": "GPT-5.6 Sol",
    "vendor": "OpenAI",
    "input": 4,
    "output": 20,
    "cacheRead": 0.4,
    "pool": "other",
    "ctxK": 272,
    "ctxMaxK": 1000,
    "cursorbench": 40.9,
    "cursorbenchUsd": 7.6,
    "swePro": 64.6,
    "eqElo": 1974,
    "gdpval": 1711,
    "financeNote": "No finance score. Still $4 / $20 on Cursor’s table (labelled promotional through 21 Nov; OpenAI says the promo runs to 30 Nov 2026; the later rate is unpublished). CursorBench 4.1 Max 40.9% at $7.60."
  },
  {
    "id": "terra",
    "short": "Terra",
    "name": "GPT-5.6 Terra",
    "vendor": "OpenAI",
    "input": 2,
    "output": 12,
    "cacheRead": 0.2,
    "pool": "other",
    "ctxK": 272,
    "ctxMaxK": 1000,
    "cursorbench": null,
    "cursorbenchUsd": null,
    "swePro": 63.4,
    "eqElo": 1856,
    "gdpval": null,
    "financeNote": "About half Sol’s list price. Not measured on CursorBench 4.1. OpenAI’s newer GPT-6.1 Terra ($1 / $5) is not in Cursor."
  },
  {
    "id": "luna",
    "short": "Luna",
    "name": "GPT-5.6 Luna",
    "vendor": "OpenAI",
    "input": 0.2,
    "output": 1.2,
    "cacheRead": 0.02,
    "pool": "other",
    "ctxK": 272,
    "ctxMaxK": 1000,
    "cursorbench": null,
    "cursorbenchUsd": null,
    "swePro": 62.7,
    "eqElo": 1832,
    "gdpval": null,
    "financeNote": "Cheap first pass. Not measured on CursorBench 4.1. Exempt from the Teams token rate (cache read under $0.10/M).",
    "tokenRateExempt": true
  }
];

const SCENARIOS: Record<TaskId, Record<Intensity, Scenario>> = {
  "trading": {
    "light": {
      "label": "Quick ticker briefing",
      "blurb": "One ticker, recent headlines, and a 1-page view. About 12k input tokens and 2.5k output. No long thinking.",
      "input": 12000,
      "output": 2500,
      "cache": 0
    },
    "standard": {
      "label": "Earnings + filing memo",
      "blurb": "Selected 10-K excerpts, last earnings notes, and a long/short memo with risks. 45k input and 14k output, including about 8k thinking tokens billed as output.",
      "input": 45000,
      "output": 14000,
      "cache": 0
    },
    "heavy": {
      "label": "Deep diligence pack",
      "blurb": "A large filing pack, transcript notes, and a full memo. 180k input and 32k output including thinking. Under the long-context thresholds for Grok (256k) and GPT-5.6 (272k); over Haiku 5.5’s 100k, so Haiku bills at 5×.",
      "input": 180000,
      "output": 32000,
      "cache": 0
    }
  },
  "software": {
    "light": {
      "label": "Small one-file bugfix",
      "blurb": "Read a file, patch it, run tests. 8k fresh input, 4k cached reread, 2.5k output.",
      "input": 8000,
      "output": 2500,
      "cache": 4000
    },
    "standard": {
      "label": "Feature with tests",
      "blurb": "Multi-file agent loop: 30k fresh input, 50k cache reads, 20k output (code + reasoning). Typical Cursor feature, not a CursorBench hard task.",
      "input": 30000,
      "output": 20000,
      "cache": 50000
    },
    "heavy": {
      "label": "Hard CursorBench-style task",
      "blurb": "Ambiguous multi-file work. Dollar figures use Cursor's published CursorBench 4.1 cost-per-task at each model's top published effort where the model was measured.",
      "input": 80000,
      "output": 35000,
      "cache": 40000
    }
  },
  "writing": {
    "light": {
      "label": "Blog post (~800 words)",
      "blurb": "Short brief in, ~800 words out. About 600 input and 1,200 output tokens.",
      "input": 600,
      "output": 1200,
      "cache": 0
    },
    "standard": {
      "label": "Short story (~3,000 words)",
      "blurb": "A 3,000-word story from a one-page brief. About 800 input and 4,000 output tokens.",
      "input": 800,
      "output": 4000,
      "cache": 0
    },
    "heavy": {
      "label": "Chapter + two revisions",
      "blurb": "Draft a chapter, then two edit passes. 4.5k fresh input, 25k cache reads of prior draft, 24k output across three turns.",
      "input": 4500,
      "output": 24000,
      "cache": 25000
    }
  }
};

const PICKS: Record<TaskId, Record<Slot, Pick>> = {
  "software": {
    "peak": {
      "title": "Peak measured quality",
      "model": "Claude Fable 5.2 (Max), or Opus 5.5 Max",
      "why": "Fable 5.2 Max leads the Grok, Claude, and GPT rows on CursorBench 4.1 at 61.3%, but costs $48.11 per task; Extra High is 58.8% at $17.84. Opus 5.5 Max is 58.1% at $11.88. Fable 5.2 also tops SWE-bench Pro at 93%. Fable needs the data-retention opt-in. Gemini 4 Neon (65.4%) leads the full table but is outside this report."
    },
    "value": {
      "title": "Best measured quality per dollar",
      "model": "Claude Opus 5.5 High, or Claude Haiku 5.5 Max",
      "why": "Opus 5.5 High is 54.5% for $3.87; Sonnet 5.5 Max scores the same 54.4% for $8.63. Haiku 5.5 Max is 48.4% for $1.14, level with Grok 4.7 Extra High (48.6% at $10.19). On new plans Grok draws on the included weekly pool; Claude bills from prepaid credit."
    },
    "budget": {
      "title": "Budget / high volume",
      "model": "Claude Haiku 5.5 (High or Extra High), or Grok 4.7 Medium",
      "why": "Haiku 5.5 High is 37.5% for $0.31; Extra High is 45.2% for $0.56. Grok 4.7 Medium is 42.5% at $5.52 but comes out of the Cursor-model pool. Luna and Terra were not measured on CursorBench 4.1. Weak on ambiguous, long-horizon work at low effort."
    }
  },
  "trading": {
    "peak": {
      "title": "Peak research quality",
      "model": "Claude Fable 5.2, or Fable 5.1 (hidden)",
      "why": "Fable 5.1 still has the only published finance score in this set (FrontierFinance 55.9%), and Jane Street praised its trading intuition. Fable 5.2 is 20% cheaper, has no finance score yet, and Jump Trading reported 10% lower error than the next best model on an internal research benchmark. Not investment advice. Both need the data-retention opt-in."
    },
    "value": {
      "title": "Serious analysis without Fable pricing",
      "model": "Claude Opus 5.5, or GPT-5.6 Sol / Terra",
      "why": "Opus 5.5 is $4 / $20 and ZDR compatible; a standard memo is about $0.46. On AA-Briefcase v1.1 it scores 61.2% to Fable 5.2’s 66.1%. Sol is the same $4 / $20 until its promo ends (30 Nov per OpenAI; the later rate is unpublished). Terra is $2 / $12."
    },
    "budget": {
      "title": "Screening and summaries",
      "model": "Claude Haiku 5.5, GPT-5.6 Luna, or Grok 4.7",
      "why": "A standard memo is about $0.01 on Haiku 5.5, $0.03 on Luna, and $0.17 on Grok 4.7 standard (from the weekly pool on new plans). Haiku 5.5 bills 5× above 100k input, so a deep-diligence pack costs it about $0.17. Triage here; promote interesting names to Opus 5.5 or Fable. Live prices need web search."
    }
  },
  "writing": {
    "peak": {
      "title": "Peak published prose",
      "model": "Claude Fable 5.1 (hidden by default)",
      "why": "Highest Cursor-listed Elo on the 30 Oct 2026 Creative Writing v3 snapshot (2,155). It is hidden now that Fable 5.2 shipped, but still selectable; Fable 5.2 has no Elo yet. Hidden Opus 5 is 2,135; visible Opus 5.5 is 2,051. GPT-6 Astra (2,177) and GPT-6 Sol (2,126) are not in Cursor."
    },
    "value": {
      "title": "Strong writing at mid price",
      "model": "Claude Opus 5.5, or Grok 4.7",
      "why": "Opus 5.5 is 2,051 Elo at $4 / $20. Grok 4.7 is 2,012 and comes out of the weekly Cursor-model pool. GPT-5.6 Sol is 1,974 at the same $4 / $20 while its promo lasts. Sonnet 5.5 and Haiku 5.5 have no Elo on this snapshot."
    },
    "budget": {
      "title": "Drafts and volume",
      "model": "GPT-5.6 Luna or Grok 4.7",
      "why": "A 3,000-word story is about half a cent on Luna and about 3 cents on Grok 4.7 standard. Luna Elo is 1,832; Grok 4.7 is 2,012. Haiku 5.5 is cheaper still (about 0.2 cents) but has no writing Elo. Draft cheap, then polish on Fable or Opus 5.5."
    }
  }
};

const TEAM_SIZES: number[] = [
  1,
  5,
  10,
  25,
  50
];

const SEAT_PLANS: SeatPlan[] = [
  {
    "id": "free",
    "name": "Free",
    "usdPerSeatMonth": 0,
    "priceLabel": "Free",
    "billedHow": "Per account",
    "cursorModels": "Limited (unpublished $). Grok and Composer only.",
    "otherModels": "Not included",
    "legacy": false
  },
  {
    "id": "plus",
    "name": "Plus",
    "usdPerSeatMonth": 8,
    "priceLabel": "$8/mo ($80/yr)",
    "billedHow": "Per account",
    "cursorModels": "Weekly pool, base size (unpublished $). Grok only; Fast off, medium effort.",
    "otherModels": "Not available",
    "legacy": false
  },
  {
    "id": "premium",
    "name": "Premium",
    "usdPerSeatMonth": 30,
    "priceLabel": "$30/mo ($300/yr)",
    "billedHow": "Per account",
    "cursorModels": "Weekly pool, 4× Plus (unpublished $)",
    "otherModels": "API list price from prepaid credit",
    "legacy": false
  },
  {
    "id": "super",
    "name": "Super",
    "usdPerSeatMonth": 100,
    "priceLabel": "$100/mo ($1,000/yr)",
    "billedHow": "Per account",
    "cursorModels": "Weekly pool, 15× Plus (unpublished $). Priority model access at peak times.",
    "otherModels": "API list price from prepaid credit",
    "legacy": false
  },
  {
    "id": "ultra",
    "name": "Ultra",
    "usdPerSeatMonth": 200,
    "priceLabel": "$200/mo ($2,000/yr)",
    "billedHow": "Per account",
    "cursorModels": "Weekly pool, 50× Plus (unpublished $). Earliest access to models.",
    "otherModels": "API list price from prepaid credit",
    "legacy": false
  },
  {
    "id": "teamsPremium",
    "name": "Teams Premium seat",
    "usdPerSeatMonth": 30,
    "priceLabel": "$30/user/mo",
    "billedHow": "Per active paid seat",
    "cursorModels": "Weekly pool per seat (unpublished $)",
    "otherModels": "API list price + $0.25/M from the team’s prepaid balance",
    "legacy": false
  },
  {
    "id": "teamsSuper",
    "name": "Teams Super seat",
    "usdPerSeatMonth": 100,
    "priceLabel": "$100/user/mo",
    "billedHow": "Per active paid seat",
    "cursorModels": "Weekly pool per seat, 3.75× Premium (unpublished $)",
    "otherModels": "API list price + $0.25/M from the team’s prepaid balance",
    "legacy": false
  },
  {
    "id": "teamsUltra",
    "name": "Teams Ultra seat",
    "usdPerSeatMonth": 200,
    "priceLabel": "$200/user/mo",
    "billedHow": "Per active paid seat",
    "cursorModels": "Weekly pool per seat, 12.5× Premium (unpublished $)",
    "otherModels": "API list price + $0.25/M from the team’s prepaid balance",
    "legacy": false
  },
  {
    "id": "teamsFree",
    "name": "Teams Free seat",
    "usdPerSeatMonth": 0,
    "priceLabel": "$0/user/mo",
    "billedHow": "Per seat, invite only",
    "cursorModels": "No team allowance; uses the member’s own plan or a small free allowance",
    "otherModels": "Not stated",
    "legacy": false
  },
  {
    "id": "enterprise",
    "name": "Enterprise",
    "usdPerSeatMonth": null,
    "priceLabel": "Custom",
    "billedHow": "Invoice / PO; pooled usage",
    "cursorModels": "Pooled (unpublished $)",
    "otherModels": "Pooled (unpublished $) plus $0.25/M Cursor Token Rate",
    "legacy": false
  },
  {
    "id": "hobby",
    "name": "Hobby (legacy)",
    "usdPerSeatMonth": 0,
    "priceLabel": "Free",
    "billedHow": "Per account",
    "cursorModels": "Limited (unpublished $)",
    "otherModels": "Limited (unpublished $)",
    "legacy": true
  },
  {
    "id": "start",
    "name": "Start (India, legacy)",
    "usdPerSeatMonth": null,
    "priceLabel": "₹649/mo, tax inclusive",
    "billedHow": "Per account",
    "cursorModels": "Monthly Cursor Models pool (unpublished $). Grok fixed at medium effort, standard speed.",
    "otherModels": "Not included",
    "legacy": true
  },
  {
    "id": "pro",
    "name": "Pro (legacy)",
    "usdPerSeatMonth": 20,
    "priceLabel": "$20/mo",
    "billedHow": "Per account",
    "cursorModels": "Monthly Cursor Models pool (unpublished $). Grok Fast is the default speed.",
    "otherModels": "Monthly Other Models pool (unpublished $)",
    "legacy": true
  },
  {
    "id": "proPlus",
    "name": "Pro Plus (legacy)",
    "usdPerSeatMonth": 60,
    "priceLabel": "$60/mo",
    "billedHow": "Per account",
    "cursorModels": "Monthly Cursor Models pool (unpublished $)",
    "otherModels": "Monthly Other Models pool (unpublished $)",
    "legacy": true
  },
  {
    "id": "ultraLegacy",
    "name": "Ultra (legacy)",
    "usdPerSeatMonth": 200,
    "priceLabel": "$200/mo",
    "billedHow": "Per account",
    "cursorModels": "Monthly Cursor Models pool (unpublished $)",
    "otherModels": "Monthly Other Models pool (unpublished $)",
    "legacy": true
  },
  {
    "id": "teamsStandard",
    "name": "Teams Standard (legacy)",
    "usdPerSeatMonth": 40,
    "priceLabel": "$40/user/mo",
    "billedHow": "Per active paid seat",
    "cursorModels": "Monthly per-seat allowance (unpublished $)",
    "otherModels": "Monthly per-seat allowance (unpublished $) plus $0.25/M; on-demand billed in arrears",
    "legacy": true
  },
  {
    "id": "teamsPremiumLegacy",
    "name": "Teams Premium (legacy)",
    "usdPerSeatMonth": 120,
    "priceLabel": "$120/user/mo",
    "billedHow": "Per active paid seat",
    "cursorModels": "5× the Standard allowance (unpublished $)",
    "otherModels": "5× the Standard allowance (unpublished $) plus $0.25/M; on-demand billed in arrears",
    "legacy": true
  },
  {
    "id": "unpaidAdmin",
    "name": "Unpaid Admin (legacy Teams)",
    "usdPerSeatMonth": 0,
    "priceLabel": "$0/user/mo",
    "billedHow": "Free admin seat",
    "cursorModels": "Not stated on the live page",
    "otherModels": "Not stated on the live page",
    "legacy": true
  }
];

const SEATS = {
  "retrieved": "2026-11-27",
  "caption": "Monthly Cursor licence floor for representative team sizes. Cursor now sells new subscriptions as The X Subscription (Free, Plus, Premium, Super, Ultra, Teams seats, Enterprise); Pro, Pro+, and Teams Standard and Premium are legacy plans kept by existing subscribers. A new seat buys a weekly pool for Cursor models only, sized as a multiple of Plus rather than a published dollar figure.",
  "sources": [
    {
      "label": "Cursor pricing",
      "href": "https://cursor.com/pricing"
    },
    {
      "label": "Models & Pricing",
      "href": "https://cursor.com/docs/models-and-pricing"
    },
    {
      "label": "Team pricing",
      "href": "https://cursor.com/docs/account/teams/pricing"
    },
    {
      "label": "Help: pricing and plans",
      "href": "https://cursor.com/help/account-and-billing/pricing"
    },
    {
      "label": "Help: usage and limits",
      "href": "https://cursor.com/help/models-and-usage/usage-limits"
    }
  ],
  "unpublished": [
    "Dollar size of the weekly Cursor-model pool on any plan. Pages give only multiples of Plus (Premium 4×, Super 15×, Ultra 50×; Teams Super 3.75× and Ultra 12.5× a Premium seat).",
    "Dollar size of the included Other Models pool on legacy Pro, Pro+, Ultra, and legacy Teams.",
    "Enterprise list price (custom). Volume discounts unpublished (contact enterprise@cursor.com).",
    "Yearly Teams seat price (yearly dollars are published for individual plans only).",
    "USD equivalent of legacy Start ₹649 (priced in INR, tax inclusive).",
    "Free plan included usage in dollars (pages say limited).",
    "The old usage guidance (daily Agent typically $60–$100/mo; power users $200+/mo) is no longer on the live pages."
  ],
  "notes": [
    "Prices exclude tax, except legacy Start (₹649/mo tax inclusive). Annual billing for individuals: Plus $80, Premium $300, Super $1,000, Ultra $2,000 a year.",
    "Third-party models (Claude, GPT) are not included on any new plan. Premium and up pay the API list price from prepaid credit, with spending caps; Plus and Free cannot use them.",
    "Teams bill per active paid seat; seat tiers can be mixed; Plus is not available for teams. Each paid seat has its own weekly pool, not shared. Free seats have no team allowance. Third-party usage, and Cursor-model usage past a seat’s pool, come out of a shared prepaid team balance capped by a monthly limit.",
    "Teams and Enterprise add a $0.25/M Cursor Token Rate on third-party input, output, and cached tokens. Exempt: Cursor models (Grok, Composer), Cost mode, and third-party models whose cache read is under $0.10/M on every tier (e.g. GPT-5.6 Luna, Claude Haiku 5.5).",
    "Legacy plans keep two monthly pools (Cursor Models and Other Models) and on-demand usage billed in arrears. Switching to The X Subscription is optional and permanent."
  ],
  "picks": {
    "peak": {
      "title": "Peak included usage",
      "model": "Ultra ($200/mo) or a Teams Ultra seat ($200/user)",
      "why": "Ultra is 50× Plus for 25× the price, the most pool per dollar of any published plan, plus earliest access to models. A Teams Ultra seat is 12.5× a Premium seat. Neither includes Claude or GPT: those still bill at API list price from prepaid credit. Enterprise list $ is unpublished."
    },
    "value": {
      "title": "Daily agents without Ultra",
      "model": "Super ($100) or Premium ($30)",
      "why": "Cursor recommends Super for daily Agent users (15× Plus) and Premium for new Agent users (4× Plus). Teams seats cost the same as the individual tiers and add shared billing, spend limits, and the $0.25/M token rate on Claude and GPT. Spend the weekly pool on Grok 4.7; budget Claude or GPT separately."
    },
    "budget": {
      "title": "Lowest published paid seat",
      "model": "Plus ($8/mo) or Free",
      "why": "Plus is Grok-only at medium effort with Fast off, and cannot use Claude or GPT at all. Premium ($30) is the cheapest plan that can buy third-party models. Legacy Pro ($20) still includes an Other Models pool for existing subscribers; switching to The X Subscription is permanent."
    }
  },
  "statIds": [
    "plus",
    "teamsPremium",
    "teamsSuper",
    "teamsUltra"
  ],
  "tableHeaders": [
    "Plan",
    "List price",
    "Billed",
    "Cursor models (Grok, Composer)",
    "Third-party (Claude, GPT)"
  ],
  "chartCaption": "USD per month at published monthly list rates, exclusive of tax. Individual plans are N separate accounts, not a pooled team. Free seats, Enterprise (custom), and legacy plans are omitted. Source: cursor.com/pricing and Cursor team-pricing docs, retrieved ",
  "vsCaption": "How the monthly licence floor sits next to per-task token estimates, if the seat fee were spent at list rates. On new plans only Grok and Composer draw on the seat’s pool; Claude and GPT bill from prepaid credit on top, so their columns show how far the same dollars would go, not included usage. Heavy software uses published CursorBench 4.1 $/task. Teams Token Rate not applied.",
  "vsCompareIds": [
    "grok47",
    "grok47fast",
    "opus55",
    "haiku55",
    "fable52"
  ]
};

const BENCHES = {
  "cursorbench": {
    "name": "CursorBench 4.1",
    "date": "2026-11-18",
    "retrieved": "2026-11-27",
    "source": "https://cursor.com/cursorbench",
    "caption": "Suite updated 18 Nov 2026 (instruction-following tasks modified, agent time limit raised), so scores are not comparable point-for-point with 4.0. Retrieved 27 Nov 2026. Each bar is the model’s top published effort: Max, or Extra High for Grok. Terra, Luna, and Fable 5.1 are not on 4.1. Gemini 4 Neon Extra High (65.4%) leads the full table but is outside this report’s scope."
  },
  "swePro": {
    "name": "SWE-bench Pro",
    "date": "2026-11-23",
    "retrieved": "2026-11-27",
    "source": "https://benchlm.ai/benchmarks/swe-bench-pro",
    "caption": "Leaderboard last updated 23 Nov 2026; retrieved 27 Nov 2026. Grok 4.6, Grok 4.7, and Haiku 5.5 are not listed (Grok 4.5 is). BenchLM notes an OpenAI July 2026 audit estimating about 30% of the public split is broken, and that no result has an independently documented run.",
    "categories": [
      "Fable 5.2",
      "Opus 5.5",
      "Sonnet 5.5",
      "Fable 5.1",
      "Opus 5",
      "Grok 4.5",
      "Sol",
      "Terra",
      "Luna"
    ],
    "data": [
      93,
      89.9,
      81.3,
      81.2,
      79.2,
      64.7,
      64.6,
      63.4,
      62.7
    ]
  },
  "eqElo": {
    "name": "EQ-Bench Creative Writing v3 Elo",
    "date": "2026-10-30",
    "retrieved": "2026-11-27",
    "source": "https://atlas.village.dev/benchmarks/creative-writing-v3-elo",
    "caption": "Benchmark Atlas (moved from atlas.kevinhu.io to atlas.village.dev) mirrors the official Creative Writing v3 leaderboard snapshot of 30 Oct 2026; retrieved 27 Nov 2026. eqbench.com renders its table in JavaScript and could not be read directly. Fable 5.2, Sonnet 5.5, Haiku 5.5, and Grok 4.6 are unlisted. GPT-6 Astra (2,177) and GPT-6 Sol (2,126) are not in Cursor."
  },
  "gdpval": {
    "name": "GDPval-AA v2",
    "date": "2026-09",
    "retrieved": "2026-11-27",
    "source": "https://www.anthropic.com/claude-fable-and-mythos-5-1",
    "caption": "Knowledge work, not trading PnL. GDPval-AA v2 from Anthropic’s Fable 5.1 page (Sep 2026). Anthropic’s Fable 5.2 page (9 Nov 2026) reports AA-Briefcase v1.1 instead of GDPval: rubric Fable 5.2 66.1%, Fable 5.1 61.5%, Opus 5.5 61.2%, GPT-6 Astra 52.0%. FrontierFinance (Fable 5.1 55.9% vs Fable 5 49.2%, from a customer quote) is still the only published finance score; nothing comparable exists for Fable 5.2, Opus 5.5, Sol, or Grok.",
    "categories": [
      "Fable 5.1",
      "Fable 5",
      "Opus 5",
      "Sol"
    ],
    "data": [
      1853,
      1723,
      1824,
      1711
    ]
  }
};

const DEFAULTS: string[][] = [
  [
    "Hardest coding in Cursor",
    "Opus 5.5 High ($3.87, 54.5%), or Grok 4.7 Extra High while your weekly pool lasts",
    "Opus 5.5 Max ($11.88, 58.1%) or Fable 5.2 Extra High ($17.84, 58.8%)",
    "Fable 5.2 Max ($48.11 for 61.3%) unless the last few points matter"
  ],
  [
    "Licence floor for a team",
    "Teams Premium seat ($30/user)",
    "Teams Super seat ($100/user) for daily agent users",
    "Assuming any new seat includes Claude or GPT (none do)"
  ],
  [
    "Daily software, included usage",
    "Grok 4.7 (weekly Cursor-model pool)",
    "Haiku 5.5 Extra High ($0.56, 45.2%), then Opus 5.5 High ($3.87)",
    "Opus 4.7 Fast ($30 / $150)"
  ],
  [
    "Trading research quality",
    "Fable 5.2 for the names that matter, or hidden Fable 5.1 for its published finance score",
    "Opus 5.5 if you cannot opt in to Fable data retention",
    "Using Haiku or Luna as your only analyst"
  ],
  [
    "Literary / voice-heavy writing",
    "Claude Fable 5.1 (hidden; enable it) on this Atlas snapshot",
    "Opus 5.5 or Grok 4.7 for a cheaper strong pass",
    "Treating GPT-6 Astra as selectable in Cursor"
  ],
  [
    "Lowest bill, good enough",
    "Claude Haiku 5.5 or GPT-5.6 Luna",
    "Grok 4.7 Medium in the pool, or Sonnet 5.5 High ($1.41, 43.8%)",
    "Fable on every autocomplete-sized ask"
  ]
];

const LINKS: SourceLink[] = [
  {
    "label": "Cursor Models & Pricing",
    "href": "https://cursor.com/docs/models-and-pricing"
  },
  {
    "label": "Cursor pricing",
    "href": "https://cursor.com/pricing"
  },
  {
    "label": "Cursor model table",
    "href": "https://cursor.com/docs"
  },
  {
    "label": "CursorBench 4.1",
    "href": "https://cursor.com/cursorbench"
  },
  {
    "label": "Anthropic models",
    "href": "https://platform.claude.com/docs/en/models/overview"
  },
  {
    "label": "Fable 5.2",
    "href": "https://www.anthropic.com/claude-fable-and-mythos-5-2"
  },
  {
    "label": "Fable 5.1",
    "href": "https://www.anthropic.com/claude-fable-and-mythos-5-1"
  },
  {
    "label": "xAI pricing",
    "href": "https://docs.x.ai/developers/pricing"
  },
  {
    "label": "OpenAI models",
    "href": "https://developers.openai.com/api/docs/models"
  },
  {
    "label": "OpenAI API pricing",
    "href": "https://developers.openai.com/api/docs/pricing"
  },
  {
    "label": "Team pricing",
    "href": "https://cursor.com/docs/account/teams/pricing"
  },
  {
    "label": "Grok 4.7",
    "href": "https://cursor.com/docs/models/grok-4-7"
  },
  {
    "label": "Claude Fable 5.2",
    "href": "https://cursor.com/docs/models/claude-fable-5-2"
  },
  {
    "label": "Claude Opus 5.5",
    "href": "https://cursor.com/docs/models/claude-opus-5-5"
  },
  {
    "label": "Claude Haiku 5.5",
    "href": "https://cursor.com/docs/models/claude-haiku-5-5"
  },
  {
    "label": "SWE-bench Pro",
    "href": "https://benchlm.ai/benchmarks/swe-bench-pro"
  },
  {
    "label": "EQ-Bench Atlas CW v3",
    "href": "https://atlas.village.dev/benchmarks/creative-writing-v3-elo"
  }
];

// END GENERATED

const TASKS: { id: TaskId; label: string }[] = [
  { id: "trading", label: "Stock & trading" },
  { id: "software", label: "Software development" },
  { id: "writing", label: "Creative writing" },
];

const INTENSITIES: { id: Intensity; label: string }[] = [
  { id: "light", label: "Light" },
  { id: "standard", label: "Standard" },
  { id: "heavy", label: "Heavy" },
];

const SLOTS: { id: Slot; label: string; active: boolean }[] = [
  { id: "peak", label: "Peak", active: true },
  { id: "value", label: "Value", active: true },
  { id: "budget", label: "Budget", active: false },
];

const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

function shortDate(iso: string): string {
  const [y, m, d] = iso.split("-");
  if (!d) return iso;
  return `${Number(d)} ${MONTHS[Number(m) - 1]} ${y}`;
}

function usd(n: number): string {
  if (!Number.isFinite(n)) return "—";
  if (n === 0) return "$0.00";
  if (n < 0.01) return `$${n.toFixed(4)}`;
  if (n < 1) return `$${n.toFixed(3)}`;
  return `$${n.toFixed(2)}`;
}

function money(n: number): string {
  return `$${n.toLocaleString("en-US")}`;
}

/** Teams Cursor Token Rate: third-party rows only, unless the snapshot marks the row exempt. */
function tokenRateApplies(model: CompareModel): boolean {
  return model.pool === "other" && !model.tokenRateExempt;
}

/** Some rows (e.g. Haiku 5.5) bill a flat multiple once a request passes an input threshold. */
function longCtxMult(model: CompareModel, scenario: Scenario): number {
  if (!model.longCtxOverK || !model.longCtxMult) return 1;
  return scenario.input + scenario.cache > model.longCtxOverK * 1000 ? model.longCtxMult : 1;
}

function tokenCost(
  model: CompareModel,
  scenario: Scenario,
  teamsRate: boolean,
  publishedHeavySoftware: boolean,
): number {
  const extra =
    teamsRate && tokenRateApplies(model)
      ? ((scenario.input + scenario.output + scenario.cache) / 1_000_000) * 0.25
      : 0;
  if (publishedHeavySoftware && model.cursorbenchUsd != null) {
    return model.cursorbenchUsd + extra;
  }
  const base =
    (scenario.input / 1_000_000) * model.input +
    (scenario.output / 1_000_000) * model.output +
    (scenario.cache / 1_000_000) * model.cacheRead;
  return base * longCtxMult(model, scenario) + extra;
}

function vendorLabel(v: Vendor): string {
  if (v === "Grok") return "Cursor / SpaceXAI";
  return v;
}

function ctxLabel(m: CompareModel): string {
  if (m.ctxMaxK <= m.ctxK) return `${m.ctxK}k`;
  const max = m.ctxMaxK >= 1000 ? `${m.ctxMaxK / 1000}M` : `${m.ctxMaxK}k`;
  return `${m.ctxK}k / ${max}`;
}

function tasksPerSeat(seatUsd: number, taskUsd: number): string {
  if (!Number.isFinite(seatUsd) || !Number.isFinite(taskUsd) || taskUsd <= 0) {
    return "—";
  }
  const n = seatUsd / taskUsd;
  if (n >= 100) return String(Math.round(n));
  if (n >= 10) return n.toFixed(0);
  return n.toFixed(1);
}

function isGrokFast(m: CompareModel): boolean {
  return m.vendor === "Grok" && /fast$/i.test(m.id);
}

const GROK_STD = COMPARE.find((m) => m.vendor === "Grok" && !isGrokFast(m));
const GROK_FAST = COMPARE.find((m) => isGrokFast(m));

export default function CursorModelsReport() {
  const [task, setTask] = useCanvasState<TaskId>("task", "software");
  const [intensity, setIntensity] = useCanvasState<Intensity>(
    "intensity",
    "standard",
  );
  const [teams, setTeams] = useCanvasState<string>("teams", "individual");
  const [speed, setSpeed] = useCanvasState<string>("speed", "standard");
  const [seatSize, setSeatSize] = useCanvasState<number>("seatSize", 10);

  const cb = BENCHES.cursorbench;
  const teamsRate = teams === "teams";
  const scenario = SCENARIOS[task][intensity];
  const publishedHeavySoftware = task === "software" && intensity === "heavy";

  const models = useMemo(() => {
    const hide = speed === "fast" ? GROK_STD?.id : GROK_FAST?.id;
    return COMPARE.filter((m) => m.id !== hide);
  }, [speed]);

  const costs = useMemo(() => {
    return models.map((m) => ({
      model: m,
      usd: tokenCost(m, scenario, teamsRate, publishedHeavySoftware),
    }));
  }, [models, scenario, teamsRate, publishedHeavySoftware]);

  const cheapest = costs.reduce((a, b) => (a.usd <= b.usd ? a : b));
  const dearest = costs.reduce((a, b) => (a.usd >= b.usd ? a : b));
  const pick = PICKS[task];

  const costCategories = costs.map((c) => c.model.short);
  const costSeries = costs.map((c) => Number(c.usd.toFixed(4)));

  const benchModels = COMPARE.filter((m) => m.cursorbench != null && !isGrokFast(m));
  const benchTop = Math.max(...benchModels.map((m) => m.cursorbench ?? 0), 0);
  const benchYMax = Math.max(60, Math.ceil(benchTop / 10) * 10);
  const eloModels = COMPARE.filter((m) => m.eqElo != null && !isGrokFast(m));
  const glance = COMPARE.filter((m) => !isGrokFast(m));

  const cheapestList = CATALOG.reduce((a, b) => (a.input <= b.input ? a : b));
  const dearestList = CATALOG.reduce((a, b) => (a.output >= b.output ? a : b));

  const monthFormula = useMemo(() => {
    const coding = SCENARIOS.software.standard;
    const memo = SCENARIOS.trading.standard;
    const story = SCENARIOS.writing.standard;
    return models.map((m) => {
      const code = tokenCost(m, coding, teamsRate, false) * 20;
      const trade = tokenCost(m, memo, teamsRate, false) * 8;
      const write = tokenCost(m, story, teamsRate, false) * 4;
      return { short: m.short, total: code + trade + write, code, trade, write };
    });
  }, [models, teamsRate]);

  const monthHard = useMemo(() => {
    return models
      .filter((m) => m.cursorbenchUsd != null)
      .map((m) => ({
        short: m.short,
        total: (m.cursorbenchUsd ?? 0) * 20,
      }));
  }, [models]);

  const hardPeak = COMPARE.filter((m) => m.cursorbenchUsd != null && !isGrokFast(m)).reduce(
    (a, b) => ((a.cursorbench ?? 0) >= (b.cursorbench ?? 0) ? a : b),
  );
  const monthRead =
    SNAPSHOT.monthReadLead +
    ` ${hardPeak.short} at 20 hard tasks is about $${((hardPeak.cursorbenchUsd ?? 0) * 20).toFixed(0)}.` +
    (GROK_STD && GROK_STD.cursorbenchUsd != null
      ? ` ${GROK_STD.short} Extra High is about $${(GROK_STD.cursorbenchUsd * 20).toFixed(0)}.`
      : "");

  const fastWhere = SNAPSHOT.grokFastDefault.where;
  const grokNote =
    speed === "fast" && GROK_FAST
      ? `${GROK_FAST.name} is the default speed on ${fastWhere} ($${GROK_FAST.input} / $${GROK_FAST.output}). Charts use that rate.`
      : `Charts use ${GROK_STD?.name ?? "Grok"} standard speed ($${GROK_STD?.input} / $${GROK_STD?.output}). On ${fastWhere}, Fast is the default — switch speed above if that is how you actually run.`;

  const ctxCaption = GROK_STD
    ? `Source: Cursor docs model table. ${GROK_STD.short} default ${GROK_STD.ctxK}k, max ${GROK_STD.ctxMaxK}k (long context 2× above 256k; Fast long context 3× standard). GPT-5.6 max 1M with a price bump after 272k.`
    : "Source: Cursor docs model table.";

  const chartSeatPlans = SEAT_PLANS.filter((p) => !p.legacy && (p.usdPerSeatMonth ?? 0) > 0);
  const statPlans = SEATS.statIds
    .map((id) => SEAT_PLANS.find((p) => p.id === id))
    .filter((p): p is SeatPlan => p != null);
  const vsSeatModels = SEATS.vsCompareIds
    .map((id) => COMPARE.find((m) => m.id === id))
    .filter((m): m is CompareModel => m != null);
  const vsHardModels = vsSeatModels.filter(
    (m) => m.cursorbenchUsd != null && !isGrokFast(m),
  );
  const standardSoftware = SCENARIOS.software.standard;

  return (
    <Stack gap={28}>
      <Stack gap={8}>
        <H1>Cursor models: Grok, Anthropic, OpenAI</H1>
        <Text tone="secondary">
          Snapshot for {shortDate(SNAPSHOT.asOf)}. Prices, seats, and context
          windows are Cursor’s published list rates. Quality numbers are public
          benches, not the author’s opinion. “Best” here means best fit for a
          stated goal — peak score, score per dollar, or lowest bill — not a
          single winner.
        </Text>
        <Text size="small" tone="tertiary">
          Sources:{" "}
          {LINKS.map((l, i) => (
            <span key={l.href}>
              {i > 0 ? " · " : ""}
              <Link href={l.href}>{l.label}</Link>
            </span>
          ))}
        </Text>
      </Stack>

      <Callout tone="warning" title="What this is not">
        These models are not licensed investment advisers. CursorBench and
        SWE-bench measure coding agents, not stock picking. Creative-writing Elo
        is a judged-prose contest, not a sales metric. Token math below is a
        bill estimate from published rates; your actual Cursor usage includes
        system prompt, tool traces, retries, and (on Teams/Enterprise) a $0.25/M
        Cursor Token Rate on third-party models.
      </Callout>

      <Grid columns={4} gap={16}>
        <Stat value={String(CATALOG.length)} label="Grok + Claude + GPT rows in Cursor" />
        <Stat
          value={`$${cheapestList.input} / $${cheapestList.output}`}
          label={`Cheapest list (${cheapestList.name})`}
        />
        <Stat
          value={`$${dearestList.input} / $${dearestList.output}`}
          label={`Dearest list (${dearestList.name})`}
        />
        <Stat value="1M" label="Max context on current flagships" />
      </Grid>

      <H2>How Cursor charges you</H2>
      <Text>{SNAPSHOT.poolsIntro}</Text>
      <Grid columns={3} gap={16}>
        <Card>
          <CardHeader>Cursor Models pool</CardHeader>
          <CardBody>
            <Text>{SNAPSHOT.cursorPoolCard}</Text>
          </CardBody>
        </Card>
        <Card>
          <CardHeader>Other Models pool</CardHeader>
          <CardBody>
            <Text>{SNAPSHOT.otherPoolCard}</Text>
          </CardBody>
        </Card>
        <Card>
          <CardHeader>Seat vs tokens</CardHeader>
          <CardBody>
            <Text>{SNAPSHOT.seatVsCard}</Text>
          </CardBody>
        </Card>
      </Grid>

      <H2>Cost per developer licence</H2>
      <Text>{SEATS.caption}</Text>
      <Text size="small" tone="tertiary">
        Sources retrieved {shortDate(SEATS.retrieved)}:{" "}
        {SEATS.sources.map((l, i) => (
          <span key={l.href}>
            {i > 0 ? " · " : ""}
            <Link href={l.href}>{l.label}</Link>
          </span>
        ))}
      </Text>
      <Row gap={8} wrap>
        {TEAM_SIZES.map((size) => (
          <span key={size}>
            <Pill active={seatSize === size} onClick={() => setSeatSize(size)}>
              {size === 1 ? "1 developer" : `${size} developers`}
            </Pill>
          </span>
        ))}
      </Row>
      <Grid columns={4} gap={16}>
        {statPlans.map((p) => (
          <Stat
            key={p.id}
            value={money((p.usdPerSeatMonth ?? 0) * seatSize)}
            label={`${seatSize} × ${p.name} ($${p.usdPerSeatMonth})`}
          />
        ))}
      </Grid>
      <Stack gap={8}>
        <H3>Monthly USD for this headcount</H3>
        <BarChart
          categories={chartSeatPlans.map((p) => p.name.replace(/ seat$/, ""))}
          series={[
            {
              name: `Monthly USD for ${seatSize} developer licence(s)`,
              data: chartSeatPlans.map((p) => (p.usdPerSeatMonth ?? 0) * seatSize),
            },
          ]}
          horizontal
          height={260}
          valuePrefix="$"
          showValues
        />
        <Text size="small" tone="tertiary">
          {SEATS.chartCaption}
          {SEATS.retrieved}.
        </Text>
      </Stack>
      <Grid columns={3} gap={16}>
        {SLOTS.map((slot) => (
          <Card key={slot.id}>
            <CardHeader trailing={<Pill size="sm" active={slot.active}>{slot.label}</Pill>}>
              {SEATS.picks[slot.id].model}
            </CardHeader>
            <CardBody>
              <Stack gap={8}>
                <Text weight="semibold">{SEATS.picks[slot.id].title}</Text>
                <Text>{SEATS.picks[slot.id].why}</Text>
              </Stack>
            </CardBody>
          </Card>
        ))}
      </Grid>
      <H3>Published plans</H3>
      <Table
        headers={SEATS.tableHeaders}
        rows={SEAT_PLANS.map((p) => [
          p.name,
          p.priceLabel,
          p.billedHow,
          p.cursorModels,
          p.otherModels,
        ])}
        striped
        stickyHeader
      />
      <H3>Licence floor for 1 / 5 / 10 / 25 / 50 developers</H3>
      <Table
        headers={["Developers", ...chartSeatPlans.map((p) => p.name)]}
        columnAlign={["right" as const, ...chartSeatPlans.map(() => "right" as const)]}
        rows={TEAM_SIZES.map((size) => [
          String(size),
          ...chartSeatPlans.map((p) => money((p.usdPerSeatMonth ?? 0) * size)),
        ])}
        striped
        stickyHeader
      />
      <H3>How that floor sits next to per-task token estimates</H3>
      <Text tone="secondary">{SEATS.vsCaption}</Text>
      <Table
        headers={[
          `Plan / ${seatSize} seats`,
          "$ / mo",
          ...vsSeatModels.map((m) => `${m.short} std`),
          ...vsHardModels.map((m) => `${m.short} hard`),
        ]}
        columnAlign={[
          "left" as const,
          "right" as const,
          ...vsSeatModels.map(() => "right" as const),
          ...vsHardModels.map(() => "right" as const),
        ]}
        rows={chartSeatPlans.map((p) => {
          const seat = (p.usdPerSeatMonth ?? 0) * seatSize;
          return [
            p.name,
            money(seat),
            ...vsSeatModels.map((m) =>
              tasksPerSeat(seat, tokenCost(m, standardSoftware, false, false)),
            ),
            ...vsHardModels.map((m) => tasksPerSeat(seat, m.cursorbenchUsd ?? 0)),
          ];
        })}
        striped
        stickyHeader
      />
      <Callout
        tone="neutral"
        title={`Unpublished on live Cursor pages (${shortDate(SEATS.retrieved)})`}
      >
        {[...SEATS.unpublished, ...SEATS.notes].join(" ")}
      </Callout>

      <H2>Pick a task, then a bill</H2>
      <Text>
        Choose a job and a size. The chart is the estimated USD for that one
        job at published Cursor rates. Heavy software uses Cursor’s own{" "}
        {cb.name} cost-per-task where they published one.
      </Text>
      <Row gap={8} wrap>
        {TASKS.map((t) => (
          <span key={t.id}>
            <Pill active={task === t.id} onClick={() => setTask(t.id)}>
              {t.label}
            </Pill>
          </span>
        ))}
      </Row>
      <Row gap={8} wrap>
        {INTENSITIES.map((i) => (
          <span key={i.id}>
            <Pill
              active={intensity === i.id}
              onClick={() => setIntensity(i.id)}
            >
              {i.label}
            </Pill>
          </span>
        ))}
      </Row>
      <Row gap={16} wrap align="center">
        <Text size="small" tone="secondary">
          Grok speed
        </Text>
        <Select
          value={speed}
          onChange={setSpeed}
          options={[
            {
              value: "standard",
              label: `${GROK_STD?.name ?? "Grok"} standard ($${GROK_STD?.input} / $${GROK_STD?.output})`,
            },
            {
              value: "fast",
              label: `${GROK_FAST?.name ?? "Grok Fast"} ($${GROK_FAST?.input} / $${GROK_FAST?.output}, ${SNAPSHOT.grokFastDefault.short})`,
            },
          ]}
        />
        <Text size="small" tone="secondary">
          Plan surcharge
        </Text>
        <Select
          value={teams}
          onChange={setTeams}
          options={[
            { value: "individual", label: "Individual (no extra token rate)" },
            { value: "teams", label: "Teams/Enterprise (+$0.25/M on Claude & GPT)" },
          ]}
        />
      </Row>
      <Text weight="semibold">{scenario.label}</Text>
      <Text tone="secondary">{scenario.blurb}</Text>
      <Text size="small" tone="tertiary">
        {grokNote} Token mix: {scenario.input.toLocaleString()} input ·{" "}
        {scenario.output.toLocaleString()} output · {scenario.cache.toLocaleString()}{" "}
        cache-read.
        {publishedHeavySoftware
          ? ` Heavy software bills use published ${cb.name} $/task.`
          : ""}
      </Text>

      <Grid columns={3} gap={16}>
        <Stat value={usd(cheapest.usd)} label={`Cheapest: ${cheapest.model.short}`} tone="success" />
        <Stat value={usd(dearest.usd)} label={`Most expensive: ${dearest.model.short}`} tone="warning" />
        <Stat
          value={
            cheapest.usd > 0 ? `${(dearest.usd / cheapest.usd).toFixed(0)}×` : "—"
          }
          label="Spread, dearest vs cheapest"
        />
      </Grid>

      <Stack gap={8}>
        <H3>Estimated USD for this one task</H3>
        <BarChart
          categories={costCategories}
          series={[{ name: "Estimated cost (USD)", data: costSeries }]}
          horizontal
          height={300}
          valuePrefix="$"
          showValues
        />
        <Text size="small" tone="tertiary">
          Source: Cursor list prices applied to the token mix above
          {publishedHeavySoftware
            ? `; heavy software uses ${cb.name} published $/task (${shortDate(cb.date)})`
            : ""}
          . Not a quote from your invoice.
        </Text>
      </Stack>

      <Grid columns={3} gap={16}>
        {SLOTS.map((slot) => (
          <Card key={slot.id}>
            <CardHeader trailing={<Pill size="sm" active={slot.active}>{slot.label}</Pill>}>
              {pick[slot.id].model}
            </CardHeader>
            <CardBody>
              <Stack gap={8}>
                <Text weight="semibold">{pick[slot.id].title}</Text>
                <Text>{pick[slot.id].why}</Text>
              </Stack>
            </CardBody>
          </Card>
        ))}
      </Grid>

      <Table
        headers={[
          "Model",
          "Vendor",
          "Est. $",
          "Input / 1M",
          "Output / 1M",
          "Context",
          "Fit for this task",
        ]}
        columnAlign={["left", "left", "right", "right", "right", "left", "left"]}
        striped
        rows={costs.map((c) => {
          const m = c.model;
          let fit = m.financeNote;
          if (task === "software") {
            fit =
              m.cursorbench != null
                ? `${cb.name} ${m.cursorbench}%${m.swePro != null ? ` · SWE-Pro ${m.swePro}%` : ""}`
                : `Not on ${cb.name}.${m.swePro != null ? ` SWE-Pro ${m.swePro}%.` : " Use for cheap extract / drafts."}`;
          } else if (task === "writing") {
            fit =
              m.eqElo != null
                ? `EQ-Bench CW v3 Elo ${m.eqElo.toLocaleString()}`
                : "No published writing Elo.";
          }
          return [
            m.name,
            vendorLabel(m.vendor),
            usd(c.usd),
            `$${m.input}`,
            `$${m.output}`,
            ctxLabel(m),
            fit,
          ];
        })}
      />

      <Divider />

      <H2>Software: measured quality vs measured bill</H2>
      <Text>
        {cb.name} (updated {shortDate(cb.date)}) grades ambiguous, multi-file
        work from real Cursor sessions. A 10-point gap is meaningful; 0.3
        points is noise.
      </Text>
      <Grid columns={2} gap={16}>
        <Stack gap={8}>
          <H3>{cb.name} score (%)</H3>
          <BarChart
            categories={benchModels.map((m) => m.short)}
            series={[
              {
                name: `${cb.name} score`,
                data: benchModels.map((m) => m.cursorbench ?? 0),
              },
            ]}
            horizontal
            height={260}
            valueSuffix="%"
            showValues
            yMax={benchYMax}
          />
          <Text size="small" tone="tertiary">
            Source: {cb.source} · {cb.caption}
          </Text>
        </Stack>
        <Stack gap={8}>
          <H3>USD per {cb.name} task</H3>
          <BarChart
            categories={benchModels.map((m) => m.short)}
            series={[
              {
                name: "Published $ / task",
                data: benchModels.map((m) => m.cursorbenchUsd ?? 0),
              },
            ]}
            horizontal
            height={260}
            valuePrefix="$"
            showValues
          />
          <Text size="small" tone="tertiary">
            Source: same {cb.name} table. Cost applies each model’s published
            input / cache / output rates to tokens actually used.
          </Text>
        </Stack>
      </Grid>

      <H3>SWE-bench Pro (public coding, not Cursor-specific)</H3>
      <BarChart
        categories={BENCHES.swePro.categories}
        series={[
          {
            name: "SWE-bench Pro (%)",
            data: BENCHES.swePro.data,
          },
        ]}
        height={220}
        valueSuffix="%"
        showValues
        yMax={100}
      />
      <Text size="small" tone="tertiary">
        {BENCHES.swePro.caption} Source: {BENCHES.swePro.source}
      </Text>

      <H2>Creative writing: judged prose, not agent score</H2>
      <Text>
        EQ-Bench Creative Writing v3 ranks short-form stories by pairwise Elo.
        Treat Elo as a writing taste test, not a Cursor coding rank.
      </Text>
      <BarChart
        categories={eloModels.map((m) => m.short)}
        series={[
          {
            name: "EQ-Bench Creative Writing v3 Elo",
            data: eloModels.map((m) => m.eqElo ?? 0),
          },
        ]}
        height={240}
        showValues
        beginAtZero={false}
        yMin={1500}
      />
      <Text size="small" tone="tertiary">
        {BENCHES.eqElo.caption}
      </Text>

      <H2>Stock and trading: what we can actually measure</H2>
      <Grid columns={2} gap={16}>
        <Stack gap={8}>
          <H3>Published finance / knowledge scores</H3>
          <BarChart
            categories={BENCHES.gdpval.categories}
            series={[
              {
                name: "GDPval-AA v2 (higher better)",
                data: BENCHES.gdpval.data,
              },
            ]}
            height={220}
            showValues
            beginAtZero={false}
            yMin={1650}
          />
          <Text size="small" tone="tertiary">
            {BENCHES.gdpval.caption}
          </Text>
        </Stack>
        <Stack gap={8}>
          <H3>What the numbers do not say</H3>
          <Text>{SNAPSHOT.tradingNote}</Text>
        </Stack>
      </Grid>

      <Divider />

      <H2>Price and context at a glance</H2>
      <Grid columns={2} gap={16}>
        <Stack gap={8}>
          <H3>List price per 1M tokens (USD)</H3>
          <BarChart
            categories={glance.map((m) => m.short)}
            series={[
              { name: "Input $ / 1M", data: glance.map((m) => m.input) },
              { name: "Output $ / 1M", data: glance.map((m) => m.output) },
            ]}
            height={260}
            valuePrefix="$"
          />
          <Text size="small" tone="tertiary">
            {SNAPSHOT.priceCaption}
          </Text>
        </Stack>
        <Stack gap={8}>
          <H3>Context window in Cursor (thousand tokens)</H3>
          <BarChart
            categories={glance.map((m) => m.short)}
            series={[
              { name: "Default context (k)", data: glance.map((m) => m.ctxK) },
              { name: "Max context (k)", data: glance.map((m) => m.ctxMaxK) },
            ]}
            height={260}
            valueSuffix="k"
          />
          <Text size="small" tone="tertiary">
            {ctxCaption}
          </Text>
        </Stack>
      </Grid>

      <H2>A mixed month in dollars</H2>
      <Text>
        Two pictures. The first is 20 standard features + 8 research memos + 4
        short stories using the token mixes above (formula). The second is 20
        hard {cb.name} tasks only — closer to a power-user coding month.
      </Text>
      <Grid columns={2} gap={16}>
        <Stack gap={8}>
          <H3>20 features + 8 memos + 4 stories (USD)</H3>
          <BarChart
            categories={monthFormula.map((m) => m.short)}
            series={[{ name: "Mixed month (USD)", data: monthFormula.map((m) => Number(m.total.toFixed(2))) }]}
            horizontal
            height={300}
            valuePrefix="$"
            showValues
          />
          <Text size="small" tone="tertiary">
            Formula from the Standard mixes in this report. Cache reads included
            on the coding slice. Excludes retries and Fast multipliers except
            Grok speed selected above.
          </Text>
        </Stack>
        <Stack gap={8}>
          <H3>20 {cb.name}-hard tasks (USD)</H3>
          <BarChart
            categories={monthHard.map((m) => m.short)}
            series={[{ name: "20 hard tasks (USD)", data: monthHard.map((m) => Number(m.total.toFixed(2))) }]}
            horizontal
            height={280}
            valuePrefix="$"
            showValues
          />
          <Text size="small" tone="tertiary">
            {SNAPSHOT.monthHardCaption}
          </Text>
        </Stack>
      </Grid>

      <Callout tone="info" title="How to read the two months">
        {monthRead}
      </Callout>

      <H2>Full catalog in Cursor today</H2>
      <Text>{SNAPSHOT.composerNote}</Text>
      <Text size="small" tone="tertiary">
        {SNAPSHOT.notInCursor.join(" ")}
      </Text>

      {(["Grok", "Anthropic", "OpenAI"] as Vendor[]).map((vendor) => {
        const rows = CATALOG.filter((r) => r.vendor === vendor);
        return (
          <div key={vendor}>
            <Card collapsible defaultOpen={vendor === "Grok"}>
              <CardHeader trailing={<Pill size="sm">{rows.length} models</Pill>}>
                {vendor === "Grok" ? "Grok (Cursor / SpaceXAI)" : vendor}
              </CardHeader>
              <CardBody>
                <Table
                  headers={[
                    "Model",
                    "Pool",
                    "In",
                    "Out",
                    "Cache read",
                    "Default ctx",
                    "Max ctx",
                    "Shown",
                    "Notes",
                  ]}
                  columnAlign={[
                    "left",
                    "left",
                    "right",
                    "right",
                    "right",
                    "right",
                    "right",
                    "left",
                    "left",
                  ]}
                  striped
                  stickyHeader
                  rows={rows.map((r) => [
                    r.name,
                    r.pool,
                    `$${r.input}`,
                    `$${r.output}`,
                    `$${r.cacheRead}`,
                    r.ctxDefault,
                    r.ctxMax,
                    r.visible ? "Yes" : "Hidden",
                    r.notes,
                  ])}
                />
              </CardBody>
            </Card>
          </div>
        );
      })}

      <H2>Practical defaults (no single winner)</H2>
      <Table
        headers={["If you care most about…", "Use this first", "Spend up to this", "Skip this"]}
        rows={DEFAULTS}
      />

      <Callout tone="neutral" title="Bias check">
        {SNAPSHOT.biasNote}
      </Callout>
    </Stack>
  );
}
