Scaffolded memory-bank toolkit for AI coding agents
Structured project memory · Progressive context loading · Deterministic maintenance hooks
Claude Code · Codex CLI · Qwen Code · OpenCode
- Why Memora?
- What Memora Provides Today
- Core Strengths
- How Memora Works
- Getting Started
- Documentation
- Compatibility
- Roadmap
- Support & Contributing
- License
Memora helps teams turn long-lived project context into a structured, navigable, and reusable memory-bank for AI coding agents.
Instead of relying on one large prompt or an ever-growing context window, Memora gives your repository a clear memory architecture:
- a stable entry point for agents,
- a routing layer for minimal relevant context,
- canonical knowledge files for architecture, decisions, conventions, and testing,
- isolated session state for ongoing work,
- maintenance hooks that keep memory workflows visible and predictable.
Memora is especially useful when AI agents work on the same codebase across many sessions and need more than ad-hoc prompting.
Memora delivers a production-ready foundation for structured project memory:
| Feature | Description |
|---|---|
| 📋 Scaffold Delivery | Deterministic setup via scaffold.manifest.json |
| 🛠️ CLI Commands | memora init, memora validate, memora doctor |
| 📚 Memory-Bank Template | Core files: PROJECT.md, ARCHITECTURE.md, CONVENTIONS.md, TESTING.md, DECISIONS.md, OPEN_QUESTIONS.md, CHANGELOG.md, and .local/ session state |
| ✔️ Schema-Driven Validation | Front-matter validation, cross-file integrity checks, strict mode, JSON output, watch mode |
| 🔍 Validation Profiles | core, extended, governance — choose your level |
| 🚫 Pre-Commit Hooks | Automatic validation for memory-bank/*.md files |
| 🤖 GitHub Actions CI | Core validation, extended validation, markdown linting |
| 🔔 Advisory Hooks | Deterministic reminders for reflection, consolidation, cleanup |
| 🔌 Multi-Toolchain Support | Native adapters for Claude Code, Codex CLI, Qwen Code, OpenCode |
Bottom line: Memora gives you structure, validation, and repeatable workflows out of the box.
Memora enforces a predictable, navigable memory structure:
- Entry point:
AGENTS.md - Routing table:
memory-bank/INDEX.md(minimal relevant context) - Stable knowledge: PROJECT.md, ARCHITECTURE.md, DECISIONS.md, CONVENTIONS.md, TESTING.md
- Active session:
.local/CURRENT.mdand.local/HANDOFF.md
Instead of scattered notes, you get a canonical knowledge model.
Memora loads only what agents need:
- Routing layer in
INDEX.mdmaps tasks to specific files - Progressive context loading prevents information overload
- Less noise = faster decisions, better focus
Deterministic workflows for reproducible agent behavior:
- Shared scaffold manifest (
scaffold.manifest.json) - Explicit lifecycle docs (
LIFECYCLE.md) - Advisory hooks for reflection, consolidation, cleanup
- Installation and maintenance become visible, not improvised
Production-grade quality gates:
- Local validation with multiple profiles (
core,extended,governance) - Strict mode for teams
- JSON output for CI integration
- Watch mode for live feedback
- Pre-commit hooks + GitHub Actions CI
memora doctorfor health diagnostics
One memory-bank, multiple AI agents:
- Same structure works with Claude Code, Codex CLI, Qwen Code, OpenCode
- Toolchain-specific adapters (
.claude/,.agents/,.qwen/,.opencode/) - Unified workflow across teams
Memora follows a simple, repeatable workflow:
┌─────────────────────────────────────────────────────┐
│ 1. Agent starts session │
│ └─> Reads: AGENTS.md (entry point) │
├─────────────────────────────────────────────────────┤
│ 2. Load context │
│ └─> Checks: memory-bank/INDEX.md (routing) │
│ └─> Reads: Only relevant files (via routing) │
├─────────────────────────────────────────────────────┤
│ 3. Work on task │
│ └─> Solves problem, writes code, creates docs │
├─────────────────────────────────────────────────────┤
│ 4. Update memory │
│ └─> Updates: CURRENT.md, HANDOFF.md │
│ └─> Runs: Advisory hooks (reflect, consolidate) │
└─────────────────────────────────────────────────────┘
✅ Less context noise — Load only what you need ✅ Better session continuity — Handoff files bridge gaps ✅ Clean separation — Stable knowledge vs. active work
Before installing Memora, ensure you have:
| Requirement | Version | Download |
|---|---|---|
| Node.js | >= 16 | nodejs.org |
| bash | latest | macOS/Linux (Windows: Git Bash or WSL) |
| npm | 6+ | Bundled with Node.js |
Option 1: From package
npm install -g ./memora-cli-X.X.X.tgzOption 2: Development mode
git clone <repo-url>
cd memora
npm linkVerify installation:
memora --version
memora --helpmemora init ./my-project
cd ./my-projectThis creates a scaffolded memory-bank/ directory with all core files.
# Basic validation (all surfaces)
memora validate
# Memory surface only — fast, pre-commit friendly
memora validate --scope memory
# Repo-docs surface only — README and docs/ link integrity
memora validate --scope repo-docs
# Strict mode (recommended for teams)
memora validate --strict
# Check specific profile
memora validate --profile extended
memora validate --profile governance
# Watch mode (live validation)
memora validate --watch
# Health check
memora doctorStart with these files (in order):
memory-bank/PROJECT.md— Define project identity and scopememory-bank/ARCHITECTURE.md— Document system designmemory-bank/CONVENTIONS.md— Establish code/workflow rulesmemory-bank/TESTING.md— Define testing strategy
See Project.md template for detailed guidance.
Memora supports multiple AI coding agents. Choose your toolchain:
- 🔵 Claude Code — Native integration via
.claude/adapter - ⚙️ Codex CLI — Standalone CLI mode
- 🟠 Qwen Code — Alibaba Qwen integration
- 🟣 OpenCode — OpenAI Code integration
Adapters and hooks are automatically copied by memora init from scaffold.manifest.json.
For detailed setup, see docs/GETTING_STARTED.md
Once your memory-bank is initialized:
- 📚 Read the Memory Model to understand the architecture
- 🔧 Explore CLI Reference for all available commands
- 🎯 Check Workflows for session patterns
- ✅ Run
memora doctorfor health diagnostics
| Guide | Purpose |
|---|---|
| Documentation Index | Complete reference map |
| Getting Started | First-time setup walkthrough |
| CLI Reference | Commands, flags, examples |
| FAQ | Common questions answered |
| Topic | Guide |
|---|---|
| Memory Model | Memory Model — Layered architecture, scope, routing |
| Workflows | Workflows — Session patterns, consolidation, reflection |
| Toolchains | Toolchains — Claude Code, Codex, Qwen, OpenCode |
| Hooks | Hooks — Advisory reminders, automation |
| Topic | Guide |
|---|---|
| Validation | Validation — Schemas, strict mode, CI integration |
| Patterns | Patterns — Reusable techniques and templates |
| Security | Security — Privacy zones, PII handling, safe practices |
| Design | Manifesto — Philosophy & protocols behind Memora |
Memora works seamlessly across all major AI coding agents:
| Component | Claude Code | Codex CLI | Qwen Code | OpenCode |
|---|---|---|---|---|
| Adapter files | ✅ | ✅ | ✅ | ✅ |
| Hook integration | ✅ | ✅ | ✅ | ✅ |
| Workflow docs | ✅ | ✅ | ✅ | ✅ |
| Shared memory-bank | ✅ | ✅ | ✅ | ✅ |
Key advantage: One unified memory-bank architecture works across all toolchains — no reimplementation needed.
Memora is actively developed. The roadmap builds on our solid foundation:
- 🔍 Rich schema-driven validation — Stricter, faster validation rules
- 🛠️ Install diagnostics — Better
memora doctoroutput - 🤖 Memory automation — Smart consolidation and cleanup helpers
- 📦 Starter templates — Industry-specific memory-bank packs
- 🔧 Adapter enhancements — Deeper integration for each toolchain
- 📊 Observability tooling — Better audit trails and diagnostics
- 🚀 Performance improvements — Faster validation and scaffold delivery
See CHANGELOG for recent updates and DECISIONS for architectural context.
We welcome contributions! Please see our Contributing Guidelines for:
- How to report bugs and request features
- Development setup and testing
- Code review process
- Commit conventions
Quick links:
- Issues — Bug reports & feature requests
- Discussions — Questions & ideas
- Pull Requests — Code contributions
- 📖 Documentation — Complete guides and references
- ❓ FAQ — Common questions answered
- 🐛 Issues — Found a bug? Report it here
- 💡 Discussions — Ideas and questions
- Status: Actively maintained
- Latest release: See CHANGELOG
- Node.js support: 16+
- License: MIT
MIT License — Use freely in personal and commercial projects.
See LICENSE file for full details.
Memora — Structured memory for long-lived AI coding work