@anthropologies/claudestory 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -135,6 +135,32 @@ Auto-inject project recap at session start — shows what changed since last sna
135
135
  claudestory recap --format md 2>/dev/null
136
136
  ```
137
137
 
138
+ ### PreCompact Hook (auto-snapshot)
139
+
140
+ `setup-skill` configures a PreCompact hook that runs `claudestory snapshot --quiet` before context compaction. This ensures `recap` always shows changes since the last compaction — no manual snapshots needed.
141
+
142
+ Installed automatically by `setup-skill`. To skip: `claudestory setup-skill --skip-hooks`.
143
+
144
+ Manual configuration (add to `~/.claude/settings.json`):
145
+
146
+ ```json
147
+ {
148
+ "hooks": {
149
+ "PreCompact": [
150
+ {
151
+ "matcher": "",
152
+ "hooks": [
153
+ {
154
+ "type": "command",
155
+ "command": "claudestory snapshot --quiet"
156
+ }
157
+ ]
158
+ }
159
+ ]
160
+ }
161
+ }
162
+ ```
163
+
138
164
  ### Session End
139
165
 
140
166
  Save a snapshot before ending your session so the next `recap` can show diffs: