🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

hipocampus

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hipocampus - npm Package Compare versions

Comparing version
0.1.3
to
0.1.6
+21
-6
cli/init.mjs

@@ -151,3 +151,4 @@ #!/usr/bin/env node

const skillNames = ["hipocampus-core", "hipocampus-compaction", "hipocampus-search", "hipocampus-flush"];
const skillsBase = join(CWD, ".claude", "skills");
// Claude Code: .claude/skills/ | OpenClaw: skills/
const skillsBase = isOpenClaw ? join(CWD, "skills") : join(CWD, ".claude", "skills");

@@ -158,4 +159,5 @@ for (const skill of skillNames) {

const src = join(ROOT, "skills", skill, "SKILL.md");
if (existsSync(src) && !existsSync(destFile)) {
if (!existsSync(destDir)) mkdirSync(destDir, { recursive: true });
if (!existsSync(destDir)) mkdirSync(destDir, { recursive: true });
// Always overwrite — ensures updates propagate on reinstall/upgrade
if (existsSync(src)) {
copyFileSync(src, destFile);

@@ -166,2 +168,15 @@ console.log(` + skill: ${skill}`);

// Migration: remove skills from wrong location (.claude/skills on OpenClaw, skills/ on Claude Code)
if (isOpenClaw) {
const wrongBase = join(CWD, ".claude", "skills");
for (const skill of skillNames) {
const wrongDir = join(wrongBase, skill);
if (existsSync(wrongDir)) {
const { rmSync } = await import("node:fs");
rmSync(wrongDir, { recursive: true });
console.log(` ~ migrated skill ${skill} from .claude/skills/ to skills/`);
}
}
}
// ─── Step 5: Create config ───

@@ -223,3 +238,3 @@

This project uses hipocampus 3-tier memory. Follow \`.claude/skills/hipocampus-core/SKILL.md\`.
This project uses hipocampus 3-tier memory. Follow \`skills/hipocampus-core/SKILL.md\`.
**All memory write operations MUST be dispatched to subagents** to keep the main session context clean.

@@ -236,3 +251,3 @@

3. **DO NOT SKIP** Read \`TASK-QUEUE.md\` — pending items
4. **DO NOT SKIP** **Compaction maintenance (subagent):** Dispatch a subagent to scan memory/daily/, memory/weekly/, memory/monthly/ for "needs-summarization" files. If found, process per hipocampus-compaction skill using subagents (chain: Daily→Weekly→Monthly→Root), then run \`hipocampus compact\` + \`qmd update\`.
4. **DO NOT SKIP** **DO NOT COMPROMISE** **Compaction maintenance (subagent):** Dispatch a subagent to run hipocampus-compaction skill USING SUBAGENTS (chain: Daily→Weekly→Monthly→Root), then run \`hipocampus compact\` + \`qmd update\` + \`qmd embed\`. Always run — do not check first, the subagent handles it.
**ALL 4 procedures must be completed before responding to the user NO MATTER WHAT**

@@ -254,3 +269,3 @@

- memory/*.md (raw): permanent, never delete
- Search: see \`.claude/skills/hipocampus-search/SKILL.md\`
- Search: see \`skills/hipocampus-search/SKILL.md\`
- If this session ends NOW, the next session must be able to continue immediately

@@ -257,0 +272,0 @@ `;

{
"name": "hipocampus",
"version": "0.1.3",
"version": "0.1.6",
"description": "Drop-in memory harness for AI agents — 3-tier memory, compaction tree, hybrid search via qmd",

@@ -5,0 +5,0 @@ "type": "module",