claude-cortex 1.8.0 → 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 +33 -9
- package/dist/setup/claude-md.d.ts +6 -2
- package/dist/setup/claude-md.d.ts.map +1 -1
- package/dist/setup/claude-md.js +34 -13
- package/dist/setup/claude-md.js.map +1 -1
- package/dist/setup/clawdbot.d.ts +4 -0
- package/dist/setup/clawdbot.d.ts.map +1 -1
- package/dist/setup/clawdbot.js +1 -1
- package/dist/setup/clawdbot.js.map +1 -1
- package/package.json +1 -1
- package/scripts/pre-compact-hook.mjs +2 -2
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.
|
|
109
|
+
### 4. Run Setup (Recommended)
|
|
110
110
|
|
|
111
111
|
```bash
|
|
112
112
|
npx claude-cortex setup
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
This
|
|
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** -
|
|
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
|
-
|
|
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
|
-
###
|
|
308
|
+
### CLI Commands
|
|
305
309
|
|
|
306
310
|
```bash
|
|
307
|
-
npx claude-cortex setup # Configure Claude
|
|
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).
|
|
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
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Full setup for Claude Cortex.
|
|
3
|
+
*
|
|
4
|
+
* 1. Injects proactive memory instructions into ~/.claude/CLAUDE.md (Claude Code)
|
|
5
|
+
* 2. Installs cortex-memory hook into Clawdbot/Moltbot if detected
|
|
6
|
+
*
|
|
7
|
+
* Both steps are idempotent.
|
|
4
8
|
*/
|
|
5
9
|
export declare function setupClaudeMd(): Promise<void>;
|
|
6
10
|
//# sourceMappingURL=claude-md.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/setup/claude-md.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/setup/claude-md.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AA4CH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAoBnD"}
|
package/dist/setup/claude-md.js
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Full setup for Claude Cortex.
|
|
3
|
+
*
|
|
4
|
+
* 1. Injects proactive memory instructions into ~/.claude/CLAUDE.md (Claude Code)
|
|
5
|
+
* 2. Installs cortex-memory hook into Clawdbot/Moltbot if detected
|
|
6
|
+
*
|
|
7
|
+
* Both steps are idempotent.
|
|
4
8
|
*/
|
|
5
9
|
import fs from 'fs';
|
|
6
10
|
import path from 'path';
|
|
7
11
|
import os from 'os';
|
|
12
|
+
import { installClawdbotHook, findClawdbotHooksDir } from './clawdbot.js';
|
|
8
13
|
const MARKER = '# Claude Cortex — Memory System';
|
|
9
14
|
const INSTRUCTIONS = `
|
|
10
15
|
${MARKER}
|
|
@@ -20,25 +25,41 @@ You have access to a persistent memory system via MCP tools (\`remember\`, \`rec
|
|
|
20
25
|
|
|
21
26
|
Do not wait until the end of the session. Call \`remember\` right after the event happens.
|
|
22
27
|
`;
|
|
23
|
-
|
|
28
|
+
function setupClaudeCode() {
|
|
24
29
|
const claudeDir = path.join(os.homedir(), '.claude');
|
|
25
30
|
const claudeMdPath = path.join(claudeDir, 'CLAUDE.md');
|
|
26
|
-
// Ensure ~/.claude/ exists
|
|
27
31
|
fs.mkdirSync(claudeDir, { recursive: true });
|
|
28
|
-
// Read existing content
|
|
29
32
|
let existing = '';
|
|
30
33
|
if (fs.existsSync(claudeMdPath)) {
|
|
31
34
|
existing = fs.readFileSync(claudeMdPath, 'utf-8');
|
|
32
35
|
}
|
|
33
|
-
// Check if already configured
|
|
34
36
|
if (existing.includes(MARKER)) {
|
|
35
|
-
console.log('✓ Claude
|
|
36
|
-
|
|
37
|
+
console.log('✓ Claude Code: instructions already present in ~/.claude/CLAUDE.md');
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
const newContent = existing.trimEnd() + '\n' + INSTRUCTIONS;
|
|
41
|
+
fs.writeFileSync(claudeMdPath, newContent, 'utf-8');
|
|
42
|
+
console.log('✓ Claude Code: added memory instructions to ~/.claude/CLAUDE.md');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
export async function setupClaudeMd() {
|
|
46
|
+
console.log('Setting up Claude Cortex...\n');
|
|
47
|
+
// 1. Claude Code — always
|
|
48
|
+
setupClaudeCode();
|
|
49
|
+
// 2. Clawdbot/Moltbot — if detected
|
|
50
|
+
const hooksDir = findClawdbotHooksDir();
|
|
51
|
+
if (hooksDir) {
|
|
52
|
+
const hookExists = fs.existsSync(path.join(hooksDir, 'cortex-memory'));
|
|
53
|
+
if (hookExists) {
|
|
54
|
+
console.log('✓ Clawdbot: cortex-memory hook already installed');
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
await installClawdbotHook();
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
console.log('- Clawdbot/Moltbot: not detected (skipped)');
|
|
37
62
|
}
|
|
38
|
-
|
|
39
|
-
const newContent = existing.trimEnd() + '\n' + INSTRUCTIONS;
|
|
40
|
-
fs.writeFileSync(claudeMdPath, newContent, 'utf-8');
|
|
41
|
-
console.log('✓ Added Claude Cortex memory instructions to ~/.claude/CLAUDE.md');
|
|
42
|
-
console.log(' Claude will now proactively use memory tools in all projects.');
|
|
63
|
+
console.log('\nSetup complete.');
|
|
43
64
|
}
|
|
44
65
|
//# sourceMappingURL=claude-md.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-md.js","sourceRoot":"","sources":["../../src/setup/claude-md.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"claude-md.js","sourceRoot":"","sources":["../../src/setup/claude-md.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,M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AAI,QAAQ,EAAE,CAAC;QACb,MAAM,UAAU,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC;QACvE,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC;QAClE,CAAC;aAAM,CAAC;YACN,MAAM,mBAAmB,EAAE,CAAC;QAC9B,CAAC;IACH,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,4CAA4C,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;AACnC,CAAC"}
|
package/dist/setup/clawdbot.d.ts
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
* Copies the cortex-memory hook into Clawdbot's bundled hooks directory.
|
|
5
5
|
* Only works if Clawdbot is installed on the system.
|
|
6
6
|
*/
|
|
7
|
+
/**
|
|
8
|
+
* Find Clawdbot's bundled hooks directory by locating the binary
|
|
9
|
+
*/
|
|
10
|
+
export declare function findClawdbotHooksDir(): string | null;
|
|
7
11
|
export declare function installClawdbotHook(): Promise<void>;
|
|
8
12
|
export declare function uninstallClawdbotHook(): Promise<void>;
|
|
9
13
|
export declare function clawdbotHookStatus(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clawdbot.d.ts","sourceRoot":"","sources":["../../src/setup/clawdbot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"clawdbot.d.ts","sourceRoot":"","sources":["../../src/setup/clawdbot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAgBH;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,GAAG,IAAI,CA8BpD;AAED,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAgCzD;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC,IAAI,CAAC,CAiB3D;AAED,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CAcxD;AAED,wBAAsB,qBAAqB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAe7E"}
|
package/dist/setup/clawdbot.js
CHANGED
|
@@ -17,7 +17,7 @@ const HOOK_SOURCE = path.resolve(__dirname, '..', '..', 'hooks', 'clawdbot', HOO
|
|
|
17
17
|
/**
|
|
18
18
|
* Find Clawdbot's bundled hooks directory by locating the binary
|
|
19
19
|
*/
|
|
20
|
-
function findClawdbotHooksDir() {
|
|
20
|
+
export function findClawdbotHooksDir() {
|
|
21
21
|
try {
|
|
22
22
|
const binPath = execSync('which clawdbot 2>/dev/null || which moltbot 2>/dev/null', {
|
|
23
23
|
encoding: 'utf-8',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clawdbot.js","sourceRoot":"","sources":["../../src/setup/clawdbot.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAClD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AAE3C,MAAM,SAAS,GAAG,eAAe,CAAC;AAElC,2EAA2E;AAC3E,qDAAqD;AACrD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC;AAExF;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"clawdbot.js","sourceRoot":"","sources":["../../src/setup/clawdbot.ts"],"names":[],"mappings":"AA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AAQ,EAAE,SAAS,CAAC,CAAC;IAC/C,MAAM,SAAS,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IAEzC,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,qBAAqB,QAAQ,EAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,qBAAqB,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,CAAC;AAChF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,UAAkB;IAC5D,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,SAAS;YACZ,MAAM,mBAAmB,EAAE,CAAC;YAC5B,MAAM;QACR,KAAK,WAAW;YACd,MAAM,qBAAqB,EAAE,CAAC;YAC9B,MAAM;QACR,KAAK,QAAQ;YACX,MAAM,kBAAkB,EAAE,CAAC;YAC3B,MAAM;QACR;YACE,OAAO,CAAC,GAAG,CAAC,0DAA0D,CAAC,CAAC;YACxE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
668
|
+
IMPORTANT: You MUST call the 'get_context' MCP tool NOW to restore your project knowledge.
|
|
669
669
|
`);
|
|
670
670
|
}
|
|
671
671
|
}
|