Skip to content

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

fix(claude-plugin): count recalled memory URIs (#3821)

t0sakifb82168659b4
diff --git a/examples/claude-code-memory-plugin/scripts/auto-recall.mjs b/examples/claude-code-memory-plugin/scripts/auto-recall.mjs
index 357a752f1..bd1d25695 100644
--- a/examples/claude-code-memory-plugin/scripts/auto-recall.mjs
+++ b/examples/claude-code-memory-plugin/scripts/auto-recall.mjs
@@ -394,7 +394,7 @@ async function main() {
return;
}
writeRecallState({
- count: 1,
+ count: new Set(endpointBlock.match(/viking:\/\/[^\s<>"')\]]+/g) || []).size,
content_items: 1,
hint_items: 0,
tokens_used: estimateTokens(endpointBlock),