claude-recall 0.2.5 → 0.2.7
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 +1 -0
- package/dist/cli/claude-recall-cli.js +1 -1
- package/dist/mcp/tools/memory-tools.js +1 -2
- package/package.json +1 -1
- package/scripts/postinstall.js +20 -25
package/README.md
CHANGED
|
@@ -123,6 +123,7 @@ The npm installation automatically:
|
|
|
123
123
|
- Installs the Claude Recall CLI globally
|
|
124
124
|
- Configures the MCP server in your `~/.claude.json` file
|
|
125
125
|
- Creates a database directory at `~/.claude-recall/`
|
|
126
|
+
- Updates `~/CLAUDE.md` with global instructions for Claude to use memory tools
|
|
126
127
|
- Sets up the proper command structure for Claude Code integration
|
|
127
128
|
|
|
128
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.7')
|
|
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,7 +60,9 @@ 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
|
|
|
@@ -93,30 +95,21 @@ When you see these words/phrases, ALWAYS call \`mcp__claude-recall__search\` or
|
|
|
93
95
|
- "do you remember"
|
|
94
96
|
|
|
95
97
|
## Important
|
|
96
|
-
-
|
|
97
|
-
-
|
|
98
|
+
- When storing memories, just briefly acknowledge (e.g., "Got it!" or "Noted.")
|
|
99
|
+
- When retrieving memories, integrate the information naturally into your response
|
|
100
|
+
- Don't elaborate on the tool usage - keep responses concise and natural
|
|
98
101
|
- These instructions ensure your memory system works reliably
|
|
102
|
+
|
|
103
|
+
## Response Guidelines
|
|
104
|
+
- For storage: Simple acknowledgment like "I'll remember that" or "Stored!"
|
|
105
|
+
- For retrieval: Just answer with the information, don't explain the search process
|
|
106
|
+
- Keep the conversation flow natural and unobtrusive
|
|
99
107
|
`;
|
|
100
108
|
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
path.join(workingDir, '.claude', 'CLAUDE.md'),
|
|
106
|
-
path.join(os.homedir(), 'CLAUDE.md'),
|
|
107
|
-
path.join(os.homedir(), '.claude', 'CLAUDE.md'),
|
|
108
|
-
// Check parent directories
|
|
109
|
-
path.join(path.dirname(workingDir), 'CLAUDE.md'),
|
|
110
|
-
path.join(path.dirname(path.dirname(workingDir)), 'CLAUDE.md')
|
|
111
|
-
];
|
|
112
|
-
|
|
113
|
-
let claudeMdPath = claudeMdPaths.find(p => fs.existsSync(p));
|
|
114
|
-
|
|
115
|
-
// If not found, create it in the home directory (global)
|
|
116
|
-
if (!claudeMdPath) {
|
|
117
|
-
claudeMdPath = path.join(os.homedir(), 'CLAUDE.md');
|
|
118
|
-
console.log('📝 Creating new CLAUDE.md in home directory for global Claude instructions');
|
|
119
|
-
}
|
|
109
|
+
// Always use global CLAUDE.md since claude-recall is a global tool
|
|
110
|
+
// with a single database for all projects
|
|
111
|
+
const claudeMdPath = path.join(os.homedir(), 'CLAUDE.md');
|
|
112
|
+
console.log('📝 Updating global CLAUDE.md for claude-recall instructions');
|
|
120
113
|
|
|
121
114
|
try {
|
|
122
115
|
let existingContent = '';
|
|
@@ -128,13 +121,15 @@ When you see these words/phrases, ALWAYS call \`mcp__claude-recall__search\` or
|
|
|
128
121
|
console.log('📝 CLAUDE.md already contains Claude Recall instructions');
|
|
129
122
|
} else {
|
|
130
123
|
// Append instructions
|
|
131
|
-
fs.writeFileSync(claudeMdPath, existingContent + '\n' + claudeMdInstructions);
|
|
132
|
-
console.log(`📝 Updated ${claudeMdPath} with memory instructions`);
|
|
124
|
+
fs.writeFileSync(claudeMdPath, existingContent + '\n\n' + claudeMdInstructions);
|
|
125
|
+
console.log(`📝 Updated ${claudeMdPath} with claude-recall memory instructions`);
|
|
126
|
+
console.log(' These global instructions apply to all your projects');
|
|
133
127
|
}
|
|
134
128
|
} else {
|
|
135
129
|
// Create new file
|
|
136
130
|
fs.writeFileSync(claudeMdPath, claudeMdInstructions);
|
|
137
|
-
console.log(`📝 Created ${claudeMdPath} with memory instructions`);
|
|
131
|
+
console.log(`📝 Created ${claudeMdPath} with claude-recall memory instructions`);
|
|
132
|
+
console.log(' These global instructions apply to all your projects');
|
|
138
133
|
}
|
|
139
134
|
} catch (err) {
|
|
140
135
|
console.log('⚠️ Could not update CLAUDE.md:', err.message);
|