Log inGet started free

Agent Rules

Mandatory rules for agents using MemoryLayer. Paste into your agent config and leave them there.

Faster: auto-inject with one command
memorylayer setup detects your IDEs and writes all files below automatically.
Terminal
memorylayer setup --ide all --yes
memorylayer setup --ide claude --no-hooks
memorylayer setup --ide all --remove --yes

Auto setup

Supports Claude Code, Cursor, Windsurf, and Antigravity. Any other MCP-compatible agent works with a manual paste below.

Copy-paste rules

Add to ~/.claude/CLAUDE.md. Setup also installs hooks and ~/.claude/skills/memorylayer/SKILL.md.

~/.claude/CLAUDE.md

Tool decision guide

SituationTool
Exact skill or symbol name knownO(1) deterministic — fastest pathskill_load
Code question about an indexed projectPrimary entry — always first for code Qsrecall(answer)
Session just startedMandatory before first responserecall (preview)
Brief message / need recent contextRecency-sorted, no search neededrecall(list)
New project mentionedMandatory, run oncecode(ingest)
User shares preference / decision / correctionDedupes automaticallyremember
Need related context beyond a search resultWalks tag/semantic/temporal edges (Pro+)recall(explore: true)
Broad topic exploration (Pro+)Also surfaces derived + open_loops via WCMrecall(weave)
Code answer was empty — need raw hitsIntent-based fallbackcode(locate)
Need specific literal in codeFallback for literal verificationcode(grep)
Long document to store (Pro+)Splits into searchable chunksremember(chunk)
Multiple facts at once (Pro+)Up to 100 items per callremember(batch)
End of session — derive + prune (Pro+)WCM sleep cycle; transitive facts + contradictionsconsolidate(ripple)