Answer: Compaction triggers automatically when your conversation approaches the model's context limit: Kiro creates a structured summary of your goals, decisions, progress, and next steps, then replaces older conversation history with that summary while keeping your most recent messages verbatim, and the session continues without interruption. Status: Confirmed Entry: tool/kiro/memory-and-context/how-compaction-works Revision: 3 Digest: sha256:727e2c0f2e39fa4c (changes whenever the content changes) Timeline: Created: 2026-11-13T03:37:26Z Last changed: 2026-11-20T13:21:23Z (what gets compressed: — → intermediate output - tool call details, exploratory discussion, and resolved error messages) Last verified: 2026-11-20T13:21:23Z Next check: 2026-11-21T13:21:23Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of trigger | approaches the model's context limit | [1] | 2026-11-20 summary generation | creates a structured summary capturing your goals, decisions, progress, and next steps | [1] | 2026-11-20 context reduction | Older conversation history is replaced by the summary, while your most recent messages are kept verbatim | [1] | 2026-11-20 continuation | The session continues from where you left off with no interruption | [1] | 2026-11-20 hooks version | Kiro CLI 3.1.0 or later | [1] | 2026-11-20 what gets compressed | intermediate output - tool call details, exploratory discussion, and resolved error messages | [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:23Z Quote: "When your conversation approaches the model's context limit, compaction triggers automatically" (Supports: trigger) Quote: "Summary generation - Kiro creates a structured summary capturing your goals, decisions, progress, and next steps" (Supports: summary generation) Quote: "Context reduction - Older conversation history is replaced by the summary, while your most recent messages are kept verbatim" (Supports: context reduction) Quote: "Continuation - The session continues from where you left off with no interruption" (Supports: continuation) Quote: "In Kiro CLI 3.1.0 or later, V3 sessions run PreCompact Hooks before compaction and PostCompact Hooks after it." (Supports: hooks version) Quote: "What gets compressed is intermediate output - tool call details, exploratory discussion, and resolved error messages." (Supports: what gets compressed) 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:23Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:21:23Z Last attempt: 2026-11-20T13:21:23Z Notes and limitations: Extracted automatically from a single official source (section "How it works"). Related: https://latestn.com/tool/kiro/memory-and-context/how-memory-works How does Kiro's Memory feature work? https://latestn.com/tool/kiro/memory-and-context/how-skills-load How do Skills load in Kiro Crew? https://latestn.com/tool/kiro/memory-and-context/knowledge-vs-memory What is the difference between Knowledge and Memory in Kiro Crew? 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/create-custom-steering-files How do I create custom steering files in Kiro for a TypeScript project? https://latestn.com/tool/kiro/memory-and-context/edit-and-restore-saved-memories How do I edit or restore an earlier version of a saved memory in Kiro Crew? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:21:23Z | changed | what gets compressed: — → intermediate output - tool call details, exploratory discussion, and resolved error messages | [1] 2026-11-20T13:21:23Z | changed | what is compressed: intermediate output - tool call details, exploratory discussion, and resolved error messages → — | [1] 2026-11-14T13:20:00Z | recovered | Check succeeded again | — 2026-11-14T13:20:00Z | changed | summary generation: Kiro creates a structured summary capturing your goals, decisions, progress, and next steps → creates a structured summary capturing your goals, decisions, progress, and next steps | [1] 2026-11-14T13:20:00Z | changed | trigger: When your conversation approaches the model's context limit, compaction triggers automatically → approaches the model's context limit | [1] 2026-11-13T13:08:14Z | check-failed | Extraction did not pass verification: answer does not contain any extracted value | — 2026-11-13T03:37:26Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/kiro/memory-and-context/how-compaction-works/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/how-compaction-works POST: https://latestn.com/dispute/tool/kiro/memory-and-context/how-compaction-works with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/kiro/memory-and-context/how-compaction-works?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How does compaction work in Kiro? Revision 3, last verified 2026-11-20T13:21:23Z. https://latestn.com/tool/kiro/memory-and-context/how-compaction-works (accessed 2026-11-21T09:58:32Z). @misc{LatestN_tool_kiro_memory_and_context_how_compaction_works_r3, title = {How does compaction work in Kiro?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/kiro/memory-and-context/how-compaction-works}}, note = {Revision 3; digest sha256:727e2c0f2e39fa4c; last verified 2026-11-20T13:21:23Z; accessed 2026-11-21T09:58:32Z} } 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/how-compaction-works