Claude Code hook
Claude Memory Engine
Claude Code 的記憶系統 | A memory system built with hooks + markdown. Zero dependencies.
Install
git clone https://github.com/HelloRuru/claude-memory-engine.gitFrom 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…
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.
Details
- Repository
- HelloRuru/claude-memory-engine
- 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
Claude Adhd Skills
171ravila4/claude-adhd-skills
Claude Code skills and hooks for staying organized with AI agents.
Agent Usage Guard
93rbartoli/agent-usage-guard
Hook mod that pauses subagent fan-out, heavy prompts and retry loops before they burn quota.
agentjail
100LuD1161/agentjail
Policy guardrails that check every Claude Code, Codex or Cursor tool call against local rules.
Canny
132qkal/Canny
Stops AI coding agents from claiming work is done without evidence. Deterministic hooks decide, TypeSafe's Jev advises. Append-only ledger, zero runtime dependencies.
Flonat Research
149flonat/flonat-research
Shareable Claude Code + Codex infrastructure for PhD researchers — skills, agents, hooks, and rules for academic workflows
Helpline
115coleam00/helpline
Demonstration codebase for building the AI Layer (CLAUDE.md hierarchy, hooks, skills, LSP, MCP, plugin) — companion repo for the 'How Claude Code works in large codebases' video.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.