Skip to content

Verbasik/Memora

Repository files navigation

🧠 Memora

Scaffolded memory-bank toolkit for AI coding agents

Structured project memory · Progressive context loading · Deterministic maintenance hooks

License: MIT Status: Stable Docs Node.js >= 16

Supported AI Toolchains

Claude Code · Codex CLI · Qwen Code · OpenCode


📖 Table of Contents


Why Memora?

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.


✨ What Memora Provides Today

Memora delivers a production-ready foundation for structured project memory:

Core Features

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.


💪 Core Strengths

1. 🏗️ Clear Memory Architecture

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.md and .local/HANDOFF.md

Instead of scattered notes, you get a canonical knowledge model.

2. 🎯 Minimal Relevant Context

Memora loads only what agents need:

  • Routing layer in INDEX.md maps tasks to specific files
  • Progressive context loading prevents information overload
  • Less noise = faster decisions, better focus

3. 🔄 Operational Predictability

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

4. ✅ Validation-First Workflow

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 doctor for health diagnostics

5. 🔗 Cross-Tool Compatibility

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

🔄 How Memora Works

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) │
└─────────────────────────────────────────────────────┘

Three Practical Benefits

Less context noise — Load only what you need ✅ Better session continuity — Handoff files bridge gaps ✅ Clean separation — Stable knowledge vs. active work


Getting Started

Prerequisites

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

Installation

Option 1: From package

npm install -g ./memora-cli-X.X.X.tgz

Option 2: Development mode

git clone <repo-url>
cd memora
npm link

Verify installation:

memora --version
memora --help

Quick Start

1️⃣ Initialize a project memory-bank

memora init ./my-project
cd ./my-project

This creates a scaffolded memory-bank/ directory with all core files.

2️⃣ Validate your memory bank

# 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 doctor

3️⃣ Fill the core project files

Start with these files (in order):

  1. memory-bank/PROJECT.md — Define project identity and scope
  2. memory-bank/ARCHITECTURE.md — Document system design
  3. memory-bank/CONVENTIONS.md — Establish code/workflow rules
  4. memory-bank/TESTING.md — Define testing strategy

See Project.md template for detailed guidance.

4️⃣ Connect your AI toolchain

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

Next Steps

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 doctor for health diagnostics

📚 Documentation

🚀 Quick Links

Guide Purpose
Documentation Index Complete reference map
Getting Started First-time setup walkthrough
CLI Reference Commands, flags, examples
FAQ Common questions answered

🏛️ Core Concepts

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

✅ Quality & Operations

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

🌐 Compatibility Snapshot

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.


🗺️ Roadmap

Memora is actively developed. The roadmap builds on our solid foundation:

Current Focus (Q2 2026)

  • 🔍 Rich schema-driven validation — Stricter, faster validation rules
  • 🛠️ Install diagnostics — Better memora doctor output
  • 🤖 Memory automation — Smart consolidation and cleanup helpers
  • 📦 Starter templates — Industry-specific memory-bank packs

Coming Soon

  • 🔧 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.


Support & Contributing

🤝 Contributing

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:

💬 Get Help

  • 📖 Documentation — Complete guides and references
  • FAQ — Common questions answered
  • 🐛 Issues — Found a bug? Report it here
  • 💡 Discussions — Ideas and questions

🎯 Project Health

  • Status: Actively maintained
  • Latest release: See CHANGELOG
  • Node.js support: 16+
  • License: MIT

License

MIT License — Use freely in personal and commercial projects.

See LICENSE file for full details.


MemoraStructured memory for long-lived AI coding work

⭐ Star us on GitHub · 📖 Read the docs · 💬 Join discussions

About

Memora transforms chaotic project context into a managed, routable, and verifiable knowledge architecture for AI agents.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors