Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

fix(plugin): add skills to autoRecall search scope (#1225)

Matt Van Horn80195647585c
diff --git a/examples/claude-code-memory-plugin/scripts/auto-recall.mjs b/examples/claude-code-memory-plugin/scripts/auto-recall.mjs
index 2718a04ea..d3a4ba8d2 100644
--- a/examples/claude-code-memory-plugin/scripts/auto-recall.mjs
+++ b/examples/claude-code-memory-plugin/scripts/auto-recall.mjs
@@ -222,13 +222,15 @@ async function searchScope(query, targetUri, limit) {
}
async function searchBothScopes(query, limit) {
- const [userMems, agentMems] = await Promise.all([
+ const [userMems, agentMems, agentSkills] = await Promise.all([
searchScope(query, "viking://user/memories", limit),
searchScope(query, "viking://agent/memories", limit),
+ searchScope(query, "viking://agent/skills", limit),
]);
log("search_complete", { scope: "user", rawCount: userMems.length, topScores: userMems.slice(0, 3).map(m => m.score) });
log("search_complete", { scope: "agent", rawCount: agentMems.length, topScores: agentMems.slice(0, 3).map(m => m.score) });
- const all = [...userMems, ...agentMems];
+ log("search_complete", { scope: "skills", rawCount: agentSkills.length, topScores: agentSkills.slice(0, 3).map(m => m.score) });
+ const all = [...userMems, ...agentMems, ...agentSkills];
const uriSet = new Set();
return all.filter(m => {
if (uriSet.has(m.uri)) return false;