Skip to content
Draft
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions docs/cost.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ always reference [anthropic pricing](https://docs.anthropic.com/en/docs/about-cl

on pro or max, **you don't pay per token.** the lore.db cost estimates are hypothetical: they show what your usage would cost at API list prices, not what you actually pay. legacy `~/.claude/mine.db` is auto-migrated by lore on first run.



**note (current)**: billing mechanics and cache hit rate optimization may have changed in versions after v2.1.122. always run `/lore` to measure your actual session costs, and `/doctor` to verify your plan's token limits and billing method. anthropic pricing page is the source of truth for current rates.

### why caching still matters on a flat plan

even though you don't pay per token, caching affects:
Expand Down
4 changes: 4 additions & 0 deletions docs/session-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ the data says: sessions that hit compaction average 1.7 compactions. if you're c

**verification note**: verify current compact vs clear behavior against [official claude code docs](https://code.claude.com/docs/en/overview) before relying on these percentages in new versions.



**note (current)**: compaction and context management behavior may have evolved since v2.1.122. run `/doctor` to check your current version's compaction strategy and cache state. percentages cited are session-specific analytics; actual compaction rates depend on your model selection and effort level.

## ending a session

when a session ends (ctrl+c, `/exit`, or timeout), two things fire:
Expand Down
6 changes: 6 additions & 0 deletions docs/tips/context-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ good: "the bug is in src/auth/token.ts around line 140, the JWT expiry check"





### 6. verify compaction behavior with /doctor

compaction strategy and cache prefix stability may differ across versions and billing methods (subscription vs API vs Bedrock/Vertex). run `/doctor` to check your active session's compaction strategy. if you're on a different platform or version, the percentages in this doc may not apply.

### 6. use single-file grep reads efficiently

v2.1.160 removed the read-after-grep requirement for single-file `grep`/`egrep`/`fgrep` commands. if claude greps a single file to understand it before editing, that single grep now satisfies the read-before-edit check. this saves a separate Read call and keeps context tighter.
Expand Down
4 changes: 4 additions & 0 deletions docs/tips/hooks-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ hooks come in five flavors now (v2.1.118 added `mcp_tool`). pick the wrong one a

---



**hook stability note**: hook types and parameters are stable as of v2.1.122, but platform support varies. bedrock, vertex AI, and microsoft foundry may not support all hook types equally. run `/doctor` to check which hook types are available on your platform.

## version-specific features

### managed settings in hooks (v2.1.175+)
Expand Down