Memory
Principles that stick: capture once, enforce in review, promote to AGENTS.md.
Memory is the store of project (and optional global) principles. Review enforces them. Promote writes hard rules into AGENTS.md.
dora memory add "Never use default exports" --weight 8
dora memory list
dora memory promote
Weights
| Weight | Role |
|---|---|
| 8–10 | Hard rule: strong review signal; default promote threshold is 7+ |
| 5 | Default preference |
| 1–3 | Soft preference |
Lifecycle
dora memory add "…" --weight 8
dora memory list
dora review . # principles applied as rubric
dora memory promote # hard rules → AGENTS.md
dora memory context --json # SessionStart hook payload
dora memory sync # optional private git backup
Stash
Gitignored research files can live in memory and restore after a clean clone:
dora memory stash path/to/plan.md
dora memory restore path/to/plan.md
Migration note
If you previously used journal, the first dora memory command migrates valid entries automatically. Update any SessionStart hooks to:
dora memory context --json