Conversation Compaction Configuration

April 10, 2026 · View on GitHub

When the conversation token count reaches 70% of the model's context window, Siada automatically compresses the message history by generating an LLM summary to replace older messages while preserving recent conversations.

Configuration

Edit ~/.siada-cli/conf.yaml:

# Compaction strategy (optional, auto-detected if not set)
compaction_strategy: null

Available Strategies

StrategyDescriptionDefault For
header_summaryKeeps first user-assistant pair + LLM summary + recent 30% messagesCLI / TUI mode
turn_prune_summaryThree-layer pipeline: turn pruning → tool result truncation → LLM summary, keeps last 3 turnsIM mode (Feishu)

When not configured, the system auto-selects based on session mode: CLI/TUI uses header_summary, IM uses turn_prune_summary.

Example

Force IM strategy in CLI mode:

compaction_strategy: "turn_prune_summary"