Skip to content

Commit 21e2ecf

Browse files
authored
Merge pull request #1 from mvanhorn/fix/auto-recall-skills-scope
fix(plugin): add skills to autoRecall search scope
2 parents 81095b1 + 7cc0413 commit 21e2ecf

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

plugins/claude-code-memory-plugin/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openviking-memory",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Long-term semantic memory for Claude Code, powered by OpenViking. Auto-recall relevant memories at session start and capture important information during conversations.",
55
"author": {
66
"name": "OpenViking",

plugins/claude-code-memory-plugin/scripts/auto-recall.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,15 @@ async function searchScope(query, targetUri, limit) {
222222
}
223223

224224
async function searchBothScopes(query, limit) {
225-
const [userMems, agentMems] = await Promise.all([
225+
const [userMems, agentMems, agentSkills] = await Promise.all([
226226
searchScope(query, "viking://user/memories", limit),
227227
searchScope(query, "viking://agent/memories", limit),
228+
searchScope(query, "viking://agent/skills", limit),
228229
]);
229230
log("search_complete", { scope: "user", rawCount: userMems.length, topScores: userMems.slice(0, 3).map(m => m.score) });
230231
log("search_complete", { scope: "agent", rawCount: agentMems.length, topScores: agentMems.slice(0, 3).map(m => m.score) });
231-
const all = [...userMems, ...agentMems];
232+
log("search_complete", { scope: "skills", rawCount: agentSkills.length, topScores: agentSkills.slice(0, 3).map(m => m.score) });
233+
const all = [...userMems, ...agentMems, ...agentSkills];
232234
const uriSet = new Set();
233235
return all.filter(m => {
234236
if (uriSet.has(m.uri)) return false;

0 commit comments

Comments
 (0)