Skip to content

feat: run gitdog on claude opus 5.5 with 2x quota weight - #29

Merged
hyochan merged 1 commit into
mainfrom
feat/model-catalog
Nov 17, 2026
Merged

hyochan merged 1 commit into
mainfrom
feat/model-catalog

Conversation

@hyochan

@hyochan hyochan commented Nov 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Gitdog's own generation runs on Claude Opus 5.5 at medium effort (was Sonnet 5.5 at high); the GPT-6.1 Sol fallback runs at high (was xhigh).
  • A CHAT_MODELS catalog prices every chat model and gives each a quota weight. Opus 5.5 ($4/$20) counts 2× against the user's tokens on Gitdog's key; Sol and the retired Sonnet count 1×. Usage on the owner's own key is never weighted or debited.
  • Reservations hold the highest routed weight (RESERVATION_QUOTA_WEIGHT) and store it; settlement charges min(model weight, reservation weight). A reservation made before this change keeps weight 1, so retries across the deploy still match its identity and are never charged more than they reserved.
  • Batched PR review holds scale with the weight (200K per batch).
  • A refusal fallback answer (Opus 5 / Opus 4.8, $5/$25), including later sticky turns, is recorded with servedModel and priced at that model; quota stays bound to the requested model.
  • Thinking is always on with Opus 5.5, so learning extraction and the generation QA check get larger maxTokens.
  • README now covers using Gitdog; development setup, commands and the tech stack moved to CONTRIBUTING.md. Docs, pricing copy (en/ko/ja), CLI reference and the e2e runner match the new behavior.

Verification

  • bun run lint, typecheck, build, test (2057 tests), format:check, check:api, typecheck:cli, test:cli, bun audit
  • New tests: weighted holds and charges, pre-weight reservations, Sol served under a 2× reservation, fallback pricing for known and unknown served models, sticky fallback turns
  • Independent Opus and Fable reviews: no billing blockers; their findings are addressed in this PR

🤖 Generated with Claude Code

Gitdog's own generation moves from Sonnet 5.5 to Opus 5.5 at medium
effort, and the Sol fallback runs at high effort. A model catalog prices
every chat model and gives Opus a quota weight of 2: reservations hold
the highest routed weight, settlement charges the lower of the model's
and the reservation's weight, and reservations made before weights keep
1x. Usage on the owner's own key is never weighted.

A refusal fallback is priced at the model that served it. The README now
covers using Gitdog; development material moved to CONTRIBUTING.md.
@gitdogai

gitdogai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Reviewed c85f630 · see the review

@hyochan hyochan left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 issues found while reviewing this change, all fixed in c85f630

Not a merge approval. Tests were not run. Gitdog

Comment thread convex/_ai/providers.ts Resolved
Comment thread e2e/runPrReview.ts Resolved
Comment thread convex/_ai/learning/extractLearning.ts Resolved
Comment thread docs/ai-models.md Resolved
@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit c85f630):

https://codeyou-df251--pr29-feat-model-catalog-xeirp5jo.web.app

(expires Tue, 24 Nov 2026 18:08:14 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 844dad9c62537d028cabc21008e4e2e4031ce4e5

@gitdogai gitdogai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found in c85f630

22 of 28 changed files were not fully reviewed.

Not a merge approval. Tests were not run. Gitdog

@hyochan
hyochan merged commit f485345 into main Nov 17, 2026
9 checks passed
@hyochan
hyochan deleted the feat/model-catalog branch November 17, 2026 18:09
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