compaction
Build 5-level compaction tree (daily/weekly/monthly/root) with smart thresholds and…
Memory recall guide. Structured retrieval from hipocampus memory — ROOT.md triage, manifest-based LLM selection, qmd search fallback.
$ npx -y skills add kevin-hs-sohn/hipocampus --skill recall --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/recallContext preview
The summary Claude sees to decide when to auto-load this skill.
Memory recall guide. Structured retrieval from hipocampus memory — ROOT.md triage, manifest-based LLM selection, qmd search fallback.
name: hipocampus-recall description: "Memory recall guide. Structured retrieval from hipocampus memory — ROOT.md triage, manifest-based LLM selection, qmd search fallback."
Use this when the user's question may relate to past memory. Three-step fallback: ROOT.md O(1) lookup → manifest LLM selection → qmd search.
Check ROOT.md Topics Index for the query topic.
**Decision rule:** If Topics Index contains a keyword within 1 semantic hop of the query, it's a match. "배포" matches "deployment". "CI/CD" matches "github-actions".
Use this ONLY when ROOT.md Topics Index has no relevant match but you suspect memory may exist (e.g., the user references something that sounds familiar, or the topic is cross-domain).
1. **Build manifest** from compaction node frontmatter (NOT full content):
2. **Self-evaluate:** Given the manifest and the user's query, select up to 5 most relevant files.
3. **Load selected files** in full and extract the answer.
**Token budget:** Manifest should be <500 tokens. If too large, use monthly nodes only.
If Step 1-2 don't find the answer and qmd is installed:
qmd query "keyword1 keyword2" # hybrid (BM25 + vector) qmd search "keyword1 keyword2" # BM25 only qmd vsearch "semantic query" # vector only
Use 2-4 specific keywords. Try variations if first query misses.
When recalling memory, check the source age:
Drop-in proactive memory harness for AI agents. Zero infrastructure — just files. One command to set up. Works immediately with Claude Code, OpenCode, and OpenClaw.
Repo: kevin-hs-sohn/hipocampus
Build 5-level compaction tree (daily/weekly/monthly/root) with smart thresholds and…
3-tier agent memory system with 5-level compaction tree. Claude Code version. Defines session…
Manual memory flush: dump current session context to daily raw log via subagent. Invoke with…
Search memory using qmd (BM25 + optional vector) and compaction tree traversal. Use ROOT.md…