Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openviking-memory",
"version": "0.1.2",
"version": "0.1.3",
"description": "Long-term semantic memory for Claude Code, powered by OpenViking. Auto-recall relevant memories at session start and capture important information during conversations.",
"author": {
"name": "OpenViking",
Expand Down
6 changes: 4 additions & 2 deletions plugins/claude-code-memory-plugin/scripts/auto-recall.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down