Skip to content

perf(briefs): Generate Briefs with the fast model - #2719

Merged
thomasjiangcy merged 1 commit into
mainfrom
feat/briefs-fast-model
Nov 5, 2026
Merged

thomasjiangcy merged 1 commit into
mainfrom
feat/briefs-fast-model

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Brief generation used the main model. Since getsentry/junior-prod#589 put every Turn on Opus 5.5, every Brief also runs on Opus. It costs about $363/week in production (4.4k calls, ~$0.11 each, ~21k input tokens).

The Opus prompt cache does not help here. Briefs run as a queued plugin task after the reply. They use their own system prompt and a JSON copy of the events, so they share no prefix with the Turn. The per-call cost matches uncached Opus pricing.

This change moves updateConversationBrief and the junior briefs run default to fastModelId (openai/gpt-6-luna by default). Before #589, production already wrote ~4.2k Briefs per week on luna for about $6. Luna's p50 latency and output length were close to Opus. Spot checks of recent luna and Opus Briefs show similar detail and caveats.

Follow-up, not in this PR: send only the events since the previous Brief's throughSeq instead of the whole history.

via @thomasjiangcy.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 5, 2026 6:32am UTC

Request Review

@thomasjiangcy
thomasjiangcy enabled auto-merge (squash) November 5, 2026 06:36
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

7 screenshot changes — 7 changed · 0 added · 0 removed

Review screenshots in Frameshift

Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Attachment · Mobile
Conversation Attachment · Mobile
Changed
Conversation Attachment Modal · Desktop
Conversation Attachment Modal · Desktop
Changed
Conversation Recalled Memories Popover · Desktop
Conversation Recalled Memories Popover · Desktop
Changed
Conversation Recalled Memories Popover · Mobile
Conversation Recalled Memories Popover · Mobile
Changed
Conversation Subagents · Desktop
Conversation Subagents · Desktop
Changed
Show 1 more changed screenshot
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

@thomasjiangcy
thomasjiangcy merged commit b456115 into main Nov 5, 2026
63 of 65 checks passed
@thomasjiangcy
thomasjiangcy deleted the feat/briefs-fast-model branch November 5, 2026 06:40

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 7ff7f08b Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant