Skip to content

[FEATURE]: Ability to specify different model to use for compaction #6976

Closed

Description

@mzealey

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

It would be nice to be able to use a lightweight model (eg flash / haiku) to handle context compression rather than the slower and more capable model that is currently running. Perhaps either as a config option or as a different agent like 'Compactor' which could then have a default model associated with it?

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 5, 2026
  2. github-actions commented on Jan 5, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues address similar use cases around flexible model selection for different agent tasks. You may want to reference them or consolidate the discussion.

  3. rekram1-node commented on Jan 5, 2026

    @rekram1-node
    Contributor

    @mzealey you can do this in ur opencode config:

     "agent": {
        "compaction": {
          "model": "...",
        },
      },
    
  4. mzealey commented on Jan 5, 2026

    @mzealey
    Author

    Ah I see - I looked in the docs which did not have this - i see it's in the config.json though.

  5. 98h398hrpohpoai commented on May 4, 2026

    @98h398hrpohpoai

    Per mzealey's note, is there any actual documentation on how to manage this per model? Some models have become unusuable for me due to aggressive compaction that doesn't appear to respond to the config.json options I've been able to find through various issue reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionzenRelates to Zen

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions