Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/ai-cli-context-statusline.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ BEL once per level per session. Usage dropping back below yellow clears the
latch.

Session breadcrumbs live under
`${XDG_CACHE_HOME:-~/.cache}/ai-context-alerts/<session_id>.json`.
`${XDG_CACHE_HOME:-~/.cache}/ai-context-alerts/<session_id>.json`, and exist
**only while a session is yellow or red**. Green writes nothing and deletes any
existing file, so a missing breadcrumb is the normal green state rather than a
broken cache — the Stop hook short-circuits on it. While yellow or red, a
refresh that changes neither the level nor the whole-percent usage skips the
rewrite, so the file's mtime can lag the statusline by design.

### Claude Code Stop hook

Expand Down
Loading