claude-recall 0.2.4 → 0.2.5

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
@@ -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.4+)
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 say "remember"
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 did I tell you about"
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: "Use PostgreSQL for our database and store configs in YAML files"
82
- Tuesday: "What database should we use?"
83
- Claude: "Based on our previous conversations, we decided to use PostgreSQL for the database
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
 
@@ -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.4')
254
+ .version('0.2.5')
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-recall",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "MCP server for persistent memory in Claude Code conversations",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -66,6 +66,7 @@ IMPORTANT: When the user uses any of these words or phrases, you MUST call the a
66
66
 
67
67
  ## Memory Storage Triggers
68
68
  When you see these words/phrases, ALWAYS call \`mcp__claude-recall__store_memory\`:
69
+ - "recall" (when used for storing, e.g., "for recall later")
69
70
  - "remember" / "remember that" / "please remember"
70
71
  - "store" / "store in memory" / "save to memory"
71
72
  - "don't forget" / "do not forget"
@@ -98,18 +99,23 @@ When you see these words/phrases, ALWAYS call \`mcp__claude-recall__search\` or
98
99
  `;
99
100
 
100
101
  // Try to find CLAUDE.md in common locations
102
+ const workingDir = process.cwd();
101
103
  const claudeMdPaths = [
102
- path.join(process.cwd(), 'CLAUDE.md'),
104
+ path.join(workingDir, 'CLAUDE.md'),
105
+ path.join(workingDir, '.claude', 'CLAUDE.md'),
103
106
  path.join(os.homedir(), 'CLAUDE.md'),
104
- path.join(process.cwd(), '.claude', 'CLAUDE.md'),
105
- path.join(os.homedir(), '.claude', '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')
106
111
  ];
107
112
 
108
113
  let claudeMdPath = claudeMdPaths.find(p => fs.existsSync(p));
109
114
 
110
- // If not found, create it in the current directory
115
+ // If not found, create it in the home directory (global)
111
116
  if (!claudeMdPath) {
112
- claudeMdPath = path.join(process.cwd(), 'CLAUDE.md');
117
+ claudeMdPath = path.join(os.homedir(), 'CLAUDE.md');
118
+ console.log('📝 Creating new CLAUDE.md in home directory for global Claude instructions');
113
119
  }
114
120
 
115
121
  try {