Skip to main content
You can customize how Mux summarizes conversations during compaction by overriding the compact agent.

Override the compact agent

Create .mux/agents/compact.md in your project (or ~/.mux/agents/compact.md for global):
By default, your prompt is appended to the built-in compact agent.

Replace instead of append

Defaults (synced from source)

Notes

  • Custom compact agents apply to both manual /compact and auto-compaction.
  • Tools are always disabled during compaction.
  • -t sets maxOutputTokens; Mux converts this into an approximate word target for the instruction message.