@anthropologies/claudestory 0.1.7 → 0.1.9

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
@@ -95,10 +95,11 @@ The MCP server provides 19 tools for Claude Code integration. It imports the sam
95
95
  ### Setup with Claude Code
96
96
 
97
97
  ```bash
98
- claude mcp add claudestory -s user -- npx -y @anthropologies/claudestory --mcp
98
+ npm install -g @anthropologies/claudestory
99
+ claude mcp add claudestory -s user -- claudestory --mcp
99
100
  ```
100
101
 
101
- That's it. One command, global works in every project that has a `.story/` directory. No global install required. The MCP server auto-discovers the project root by walking up from the working directory.
102
+ Two commands: install globally, register as MCP server. Works in every project that has a `.story/` directory. The MCP server auto-discovers the project root by walking up from the working directory.
102
103
 
103
104
  ### MCP Tools
104
105
 
@@ -134,6 +135,32 @@ Auto-inject project recap at session start — shows what changed since last sna
134
135
  claudestory recap --format md 2>/dev/null
135
136
  ```
136
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
+
137
164
  ### Session End
138
165
 
139
166
  Save a snapshot before ending your session so the next `recap` can show diffs: