Claude Code hook

Claude Memory Engine

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.

134 stars 27 forksHooks Source

Install

From source
git clone https://github.com/HelloRuru/claude-memory-engine.git

From the README

Claude Memory Engine

  Not just memory — it learns.
  Learn from mistakes. Learn to improve.
  AI can be a student too, growing through every cycle.

  Built with hooks and markdown. No database. No external API.
  Just scripts and files. Nothing hiding.

  English  |  繁體中文  |  日本語

WHAT — Every new conversation, Claude starts from zero

- That bug you spent 30 minutes on last session — it hits the same wall again
- Your preferences, your project rules — gone the moment a new session starts
- Switch from Project A to Project B — it can't tell which is which
- Long conversations get fuzzy — important decisions vanish after compression
- Memory files pile up — no one organizes them, they just keep growing
- Your computer dies — local memory gone, no backup

Memory tools can help it "remember." But remembering is not the same as learning.

WHY — Because it learns

Memory Engine doesn't just help Claude remember — it teaches Claude to learn like a student:

- Mistakes don't repeat — it saves both the problem and the fix
- Switching projects doesn't mean starting over — it knows what you're working on
- It gets better over time — each cycle, it understands you a little more
- You can see how it learns — everything is markdown and JS, no black box

HOW — Through the Student Loop

- Student Loop — 8-step learning cycle, like cramming for finals but it keeps getting better
- Smart Context — auto-loads the right project's memory based on your working directory
- Auto Learn — saves both the problem and the fix when it hits a wall, won't repeat the same mistake

:brain: The Student Loop
Think of it like exam prep. I'm trying to make Claude Code act like a student cramming for finals — take notes after every class, organize them, review for patterns, build an…
Read the full README on GitHub

How hooks work

  • Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
  • They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
  • A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Claude Code docs

Details

Type
Hooks
Language
JavaScript
License
MIT
Last updated
11 May 2026
Topics
aiai-agentsai-memoryai-toolsanthropicclaudeclaude-codeclaude-code-pluginclaude-memoryclaude-skillslong-term-memorymemory-engine

FAQ

What is Claude Memory Engine?

Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies. It is a hook for Claude Code, from HelloRuru/claude-memory-engine on GitHub.

How do I install Claude Memory Engine?

Clone HelloRuru/claude-memory-engine from GitHub and follow the setup steps in its README.

Is Claude Memory Engine popular?

HelloRuru/claude-memory-engine has 134 GitHub stars and 27 forks. It was last updated on 11 May 2026.

More hooks

Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.