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

Closed
opened 2026-02-16 17:45:46 -05:00 by yindo · 0 comments
Owner

Originally created by @m10rten on GitHub (Jan 12, 2026).

Originally assigned to: @jayair on GitHub.

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.

Originally created by @m10rten on GitHub (Jan 12, 2026). Originally assigned to: @jayair on GitHub. ### 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.
yindo added the docs label 2026-02-16 17:45:46 -05:00
yindo closed this issue 2026-02-16 17:45:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4854