Skip to content

feat(compact): override compact default model and prompt #2465

Closed

Description

@spoons-and-mirrors

Summary

I'd like to be able to select the /compact model and override the default compact prompt,

Path

I would gladly PR this, but I am unsure about how to go about it. Should this be done through a reserved:

  • .opencode/agent/compact.md
  • .opencode/command/compact.md
  • .opencode/opencode/compact.md

Or should this be done differently all together? What path to take to implement this?
@thdxr @adamdotdevin

Activity

  1. github-actions commented on Sep 6, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

  2. matfax commented on Sep 18, 2025

    @matfax

    I would suggest using the existing agent definitions for this, which already provide the necessary logic for the definition of custom models and prompts. There needs to be an additional mode besides the primary and subagent modes. Let's assume it will be called "support" mode. This would enable the definition of three additional support agents: edit, compact, and apply.

  3. anuramat commented on Sep 19, 2025

    @anuramat

    Title generator/small_model should probably be moved to "support agents" as well then?

  4. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Collaborator

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions