Answer: You configure compaction settings via CLI settings such as compaction.autoCompactionThreshold (default 80), compaction.excludeMessages (default 2), and compaction.excludeContextWindowPercent (default 2), or in Kiro CLI 3.3.0 or later through /settings under Open Compaction. Status: Confirmed Entry: tool/kiro/settings/configure-compaction Revision: 1 Digest: sha256:60ece1d6637b637e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:37:27Z Last changed: 2026-11-13T03:37:27Z Last verified: 2026-11-20T13:21:25Z Next check: 2026-11-21T13:21:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of autoCompactionThreshold default | 80 | percent | [1] | 2026-11-20 excludeMessages default | 2 | message pairs | [1] | 2026-11-20 excludeContextWindowPercent default | 2 | percent | [1] | 2026-11-20 CLI command | kiro-cli settings compaction.autoCompactionThreshold | | [1] | 2026-11-20 workspace override file | .kiro/settings/cli.json | | [1] | 2026-11-20 in-session settings version | 3.3.0 | | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Compaction - Features - Docs - Kiro". https://kiro.dev/docs/compaction/ Role: primary. Accessed: 2026-11-20T13:21:25Z Quote: "compaction.autoCompactionThreshold 80 Context usage percentage at which automatic compaction starts" (Supports: autoCompactionThreshold default) Quote: "compaction.excludeMessages 2 Minimum number of recent message pairs to retain verbatim" (Supports: excludeMessages default) Quote: "compaction.excludeContextWindowPercent 2 Minimum percentage of the context window to keep as recent messages" (Supports: excludeContextWindowPercent default) Quote: "kiro-cli settings compaction.autoCompactionThreshold accepts 0 to 100" (Supports: CLI command) Quote: "A compaction.autoCompactionThreshold value in a workspace .kiro/settings/cli.json overrides the global default for that workspace." (Supports: workspace override file) Quote: "In Kiro CLI 3.3.0 or later, a V3 session can also set the threshold from /settings ." (Supports: in-session settings version) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: bed03d3f017c459d8dec6f3a44f28622c03fe2a58d8dd464ffb11bc40b820247 (captured 2026-11-20T13:21:25Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T13:21:25Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:21:25Z Last attempt: 2026-11-20T13:21:25Z Notes and limitations: Extracted automatically from a single official source (section "Configuration"). Related: https://latestn.com/tool/kiro/settings/configure-custom-diff-tool How do I configure a custom diff tool in Kiro CLI? https://latestn.com/tool/kiro/settings/configure-queue-steering How do I enable or configure queue steering in Kiro CLI? https://latestn.com/tool/kiro/settings/configure-thinking-and-max-output-tokens How do I configure thinking behavior and max output tokens in Kiro? https://latestn.com/tool/kiro/settings/configure-agent-notifications How do I configure agent notifications in Kiro? https://latestn.com/tool/kiro/settings/configure-autocomplete How do I enable or configure autocomplete in Kiro CLI? https://latestn.com/tool/kiro/settings/configure-bot-check-ins How do I configure check-ins for a Kiro Crew bot? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:37:27Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/settings/configure-compaction/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/kiro/settings/configure-compaction POST: https://latestn.com/dispute/tool/kiro/settings/configure-compaction with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/settings/configure-compaction?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure compaction settings in Kiro? Revision 1, last verified 2026-11-20T13:21:25Z. https://latestn.com/tool/kiro/settings/configure-compaction (accessed 2026-11-21T10:00:01Z). @misc{LatestN_tool_kiro_settings_configure_compaction_r1, title = {How do I configure compaction settings in Kiro?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/settings/configure-compaction}}, note = {Revision 1; digest sha256:60ece1d6637b637e; last verified 2026-11-20T13:21:25Z; accessed 2026-11-21T10:00:01Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/kiro/settings/configure-compaction