claude-cortex 1.8.1 → 1.8.2

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
@@ -106,13 +106,17 @@ Add to `~/.claude/settings.json` for automatic memory extraction and context loa
106
106
  - **PreCompact**: Auto-saves important context before compaction events
107
107
  - **SessionStart**: Auto-loads project context at the start of each session
108
108
 
109
- ### 4. Enable Proactive Memory (Recommended)
109
+ ### 4. Run Setup (Recommended)
110
110
 
111
111
  ```bash
112
112
  npx claude-cortex setup
113
113
  ```
114
114
 
115
- This adds instructions to `~/.claude/CLAUDE.md` so Claude proactively uses memory tools in all projects. Safe to run multiple times (idempotent).
115
+ This configures everything automatically:
116
+ - **Claude Code**: Adds proactive memory instructions to `~/.claude/CLAUDE.md`
117
+ - **Clawdbot/Moltbot**: Installs `cortex-memory` hook if Clawdbot or Moltbot is detected
118
+
119
+ Safe to run multiple times (idempotent). If Clawdbot isn't installed, it's skipped silently.
116
120
 
117
121
  ### 5. Use It
118
122
 
@@ -199,7 +203,7 @@ score = base_salience × (0.995 ^ hours_since_access)
199
203
  When Claude Code compacts context:
200
204
 
201
205
  1. **Before compaction** - The PreCompact hook **automatically extracts** important content
202
- 2. **After compaction** - Use `get_context` to restore what's relevant
206
+ 2. **After compaction** - Claude is directed to call `get_context` automatically to restore context
203
207
 
204
208
  ### Automatic Memory Extraction (PreCompact Hook)
205
209
 
@@ -207,7 +211,7 @@ The system includes a hook that runs before every context compaction:
207
211
 
208
212
  ```
209
213
  🧠 AUTO-MEMORY: 3 important items were automatically saved before compaction.
210
- After compaction, use 'get_context' to retrieve your memories.
214
+ IMPORTANT: You MUST call the 'get_context' MCP tool NOW to restore your project knowledge.
211
215
  ```
212
216
 
213
217
  **What gets auto-extracted:**
@@ -301,15 +305,18 @@ npm run watch
301
305
 
302
306
  The dashboard provides a 3D brain visualization of your memories with real-time updates.
303
307
 
304
- ### Auto-Start on Login (Recommended)
308
+ ### CLI Commands
305
309
 
306
310
  ```bash
307
- npx claude-cortex setup # Configure Claude for proactive memory use
311
+ npx claude-cortex setup # Configure Claude Code + Clawdbot (if detected)
308
312
  npx claude-cortex hook pre-compact # Run pre-compact hook (for settings.json)
309
313
  npx claude-cortex hook session-start # Run session-start hook (for settings.json)
310
- npx claude-cortex service install # Enable auto-start
314
+ npx claude-cortex service install # Enable auto-start on login
311
315
  npx claude-cortex service uninstall # Remove auto-start
312
- npx claude-cortex service status # Check status
316
+ npx claude-cortex service status # Check service status
317
+ npx claude-cortex clawdbot install # Install Clawdbot/Moltbot hook manually
318
+ npx claude-cortex clawdbot uninstall # Remove Clawdbot/Moltbot hook
319
+ npx claude-cortex clawdbot status # Check Clawdbot hook status
313
320
  ```
314
321
 
315
322
  Works on **macOS** (launchd), **Linux** (systemd), and **Windows** (Startup folder). The dashboard and API server will start automatically on login.
@@ -349,7 +356,24 @@ cd dashboard && npm run dev
349
356
 
350
357
  ## Moltbot / ClawdBot Integration
351
358
 
352
- Claude Cortex works with [Moltbot](https://github.com/moltbot/moltbot) (formerly ClawdBot) via [mcporter](https://mcpmarket.com/tools/skills/mcporter). Since Claude Cortex is a standard MCP server, Moltbot can call its tools on-demand:
359
+ Claude Cortex works with [Moltbot](https://github.com/moltbot/moltbot) (formerly ClawdBot) via [mcporter](https://mcpmarket.com/tools/skills/mcporter).
360
+
361
+ ### Automatic Hook (Recommended)
362
+
363
+ ```bash
364
+ npx claude-cortex clawdbot install
365
+ ```
366
+
367
+ Or run `npx claude-cortex setup` — it installs the hook automatically if Clawdbot/Moltbot is detected.
368
+
369
+ The **cortex-memory** hook provides:
370
+ - **Auto-save on `/new`** — Extracts decisions, fixes, learnings from ending sessions
371
+ - **Context injection on bootstrap** — Agent starts with past session knowledge
372
+ - **Keyword triggers** — Say "remember this" or "don't forget" to save with critical importance
373
+
374
+ ### Manual mcporter Commands
375
+
376
+ Since Claude Cortex is a standard MCP server, Moltbot can also call its tools directly:
353
377
 
354
378
  ```bash
355
379
  # Remember something via Moltbot
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-cortex",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "Brain-like memory system for Claude Code - solves context compaction and memory persistence",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -656,7 +656,7 @@ function outputReminder(autoExtractedCount, dynamicThreshold) {
656
656
  if (autoExtractedCount > 0) {
657
657
  console.log(`
658
658
  🧠 AUTO-MEMORY: ${autoExtractedCount} important items were automatically saved before compaction.
659
- After compaction, use 'get_context' to retrieve your memories.
659
+ IMPORTANT: You MUST call the 'get_context' MCP tool NOW to restore your project knowledge.
660
660
  `);
661
661
  } else {
662
662
  const thresholdNote = dynamicThreshold > 0.5
@@ -665,7 +665,7 @@ After compaction, use 'get_context' to retrieve your memories.
665
665
  console.log(`
666
666
  🧠 PRE-COMPACT: No auto-extractable content found with high enough salience${thresholdNote}.
667
667
  If there's something important, use 'remember' to save it explicitly.
668
- After compaction, use 'get_context' to retrieve your memories.
668
+ IMPORTANT: You MUST call the 'get_context' MCP tool NOW to restore your project knowledge.
669
669
  `);
670
670
  }
671
671
  }