This guide adapts Claude Code's memory management pattern to OmG:
- keep memory layered and file-based
- keep the root index short
- split details into topic files
- activate modular rules only when relevant
project/
|- GEMINI.md
|- MEMORY.md
`- .omg/
|- memory/
| |- project-overview.md
| |- architecture.md
| |- decisions.md
| `- workflows.md
`- rules/
|- always/
| `- project-invariants.md
|- tests-required.md
|- migration-safety.md
|- security-review.md
|- docs-sync.md
`- perf-watch.md
- Keep
MEMORY.mdcompact (index only, high-signal summaries). - Store details in
.omg/memory/*.mdtopic files. - Use frontmatter-based rules in
.omg/rules/*.md:description: short purposeglobs: optional file pattern activationalwaysApply: optional unconditional activation
- Prefer additive updates over large rewrites.
- Regenerate index after topic-file changes.
---
description: "Require tests for behavior changes."
globs:
- "**/*.ts"
- "**/*.tsx"
alwaysApply: false
---
# tests-required
- Add or update tests for changed behavior.
- If tests are unavailable, provide explicit validation evidence.The OmG memory MCP server exposes:
memory_bootstrapmemory_index_syncmemory_rules_resolvememory_build_context- Existing entry tools:
memory_read,memory_write,memory_add_note,memory_search
- Run
memory_bootstraponce per project. - Add/update topic files during plan/exec/verify cycles.
- Run
memory_index_syncto keepMEMORY.mdconcise. - Resolve active rules using changed file paths.
- Build prompt context with
memory_build_contextbefore long edits.