---
name: "Surface Claude Code compaction notices in Matrix chat"
---

# Story 189: Surface Claude Code compaction notices in Matrix chat

## User Story

As a user chatting with the Claude Code bot via Matrix, I want to see a notice when context compaction occurs, so that I understand why there may be a brief pause and know that earlier context may have been summarized.

## Acceptance Criteria

- [ ] Identify the event type emitted by Claude Code during compaction
- [ ] Update the Matrix bot's event filter/handler to catch compaction events
- [ ] Render a visible notice in the Matrix room when compaction occurs (e.g. a system message or notice)
- [ ] Verify by triggering compaction in a test conversation and confirming the notice appears

## Out of Scope

- TBD
