[PR #1041] [CLOSED] feat(compact): use small model to summarize in /compact #9791

Closed
opened 2026-02-16 18:14:10 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1041
Author: @timoclsn
Created: 7/16/2025
Status: Closed

Base: devHead: use-small-model-in-compact


📝 Commits (2)

  • 94bc5a9 feat(compact): use small model to summarize in /compact
  • b5e480f Merge branch 'dev' into use-small-model-in-compact

📊 Changes

1 file changed (+4 additions, -1 deletions)

View changed files

📝 packages/opencode/src/session/index.ts (+4 -1)

📄 Description

  • Also use small model in /compact summarize feature

I think it makes sense to use the small model in summarize as there is no need for the big models there (also way faster).

amp also uses Gemini 2.5 Flash for summarization:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1041 **Author:** [@timoclsn](https://github.com/timoclsn) **Created:** 7/16/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `use-small-model-in-compact` --- ### 📝 Commits (2) - [`94bc5a9`](https://github.com/anomalyco/opencode/commit/94bc5a96146a05fc4fdc8acfa3624232836c2386) feat(compact): use small model to summarize in /compact - [`b5e480f`](https://github.com/anomalyco/opencode/commit/b5e480f0cd9ee3c3158f65440f778865c7706b25) Merge branch 'dev' into use-small-model-in-compact ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+4 -1) </details> ### 📄 Description - Also use small model in /compact summarize feature I think it makes sense to use the small model in summarize as there is no need for the big models there (also way faster). amp also uses Gemini 2.5 Flash for summarization: - https://ampcode.com/news/better-faster-cheaper-summaries - https://x.com/thorstenball/status/1938589889567547417 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:10 -05:00
yindo closed this issue 2026-02-16 18:14:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9791