Answer: Conversation compaction is configured via two settings: compaction.excludeMessages (default 2, minimum message pairs to retain) and compaction.excludeContextWindowPercent (default 2, minimum % of context window to retain); both are evaluated and the more conservative (larger) value wins. Compaction can be run manually with /compact or triggers automatically when the context window overflows. Status: Confirmed Entry: tool/kiro/memory-and-context/configure-conversation-compaction Revision: 1 Digest: sha256:077edecdf78ac856 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:36:12Z Last changed: 2026-11-13T03:36:12Z Last verified: 2026-11-20T13:19:28Z Next check: 2026-11-21T13:19:28Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of excludeMessages setting | compaction.excludeMessages | | [1] | 2026-11-20 excludeMessages default | 2 | message pairs | [1] | 2026-11-20 excludeContextWindowPercent setting | compaction.excludeContextWindowPercent | | [1] | 2026-11-20 excludeContextWindowPercent default | 2 | % | [1] | 2026-11-20 manual command | /compact | | [1] | 2026-11-20 automatic trigger | Triggers when context window overflows | | [1] | 2026-11-20 Sources: [1] Amazon Web Services. "Context management - Chat - CLI - Docs - Kiro". https://kiro.dev/docs/cli/chat/context/ Role: primary. Accessed: 2026-11-20T13:19:28Z Quote: "compaction.excludeMessages 2 Minimum message pairs to retain" (Supports: excludeMessages setting, excludeMessages default) Quote: "compaction.excludeContextWindowPercent 2 Minimum % of context window to retain" (Supports: excludeContextWindowPercent setting, excludeContextWindowPercent default) Quote: "Manual : Run /compact" (Supports: manual command) Quote: "Automatic : Triggers when context window overflows" (Supports: automatic trigger) Published: 2026-11-20T07:39:25Z Snapshot SHA-256: faec97ded77aaa3149d87a842618aa72943a0a8f2160c7b5c0716451a85023c3 (captured 2026-11-20T13:19:30Z) 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:19:28Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:19:28Z Last attempt: 2026-11-20T13:19:28Z Notes and limitations: Extracted automatically from a single official source (section "Conversation compaction"). Related: https://latestn.com/tool/kiro/memory-and-context/control-learning-and-recall How do I control what Kiro learns and recalls in Memory? https://latestn.com/tool/kiro/memory-and-context/control-memory-writes-and-context How do I control what Kiro Crew writes to memory and what it includes in context? https://latestn.com/tool/kiro/memory-and-context/create-custom-steering-file How do I create a custom steering file in Kiro? https://latestn.com/tool/kiro/memory-and-context/compaction-preserved-vs-summarized What does Kiro preserve versus summarize during compaction? https://latestn.com/tool/kiro/memory-and-context/compaction-threshold How do I change the compaction threshold in Kiro Crew? https://latestn.com/tool/kiro/memory-and-context/compaction-what-is-preserved What information is preserved when Kiro compacts the conversation? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:36:12Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/memory-and-context/configure-conversation-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/memory-and-context/configure-conversation-compaction POST: https://latestn.com/dispute/tool/kiro/memory-and-context/configure-conversation-compaction with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/memory-and-context/configure-conversation-compaction?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure conversation compaction in Kiro CLI? Revision 1, last verified 2026-11-20T13:19:28Z. https://latestn.com/tool/kiro/memory-and-context/configure-conversation-compaction (accessed 2026-11-21T10:02:41Z). @misc{LatestN_tool_kiro_memory_and_context_configure_conversation_compaction_r1, title = {How do I configure conversation compaction in Kiro CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/memory-and-context/configure-conversation-compaction}}, note = {Revision 1; digest sha256:077edecdf78ac856; last verified 2026-11-20T13:19:28Z; accessed 2026-11-21T10:02:41Z} } 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/memory-and-context/configure-conversation-compaction