Skip to content

Switch desktop agent from Opus to Sonnet 4.6#6276

Merged
aaravgarg merged 2 commits into
mainfrom
atlas/desktop-agent-opus-to-sonnet
Apr 4, 2026
Merged

Switch desktop agent from Opus to Sonnet 4.6#6276
aaravgarg merged 2 commits into
mainfrom
atlas/desktop-agent-opus-to-sonnet

Conversation

@atlas-agent-omi
Copy link
Copy Markdown

One-line change: DEFAULT_MODEL in ACP bridge from claude-opus-4-6claude-sonnet-4-6.

Why: 16 desktop agent users burning $291/user/month on Opus. Projected $4.6K/month. Sonnet handles agentic tool use equally well.

Savings: ~$4.2K/month (~70% reduction on this key).

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 2, 2026

Greptile Summary

This PR swaps the DEFAULT_MODEL constant in the ACP bridge from claude-opus-4-6 to claude-sonnet-4-6, and removes the now-redundant SONNET_MODEL constant alongside its pre-warm entry. The change affects two code paths: the session pre-warm fallback list (line 596) and the per-query model resolution (line 681). Both are updated correctly and consistently.

Key changes:

  • DEFAULT_MODEL updated to "claude-sonnet-4-6" — all queries without an explicit msg.model will now route to Sonnet
  • SONNET_MODEL constant removed — it was only referenced in the pre-warm list, so removal is safe
  • Pre-warm list reduced from [DEFAULT_MODEL, SONNET_MODEL] (two sessions) to [DEFAULT_MODEL] (one session) — correct since Sonnet is now the single default
  • Clients that explicitly pass msg.model = "claude-opus-4-6" are unaffected; the fallback only applies when msg.model is absent

Issues found:

  • Minor: the replacement comment on line 582 describes the old SONNET_MODEL as an "Opus fallback," which reverses the actual relationship — both models were pre-warmed independently, not as fallbacks for each other

Confidence Score: 5/5

  • Safe to merge — the one-line model swap is correct and all usages of DEFAULT_MODEL are consistently updated.
  • The change is minimal and surgically correct: DEFAULT_MODEL is used in exactly two places (pre-warm fallback and query fallback) and both are handled by this PR. The removed SONNET_MODEL constant had no other references. The only finding is a P2 comment wording nit that doesn't affect runtime behavior.
  • No files require special attention.

Important Files Changed

Filename Overview
desktop/acp-bridge/src/index.ts Swaps DEFAULT_MODEL from claude-opus-4-6 to claude-sonnet-4-6 and removes the now-redundant SONNET_MODEL constant + its pre-warm entry. Both usages of DEFAULT_MODEL (pre-warm fallback and query fallback at line 681) are correctly updated. Minor comment wording issue on line 582.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Query arrives from Swift] --> B{msg.model set?}
    B -- Yes --> C[Use msg.model\ne.g. claude-opus-4-6]
    B -- No --> D[Use DEFAULT_MODEL\nclaude-sonnet-4-6]
    C --> E[resolveSession / session/new]
    D --> E
    E --> F[session/set_model]
    F --> G[session/prompt]

    H[preWarmSession called] --> I{sessionConfigs provided?}
    I -- Yes --> J[Warm configured sessions]
    I -- No --> K[Warm DEFAULT_MODEL only\nclaude-sonnet-4-6]
    J --> L[session/new + session/set_model]
    K --> L
Loading

Reviews (2): Last reviewed commit: "Fix Greptile: remove duplicate SONNET_MO..." | Re-trigger Greptile

Saves ~$4.2K/month on Anthropic costs. The ACP bridge already had
SONNET_MODEL defined — just changing the default.

16 desktop agent users were burning $291/user/month on Opus.
Sonnet 4.6 handles agentic tool use equally well at 5x lower cost.

Co-authored-by: Aarav Garg <aaravgarg@users.noreply.github.com>
@atlas-agent-omi
Copy link
Copy Markdown
Author

/review

- SONNET_MODEL was identical to DEFAULT_MODEL after Opus→Sonnet switch
- Pre-warm list was warming same model twice: [sonnet, sonnet]
- Now just [DEFAULT_MODEL] — single session, no orphaned duplicates

Co-authored-by: Aarav Garg <aaravgarg@users.noreply.github.com>
@atlas-agent-omi atlas-agent-omi Bot force-pushed the atlas/desktop-agent-opus-to-sonnet branch from 7fd2181 to 66e9b2a Compare April 2, 2026 07:54
@atlas-agent-omi
Copy link
Copy Markdown
Author

@greptileai

@aaravgarg aaravgarg requested a review from beastoin April 2, 2026 08:46
@aaravgarg aaravgarg merged commit 34ead62 into main Apr 4, 2026
3 checks passed
@aaravgarg aaravgarg deleted the atlas/desktop-agent-opus-to-sonnet branch April 4, 2026 09:46
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
One-line change: `DEFAULT_MODEL` in ACP bridge from `claude-opus-4-6` →
`claude-sonnet-4-6`.

**Why:** 16 desktop agent users burning $291/user/month on Opus.
Projected $4.6K/month. Sonnet handles agentic tool use equally well.

**Savings:** ~$4.2K/month (~70% reduction on this key).
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