learning-loop is retired and no longer maintained. its successor is brain, by omit: https://github.com/omit-nz/brain
brain is early. it searches and captures notes and imports a learning-loop vault. it does not yet have learning-loop's hooks, reflect or dream. your vault is plain markdown and stays yours.
learning-loop
A context engineering plugin for Claude Code. It teaches Claude how to work with what you know.
Episodic memory gives Claude recall. Learning-loop gives Claude judgment. It verifies sources before anything lands in your vault. It gates promotion on quality scores. It writes in your voice. It surfaces what you already know before searching the web. The result is a knowledge system that compounds through discipline, not volume.
Why
Most note-taking systems decay. The vault grows, but old notes go unread, contradictions accumulate, and new sessions repeat work the last session already did. Learning-loop closes that loop. Every session starts by recalling what you already know. Every capture earns its place against quality gates. Every belief that changes gets traced through everything that depends on it. Capture everything, then subtract until only the load-bearing remains.
The outcome is a vault that gets sharper, not heavier. Two layers wire the discipline into the runtime. Ten lifecycle hook handlers across seven Claude Code event types fire regardless of what the model decides: retrieval before you ask, a duplicate-and-frontmatter gate before every vault write, and web research routed through a config-selected gateway. The capture agents enforce the rest, verifying citations against academic APIs before a note is written, gating promotion on quality scores, and propagating corrections when a belief changes. The full hook roster lives in guide/configuration.md.
Install
One command:
curl -fsSL https://raw.githubusercontent.com/robinslange/learning-loop/main/install.sh | bash
This takes ~3 minutes. It will:
- Check your platform. This script is bash, so it covers macOS arm64, Linux x86_64, and WSL x86_64. Native Windows x64 is supported too — it has a prebuilt binary and
.cmd shims — but install it via Manual install below. Other platforms need a source build.
- Ensure Node.js 22+ is available, using your existing version manager if present (nvm, fnm, volta, asdf, mise, n, brew). If none, offers fnm.
- Add
~/.local/bin to PATH (with a versioned marker in your shell rc, so it's safe to re-run)
- Install Claude Code if missing
- Add the superpowers-marketplace and learning-loop marketplace
- Install both
episodic-memory and learning-loop plugins
To inspect first: curl -fsSL https://raw.githubusercontent.com/robinslange/learning-loop/main/install.sh | less
After it finishes, open Claude Code and run /learning-loop:init to configure your vault.
Manual install
If you'd rather do it yourself or you're on a platform the script doesn't support:
# 1. Install Claude Code: https://docs.anthropic.com/en/docs/claude-code
# 2. Add marketplaces:
claude plugin marketplace add obra/superpowers-marketplace
claude plugin marketplace add robinslange/learning-loop
# 3. Install plugins:
claude plugin install episodic-memory@superpowers-marketplace
claude plugin install learning-loop@learning-loop-marketplace
# 4. Restart Claude Code, then run /learning-loop:init
Dependencies
- episodic-memory (required). Provides semantic recall over past Claude Code conversations, which retrieval,
/discovery, /reflect, and /refresh depend on. Install via /plugin install episodic-memory@superpowers-marketplace (lives in obra/superpowers-marketplace).
Uninstall
Run /learning-loop:uninstall for a guided removal, or by hand:
/plugin # remove via marketplace UI
claude mcp remove episodic-memory # only if no other plugin uses it — check first: claude mcp list
rm -rf ~/.claude/plugins/data/learning-loop-learning-loop-marketplace/ # purge captured indexes
To turn off single hooks instead, list them under hooks.disabled in the plugin's config.json. The per-hook table, with what each one costs to turn off, is in plugin/README.md.
Your data
Everything stays on your machine. learning-loop reads and writes three places:
| Location | Content |
|---|
your vault (set by /learning-loop:init) | notes you author; read on retrieval, written by capture skills |
~/.claude/plugins/data/learning-loop-learning-loop-marketplace/ | edges database, provenance and retrieval logs, hook-error logs, session markers |
~/.claude/projects/<project>/memory/ | auto-memory files written when you approve a capture |