Project Butler
JamesShi96/project-butler
Project memory workflow for init/upgrade, profile-aware setup, end session, normal/full close, file organization, document archiving, language switching, versioned update logs, rule review, status…
3-tier agent memory system with 5-level compaction tree. An agent skill from kevin-hs-sohn/hipocampus.
$ npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kevin-hs-sohn/hipocampus hipocampus-core --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kevin-hs-sohn/hipocampus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/platforms/codex/core .claude/skills/hipocampus-core && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "hipocampus-core" agent skill from https://github.com/kevin-hs-sohn/hipocampus/tree/main/platforms/codex/core into .claude/skills/hipocampus-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hipocampus-core", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kevin-hs-sohn/hipocampus/tree/main/platforms/codex/coreType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kevin-hs-sohn/hipocampus hipocampus-core --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kevin-hs-sohn/hipocampus.git skills-src && mkdir -p .agents/skills && cp -r skills-src/platforms/codex/core .agents/skills/hipocampus-core && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "hipocampus-core" agent skill from https://github.com/kevin-hs-sohn/hipocampus/tree/main/platforms/codex/core into .agents/skills/hipocampus-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hipocampus-core", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kevin-hs-sohn/hipocampus hipocampus-core --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kevin-hs-sohn/hipocampus.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/platforms/codex/core .cursor/skills/hipocampus-core && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "hipocampus-core" agent skill from https://github.com/kevin-hs-sohn/hipocampus/tree/main/platforms/codex/core into .cursor/skills/hipocampus-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hipocampus-core", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kevin-hs-sohn/hipocampus.git --path platforms/codex/core--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kevin-hs-sohn/hipocampus hipocampus-core --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kevin-hs-sohn/hipocampus.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/platforms/codex/core .gemini/skills/hipocampus-core && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "hipocampus-core" agent skill from https://github.com/kevin-hs-sohn/hipocampus/tree/main/platforms/codex/core into .gemini/skills/hipocampus-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hipocampus-core", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kevin-hs-sohn/hipocampus hipocampus-coreInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kevin-hs-sohn/hipocampus.git skills-src && mkdir -p .github/skills && cp -r skills-src/platforms/codex/core .github/skills/hipocampus-core && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "hipocampus-core" agent skill from https://github.com/kevin-hs-sohn/hipocampus/tree/main/platforms/codex/core into .github/skills/hipocampus-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hipocampus-core", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kevin-hs-sohn/hipocampus hipocampus-core --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kevin-hs-sohn/hipocampus.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/platforms/codex/core .opencode/skills/hipocampus-core && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "hipocampus-core" agent skill from https://github.com/kevin-hs-sohn/hipocampus/tree/main/platforms/codex/core into .opencode/skills/hipocampus-core/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "hipocampus-core", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
hipocampus-core3-tier agent memory system with 5-level compaction tree. An agent skill from kevin-hs-sohn/hipocampus.
Hipocampus Core is an agent skill from kevin-hs-sohn/hipocampus. 3-tier agent memory system with 5-level compaction tree. Codex CLI version. Defines session start protocol, end-of-task checkpoints, and memory file management. MUST be followed every session.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Agent memory and File organization. The repository describes itself as: Drop-in memory harness for AI agents — 3-tier memory, compaction tree, hybrid search. One command to set up. Works with Claude Code and OpenClaw. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit df88ca1. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Hipocampus Core loads about 1.8k tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 806 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from kevin-hs-sohn/hipocampus at commit df88ca1, republished under its MIT licence (© kevin-hs-sohn). 806 words, ~1,797 tokens.
.claude/skills/hipocampus-core/SKILL.md (or your agent's skills folder).Layer 1 (System Prompt — read at session start):
SCRATCHPAD.md ~150 lines active working state
WORKING.md ~100 lines current tasks
TASK-QUEUE.md ~50 lines task backlog
memory/ROOT.md ~100 lines topic index of all memory (~3K tokens)
Long-term memory and user profile are managed by Codex's built-in memory system.
Layer 2 (On-Demand — read when needed):
memory/YYYY-MM-DD.md raw daily logs (permanent, never deleted)
knowledge/*.md detailed knowledge (searchable via qmd)
plans/*.md task plans
Layer 3 (Search — via qmd + compaction tree):
memory/daily/YYYY-MM-DD.md daily compaction nodes
memory/weekly/YYYY-WNN.md weekly compaction nodes
memory/monthly/YYYY-MM.md monthly compaction nodes
Tree traversal: ROOT → monthly → weekly → daily → rawFIRST RESPONSE RULE: On the very first user message of every session, before doing ANYTHING else: Run the Session Start protocol below FIRST (ALL steps. NO SKIP.) This takes priority over ANY user request — even if the user asks you to do something specific. Complete ALL steps below, ONLY THEN respond to the user.
ALL 4 procedures must be completed before responding to the user NO MATTER WHAT
DO NOT SKIP Read SCRATCHPAD.md — current work state
DO NOT SKIP Read WORKING.md — active tasks
DO NOT SKIP Read TASK-QUEUE.md and memory/ROOT.md — pending items and topic index
DO NOT SKIP DO NOT COMPROMISE Compaction maintenance (cooldown-gated):
Read memory/.compaction-state.json and hipocampus.config.json (compaction.cooldownHours, default 3).
Compaction triggers (any ONE is sufficient):
cooldownHours since lastCompactionRunrawLinesSinceLastCompaction > 300checkpointsSinceLastCompaction > 5cooldownHours is 0If no trigger is met: skip compaction subagent.
If any trigger is met: write memory/.compaction-state.json with { "lastCompactionRun": "<current ISO timestamp>", "rawLinesSinceLastCompaction": 0, "checkpointsSinceLastCompaction": 0 }, then dispatch compaction subagent.
State file is written immediately on dispatch (fire-and-forget), not after subagent completion. The cooldown tracks "a compaction was initiated," not "a compaction succeeded."
This step is MANDATORY every session. You MUST read the state file and make the judgment. The only thing that may be skipped is the subagent dispatch when no trigger is met. ALL 4 procedures must be completed before responding to the user NO MATTER WHAT
Note: hipocampus hooks in .codex/hooks.json handle event-driven mechanical compaction — no manual scheduling needed.
When the user's question may relate to past memory, use the hipocampus-recall skill for structured retrieval. See hipocampus/skills/recall/SKILL.md.
After completing any task, dispatch a subagent to append a structured log to memory/YYYY-MM-DD.md.
Compose the subagent task:
Append the following to memory/YYYY-MM-DD.md:
[Topic Name] [type]
- request: [what the user asked]
- analysis: [what you researched/analyzed]
- decisions: [choices made with rationale]
- outcome: [what was done, files changed]
- references: [knowledge/ files, external sources]
Where
typeis: project | feedback | user | referenceFor feedback entries, use:
[Feedback Topic] [feedback]
- rule: [the behavioral rule]
- why: [reason given]
- how-to-apply: [when/where this applies]
The subagent only needs to do one thing: append to the daily log. This is the source of truth — everything else (SCRATCHPAD, WORKING, TASK-QUEUE) is updated lazily at next session start or by the agent naturally during work.
After appending to the daily log, the subagent should also increment the checkpoint counter in memory/.compaction-state.json: read the file, increment checkpointsSinceLastCompaction by 1, write back. If the file or field is missing, start from 0.
The subagent needs the task summary you provide — it doesn't have access to the conversation.
Priority if timeout imminent (no time for subagent — write directly to memory/YYYY-MM-DD.md)
Do not wait for task completion to write to the daily log. Proactively dispatch a subagent to append to memory/YYYY-MM-DD.md when:
Compose the subagent task with a summary of what to dump, same as the checkpoint format. The subagent writes the file; the main session stays clean.
This protects against context compression — if the platform compresses your conversation history, undumped details are lost forever. Write early, write often. The daily log is append-only, so multiple dumps in the same session are fine.
When composing checkpoint content for the subagent, exclude:
[REDACTED].| File | Target | When Exceeded |
|---|---|---|
| ROOT.md | ~100 lines (~3K tokens) | Automatic recursive self-compression |
| SCRATCHPAD | ~150 lines | Remove completed items |
| WORKING | ~100 lines | Remove completed tasks |
| TASK-QUEUE | ~50 lines | Archive completed items |
memory/YYYY-MM-DD.md): permanent. Never delete or edit after session.© kevin-hs-sohn, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in platforms/codex/core of kevin-hs-sohn/hipocampus.
Open the folder on GitHubat commit df88ca1
Hipocampus Core next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Hipocampus Core this skillkevin-hs-sohn/hipocampus | 210 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Project ButlerJamesShi96/project-butler | 374 | — | ~3.9k | Automated safety check: Pass | MIT | |
| Directory Managementawslabs/agent-plugins | 916 | — | ~426 | Automated safety check: Pass | Apache-2.0 | |
| Memory Md Managementgiuseppe-trisciuoglio/developer-kit | 357 | — | ~2.4k | Automated safety check: Notes | MIT | |
| Project Docscoco-research/coco | 513 | — | ~3.6k | Automated safety check: Pass | Custom licence | |
| Reflect on Session Learningscursor/plugins | 11k | 5 repos | ~1.2k | Automated safety check: Pass | None |
JamesShi96/project-butler
Project memory workflow for init/upgrade, profile-aware setup, end session, normal/full close, file organization, document archiving, language switching, versioned update logs, rule review, status…
awslabs/agent-plugins
Manages project directory setup and artifact organization. An agent skill from awslabs/agent-plugins.
giuseppe-trisciuoglio/developer-kit
Provides comprehensive memory file management capabilities including auditing, quality assessment, and targeted improvements for files such as CLAUDE.md.
coco-research/coco
A skill your agent uses when starting a new project, onboarding to an existing product, or auditing an existing folder structure against the standard.
cursor/plugins
Starts three parallel reviewer subagents over the current conversation transcript, then turns their findings into concrete edits to existing skills.
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
kevin-hs-sohn/hipocampus
Build 5-level compaction tree (daily/weekly/monthly/root) with smart thresholds and fixed/tentative lifecycle.
kevin-hs-sohn/hipocampus
3-tier agent memory system with 5-level compaction tree. An agent skill from kevin-hs-sohn/hipocampus.
kevin-hs-sohn/hipocampus
3-tier agent memory system with 5-level compaction tree. An agent skill from kevin-hs-sohn/hipocampus.
kevin-hs-sohn/hipocampus
3-tier agent memory system with 5-level compaction tree. An agent skill from kevin-hs-sohn/hipocampus.
kevin-hs-sohn/hipocampus
Memory recall guide. An agent skill from kevin-hs-sohn/hipocampus.
kevin-hs-sohn/hipocampus
Search memory using qmd (BM25 + optional vector) and compaction tree traversal.
Categories
3-tier agent memory system with 5-level compaction tree. An agent skill from kevin-hs-sohn/hipocampus. Hipocampus Core is an agent skill from kevin-hs-sohn/hipocampus. 3-tier agent memory system with 5-level compaction tree.
Hipocampus Core fits situations like: tasks that involve Agent memory; tasks that involve File organization.
Run `npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a claude-code`. Or copy the skill folder (platforms/codex/core in kevin-hs-sohn/hipocampus) into .claude/skills/hipocampus-core in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a codex`. Or copy the skill folder (platforms/codex/core in kevin-hs-sohn/hipocampus) into .agents/skills/hipocampus-core in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kevin-hs-sohn/hipocampus --skill hipocampus-core -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hipocampus-core, .gemini/skills/hipocampus-core, .github/skills/hipocampus-core and .opencode/skills/hipocampus-core in your project.
SKILL.md names no scripts, command-line tools or credentials: Hipocampus Core is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Hipocampus Core is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Hipocampus Core: Project Butler (JamesShi96/project-butler, 374 stars), Directory Management (awslabs/agent-plugins, 916 stars), Memory Md Management (giuseppe-trisciuoglio/developer-kit, 357 stars) and Project Docs (coco-research/coco, 513 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kevin-hs-sohn (a GitHub user) maintains it in kevin-hs-sohn/hipocampus, which has 210 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on June 8, 2026.
Source: kevin-hs-sohn/hipocampus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.