Project memory
Save decisions, fixes, constraints and working preferences for your agents to reuse, such as "Keep database migrations short and retry busy locks."
What your agents get
memory_search, memory_read, memory_save and memory_keep; Antigravity and any other agent use the command line.A changed file marks a lesson for rechecking. If hooks are off, unavailable or too slow, delivery can be skipped; your agent searches when earlier decisions matter. The task's Memory record in Files shows what was used and saved.
Lessons about you
Personal lessons apply across repositories on this computer and never go to Git. Find them under Settings › Memory › Yours · every project.
Manage your lessons


In Settings › Memory, search, edit or retire lessons, and pin up to five per project and five personal ones. Use Still true after checking changed files. Stale lessons retire after 90 days and can be restored. Lessons in every session turns off automatic delivery; you can also pause memory.
What stays local
Lessons and the search model stay on your computer; no lesson goes to an embedding service. A lesson given to your agent becomes part of its context, and a cloud agent may send that context to its provider. Agent and session attribution stays local when lessons go to Git.
Share lessons through Git
Turn it on
In Manage projects, enable Store project lessons in Git for the repository. It is off by default and applies to this computer.Export
Export writes eligible lessons todocs/memories/with a readableLESSONS.md, besidedocs/plans/. The local store stays the source. Files in an older.qualitylayer/memories/move there on the next export; you commit the move.Commit
Review the files, then commit and push them yourself. Memory exchange never commits, pushes or pulls.
Turning sharing off stops exchange and leaves committed files in place.
Restore lessons from Git
Choose Restore from repository in the project where you want the lessons. Your agent treats them as untrusted until it checks them against the current code. Search, startup and export never import by themselves.
Imports keep each lesson's history, and a missing file never retires a local lesson. If two computers changed the same lesson, both stay: choose one with Compare versions and Use selected version before you export again.
Import Pilot lessons
Pilot Shell memories import per project: see From Pilot Shell.
Command line
Search, save, pin and sync from the command line
qualitylayer memory context "database migration locks" --json
qualitylayer memory store --title "Bound migration locks" --content "Keep migration locks short, because a waiting migration blocks every write." --kind pattern --file db/migrations --json
qualitylayer memory store --about you --title "Prefer concise replies" --content "Keep replies short unless I ask for detail." --json
qualitylayer memory pin <id> --json
qualitylayer memory share on --json
qualitylayer memory export --json
qualitylayer memory import --json
qualitylayer memory conflicts --json
qualitylayer memory reconcile <id> --revision <revision> --candidate local --json
All commands: reference.