Skip to content

How to customize the compact command to use different model #7980

Closed

Description

@m10rten

Question

Hi, was wondering how to customize the /compact command so it uses lets say gemini instead of the default (claude or gpt) model.
Thought it would be possible to update using a custom /command/compact.md or a compact command in the config.json, but all that did was add a new command.

So asking for help, how to update system built-in commands to use a different model, without having to manually switch each time.

Activity

  1. github-actions commented on Jan 12, 2026

    @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. m10rten commented on Jan 12, 2026

    @m10rten
    Author

    Using this works:

      "agent": {
        "compaction": {
          "model": "..."
        }
      },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions