Skip to content

chore(deps,session): bump dependencies and price the new model generation - #344

Merged
upsetbit merged 10 commits into
masterfrom
chore/deps-and-model-pricing
Nov 22, 2026
Merged

upsetbit merged 10 commits into
masterfrom
chore/deps-and-model-pricing

Conversation

@upsetbit

@upsetbit upsetbit commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Pricing catalog

USD per 1M tokens (input / output / cache read / cache write):

Model Rates Notes
claude-fable-5-2, claude-mythos-5-2 8 / 40 / 0.20 / 10 fast mode 2x; previously fell back to claude-fable-5 at 10 / 50 / 1.00
gpt-6.2-astra 8 / 40 / 0.40 / 10 Ultrafast 3x until March 1, 2027 Pacific time, then 6x; no Flex tier
gpt-6.2-sol 2 / 10 / 0.10 / 2.50 same rules as Astra
gpt-6.1-terra 1 / 5 / 0.05 / 1.25
gpt-6-cyber 20 / 100 / 2 / 25
gpt-6-rosalind 10 / 50 / 1 / 12.50
gemini-4-carbon 2 / 10 / 0.10 doubles on 2026-12-01, like gemini-4-argon
gemini-4-hydrogen 1.50 / 7.50 / 0.075
gemini-4-neon 3 / 15 / 0.15

Rule changes:

  • grok-4.7-build-fast (and any grok-4.7-*-fast id) is priced as grok-4.7 at Fast speed — 2x, or 1.5x in the long-context tier — instead of the standard rate. The mapping is an inference from xAI's "Grok 4.7 Fast" pricing, so the cost stays estimated.
  • The GPT-5.6 Sol promotion ends after 2026-11-30; the launch tariff returns on 2026-12-01. Requests on 2026-11-30 are estimated because OpenAI's page says "until November 30" without saying which tariff that day bills at.
  • gemini-2.5-pro and gemini-2.5-flash bill as gemini-3.8-flash and gemini-3.5-flash-lite from 2026-12-01, taking the target's tariff and processing rules. Variants matched by prefix keep their own tariff.
  • OpenAI cache writes from 2026-10-20 are estimated: 12-hour writes bill at twice the 30-minute rate and no source records the lifetime.
  • gemini-3.5-flash-lite Batch cache reads bill at $0.015; the $0.02 override is Flex only.

Still unpriced, by design: codex-auto-review and gpt-reserve have no public per-token price, and gemini-pro-agent has no documented mapping.

Sources: OpenAI, Anthropic, Gemini, xAI. Z.AI and Cursor have no changes.

Codex service tier

Codex writes the service tier (default, priority) in event_msg / thread_settings_applied and not on turn_context, so every Codex request was imported without a tier and priced at the standard rate. The importer treats the latest settings event as the default for the turns that follow: settings applied after a turn's first measured request wait for the next turn, and a tier, speed or region carried by a turn_context holds for that turn only.

session.ProjectionVersion is 15, so the next sync re-imports and re-pushes every session whose source file is still on disk. Sessions without a source keep projection 14, and prosa prune verifies the server copy against the local row's own projection so they stay prunable. Servers accept any version at or above the stored one, so an older server takes v15 pushes.

Codex costs still report estimated: the rollout does not record the inference region, which the GPT-5.4+ tariffs depend on.

Review

Reviewed by prosa-importer-reviewer, prosa-docs-reviewer and Codex (gpt-6.2-astra, max effort). Their findings are addressed in the fix(...) commits. One is left open: devbox.json pins pnpm@10.20 while packageManager is 12.16.1. Corepack selects 12.16.1 in the devbox shell and in CI, and nixpkgs carries pnpm 12.9.0 at most, so the pin cannot match exactly.

Test plan

  • just ci (tidy-check, gen-check, vet, lint, test-race, test-integration, build)
  • just quality (markdownlint, lychee, agnix, gitleaks)
  • Synced 1,513 real sessions into an isolated store: gpt-6.2-astra, gpt-6.2-sol and claude-fable-5-2 are priced, and Codex requests carry priority / default

🤖 Generated with Claude Code

upsetbit and others added 10 commits November 22, 2026 14:26
pnpm 12 reads overrides and build approvals from pnpm-workspace.yaml, so
the fast-uri and js-yaml pins and the agnix build approval live there.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Brings every direct and indirect module to its latest release. modernc.org/libc
and modernc.org/memory stay on the versions modernc.org/sqlite v1.63.0 pins.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Adds tariffs for claude-fable-5-2 / claude-mythos-5-2, gpt-6.2-astra,
gpt-6.2-sol, gpt-6.1-terra, gpt-6-cyber, gpt-6-rosalind, gemini-4-carbon,
gemini-4-hydrogen and gemini-4-neon, checked against the providers'
pricing pages on 2026-11-22.

Processing rules follow the same pages: Fable and Mythos 5.2 fast mode at
2x, GPT-6.2 Ultrafast at 3x until 2027-03-01 and 6x after, no Flex tier on
GPT-6.2, and a Fast variant named in a Grok model id (grok-4.7-build-fast)
billed at the Fast multiplier instead of the standard grok-4.7 rate.

Dated changes: the GPT-5.6 Sol promotion ends after 2026-11-30, with that
day estimated because OpenAI does not say which tariff it bills at, and
gemini-2.5-pro / gemini-2.5-flash bill as gemini-3.8-flash /
gemini-3.5-flash-lite from 2026-12-01.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codex records the service tier in thread_settings_applied events and no
longer on turn_context, so every Codex request was imported without a tier
and priced at the standard rate even when it ran on Priority (Fast).

The importer now takes the tier and provider from the latest settings
event and keeps them across turns; a turn_context only updates the billing
parameters it actually carries. Projection version 15 re-imports available
sources on the next sync.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- GPT-6.2 Ultrafast switches to 6x at March 1, 2027 Pacific time.
- OpenAI cache writes from 2026-10-20 are estimated: 12-hour writes bill
  at twice the 30-minute rate and sources record no lifetime.
- Gemini 2.5 redirects apply to the retiring ids only, so variants matched
  by prefix keep their own tariff.
- gemini-3.5-flash-lite Batch cache reads bill at half the standard rate;
  the $0.02 override is Flex only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Thread settings are the default for the turns that follow: a settings event
that arrives after a turn's first measured request waits for the next turn,
and a tier, speed or region carried by a turn_context ends with that turn.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A session whose source file is gone stays on the projection it was
imported at, on both the device and the server. Comparing the server copy
with the current importer version left those sessions unprunable after a
projection bump; the check now uses the local row's version.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@upsetbit
upsetbit merged commit 8c0f068 into master Nov 22, 2026
5 checks passed
@upsetbit
upsetbit deleted the chore/deps-and-model-pricing branch November 22, 2026 18:44
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