claude-recall 0.2.4 → 0.2.6
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 +10 -7
- package/dist/cli/claude-recall-cli.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +13 -18
package/README.md
CHANGED
|
@@ -45,21 +45,23 @@ Launch Claude Code and your memories will be captured automatically. Claude Reca
|
|
|
45
45
|
|
|
46
46
|
Claude Recall uses the Model Context Protocol to integrate directly with Claude Code.
|
|
47
47
|
|
|
48
|
-
### Automatic Memory Capture (v0.2.
|
|
48
|
+
### Automatic Memory Capture (v0.2.5+)
|
|
49
49
|
|
|
50
50
|
Claude Recall ensures memories are captured reliably by:
|
|
51
|
-
1. **Instructing Claude via CLAUDE.md** - Installation adds instructions so Claude always calls the MCP tool when you
|
|
51
|
+
1. **Instructing Claude via CLAUDE.md** - Installation adds instructions so Claude always calls the MCP tool when you use memory-related keywords
|
|
52
52
|
2. **Automatic pattern detection** - When Claude does use tools, additional patterns are detected
|
|
53
53
|
|
|
54
54
|
**Memory storage is triggered by:**
|
|
55
|
+
- "recall" (when used for storing, e.g., "for recall later")
|
|
55
56
|
- "remember" / "remember that" / "please remember"
|
|
56
57
|
- "don't forget" / "keep in mind" / "bear in mind"
|
|
57
58
|
- "store in memory" / "save to memory"
|
|
58
59
|
- "note that" / "take note"
|
|
59
60
|
- "for future reference" / "memorize"
|
|
60
61
|
|
|
61
|
-
**Memory retrieval is triggered by:**
|
|
62
|
-
- "recall" / "what
|
|
62
|
+
**Memory retrieval (using "recall") is triggered by:**
|
|
63
|
+
- "recall" / "recall what I said about"
|
|
64
|
+
- "what did I tell you about"
|
|
63
65
|
- "what do you remember about"
|
|
64
66
|
- "do you remember"
|
|
65
67
|
|
|
@@ -78,9 +80,9 @@ You can also explicitly ask Claude to store memories using the MCP tools:
|
|
|
78
80
|
## Real-World Example
|
|
79
81
|
|
|
80
82
|
```
|
|
81
|
-
Monday: "
|
|
82
|
-
Tuesday: "
|
|
83
|
-
Claude: "Based on our
|
|
83
|
+
Monday: "For recall: we're using PostgreSQL for our database and YAML for configs"
|
|
84
|
+
Tuesday: "Recall what database we decided on"
|
|
85
|
+
Claude: "Based on our stored memories, you're using PostgreSQL for the database
|
|
84
86
|
and YAML for configuration files."
|
|
85
87
|
```
|
|
86
88
|
|
|
@@ -121,6 +123,7 @@ The npm installation automatically:
|
|
|
121
123
|
- Installs the Claude Recall CLI globally
|
|
122
124
|
- Configures the MCP server in your `~/.claude.json` file
|
|
123
125
|
- Creates a database directory at `~/.claude-recall/`
|
|
126
|
+
- Updates `~/CLAUDE.md` with global instructions for Claude to use memory tools
|
|
124
127
|
- Sets up the proper command structure for Claude Code integration
|
|
125
128
|
|
|
126
129
|
### Database Location
|
|
@@ -251,7 +251,7 @@ async function main() {
|
|
|
251
251
|
program
|
|
252
252
|
.name('claude-recall')
|
|
253
253
|
.description('Memory-enhanced Claude Code via MCP')
|
|
254
|
-
.version('0.2.
|
|
254
|
+
.version('0.2.6')
|
|
255
255
|
.option('--verbose', 'Enable verbose logging')
|
|
256
256
|
.option('--config <path>', 'Path to custom config file');
|
|
257
257
|
// MCP command
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -60,12 +60,15 @@ try {
|
|
|
60
60
|
|
|
61
61
|
// Update CLAUDE.md with instructions
|
|
62
62
|
const claudeMdInstructions = `
|
|
63
|
-
# Claude Recall Memory Instructions
|
|
63
|
+
# Claude Recall Memory Instructions (Global)
|
|
64
|
+
|
|
65
|
+
Claude Recall is a global MCP tool that maintains a single memory database across all your projects.
|
|
64
66
|
|
|
65
67
|
IMPORTANT: When the user uses any of these words or phrases, you MUST call the appropriate claude-recall MCP tool:
|
|
66
68
|
|
|
67
69
|
## Memory Storage Triggers
|
|
68
70
|
When you see these words/phrases, ALWAYS call \`mcp__claude-recall__store_memory\`:
|
|
71
|
+
- "recall" (when used for storing, e.g., "for recall later")
|
|
69
72
|
- "remember" / "remember that" / "please remember"
|
|
70
73
|
- "store" / "store in memory" / "save to memory"
|
|
71
74
|
- "don't forget" / "do not forget"
|
|
@@ -97,20 +100,10 @@ When you see these words/phrases, ALWAYS call \`mcp__claude-recall__search\` or
|
|
|
97
100
|
- These instructions ensure your memory system works reliably
|
|
98
101
|
`;
|
|
99
102
|
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
path.join(process.cwd(), '.claude', 'CLAUDE.md'),
|
|
105
|
-
path.join(os.homedir(), '.claude', 'CLAUDE.md')
|
|
106
|
-
];
|
|
107
|
-
|
|
108
|
-
let claudeMdPath = claudeMdPaths.find(p => fs.existsSync(p));
|
|
109
|
-
|
|
110
|
-
// If not found, create it in the current directory
|
|
111
|
-
if (!claudeMdPath) {
|
|
112
|
-
claudeMdPath = path.join(process.cwd(), 'CLAUDE.md');
|
|
113
|
-
}
|
|
103
|
+
// Always use global CLAUDE.md since claude-recall is a global tool
|
|
104
|
+
// with a single database for all projects
|
|
105
|
+
const claudeMdPath = path.join(os.homedir(), 'CLAUDE.md');
|
|
106
|
+
console.log('📝 Updating global CLAUDE.md for claude-recall instructions');
|
|
114
107
|
|
|
115
108
|
try {
|
|
116
109
|
let existingContent = '';
|
|
@@ -122,13 +115,15 @@ When you see these words/phrases, ALWAYS call \`mcp__claude-recall__search\` or
|
|
|
122
115
|
console.log('📝 CLAUDE.md already contains Claude Recall instructions');
|
|
123
116
|
} else {
|
|
124
117
|
// Append instructions
|
|
125
|
-
fs.writeFileSync(claudeMdPath, existingContent + '\n' + claudeMdInstructions);
|
|
126
|
-
console.log(`📝 Updated ${claudeMdPath} with memory instructions`);
|
|
118
|
+
fs.writeFileSync(claudeMdPath, existingContent + '\n\n' + claudeMdInstructions);
|
|
119
|
+
console.log(`📝 Updated ${claudeMdPath} with claude-recall memory instructions`);
|
|
120
|
+
console.log(' These global instructions apply to all your projects');
|
|
127
121
|
}
|
|
128
122
|
} else {
|
|
129
123
|
// Create new file
|
|
130
124
|
fs.writeFileSync(claudeMdPath, claudeMdInstructions);
|
|
131
|
-
console.log(`📝 Created ${claudeMdPath} with memory instructions`);
|
|
125
|
+
console.log(`📝 Created ${claudeMdPath} with claude-recall memory instructions`);
|
|
126
|
+
console.log(' These global instructions apply to all your projects');
|
|
132
127
|
}
|
|
133
128
|
} catch (err) {
|
|
134
129
|
console.log('⚠️ Could not update CLAUDE.md:', err.message);
|