Kiro CLI 3.1 adds PreCompact/PostCompact hooks and live session credits
Released Nov 5, a PreCompact hook in CLI V3 sessions runs before manual or automatic compaction and can cancel it by exiting with code 2, while PostCompact gets the summary on STDIN so you can archive it or re-inject what it dropped (IDE 1.4.121 adds the same triggers). /usage and an optional status-line segment now show credits used so far, and sub-agents can read their parent's memories.