Skip to main content
Glama

🎯 The Problem

AI coding agents are only as good as the context they receive. Yet the files that control that context β€” CLAUDE.md, .claudeignore, AGENTS.md, CURSOR.md β€” are maintained manually, inconsistently, and with no tooling support. When your code evolves but your context files don't, your AI agent works with outdated information.

RepoMemory solves this. It's the first tool that treats AI context quality as a product β€” automatically scanning, auditing, generating, and monitoring the intelligence layer of your repositories.


πŸŽ₯ Demo


✨ Features

πŸ” Multi-Agent Audit

Score your AI context files across 7 quality dimensions (Architecture, Commands, Conventions, Off-limits, Testing, Deployment, Freshness) for 6 AI coding agents:

Agent

File

Score

CLAUDE.md

0–100

.cursor/rules.mdc

0–100

.windsurf/rules.md

0–100

GEMINI.md

0–100

AGENTS.md

0–100

AIDER.md

0–100

🧠 Core Capabilities

πŸ”Œ Integrations

Interface

What it does

Quick Start

🌐 Web App

Full-featured dashboard with scan, audit, generate, compare

npm run dev β†’ localhost:3000 Β· Live demo

πŸ’» CLI

Run scans, generate, and check from terminal

npm run cli scan .

πŸ€– MCP Server

Call RepoMemory tools from any AI agent

8 tools, stdio transport

πŸ–₯️ VS Code

Sidebar panel with project tree + webview audit

Open vscode/, F5

πŸ”„ GitHub Action

Auto-check PRs for context drift

uses: ./github/actions/repomemory-check


πŸš€ Quick Start

# Clone
git clone https://github.com/PraveenJayaprakash-JP/repomemory.git
cd repomemory

# Install & configure
npm install
cp .env.example .env.local   # Add your AI API key

# Start the web app
npm run dev                   # β†’ http://localhost:3000

# Live demo: https://repomemory-omega.vercel.app

# Or use the CLI
npm run cli scan /path/to/your/repo
npm run cli generate /path/to/your/repo --apply

🐳 One-Click Fix

# Generate + apply all context files in one command
npm run cli generate /path/to/repo --apply

πŸ€– MCP for AI Agents

Add to your opencode.json or claude_desktop_config.json:

{
  "mcpServers": {
    "repomemory": {
      "command": "npx",
      "args": ["tsx", "mcp/src/index.ts"],
      "cwd": "/path/to/repomemory"
    }
  }
}

Available MCP tools:

Tool

Description

scan_repo

Scan + audit a repo folder

generate_pack

Generate context files via AI

check_drift

Detect stale context

apply_pack

Generate + write to repo

explain_repo

Explain repo architecture

suggest_context_updates

Get recommendations

repo_health

Overall health score

explain_codebase

Comprehensive codebase explanation


πŸ“Έ Screenshots


βš™οΈ Configuration

Variable

Default

Description

AI_PROVIDER_API_KEY

β€”

Your AI provider API key

AI_PROVIDER_BASE_URL

https://opencode.ai/zen/go/v1

OpenAI-compatible endpoint

AI_MODEL

deepseek-v4-flash

Model for generation tasks


πŸ—οΈ Architecture

repomemory/
β”œβ”€β”€ app/              # Next.js 15 β€” 16 routes across 7 pages
β”œβ”€β”€ lib/              # 15 core modules
β”‚   β”œβ”€β”€ scanner.ts    # File system traversal + detection
β”‚   β”œβ”€β”€ auditor.ts    # 7-dimension quality scoring
β”‚   β”œβ”€β”€ generator.ts  # AI context pack generation
β”‚   β”œβ”€β”€ drift.ts      # Drift detection + risk scoring
β”‚   β”œβ”€β”€ graph.ts      # Architecture graph builder
β”‚   β”œβ”€β”€ discovery.ts  # Deep architecture discovery
β”‚   β”œβ”€β”€ adr.ts        # ADR generation from git history
β”‚   β”œβ”€β”€ brain.ts      # Persistent knowledge store
β”‚   β”œβ”€β”€ changelog.ts  # Git change summaries
β”‚   β”œβ”€β”€ ai.ts         # OpenAI-compatible API wrapper
β”‚   β”œβ”€β”€ prompts.ts    # AI prompt templates
β”‚   β”œβ”€β”€ storage.ts    # File-based persistence
β”‚   β”œβ”€β”€ export.ts     # ZIP export
β”‚   └── types.ts      # Shared TypeScript types
β”œβ”€β”€ cli/              # CLI tool (3 commands)
β”œβ”€β”€ mcp/              # MCP server (8 tools)
β”œβ”€β”€ vscode/           # VS Code extension
β”œβ”€β”€ .github/          # GitHub Action + CI workflow
└── tests/            # 24 unit tests

πŸ”„ CI Integration

Add to your GitHub Actions workflow:

- name: Check AI Context
  uses: PraveenJayaprakash-JP/repomemory/.github/actions/repomemory-check@main
  with:
    ai-api-key: ${{ secrets.AI_PROVIDER_API_KEY }}
    fail-on-drift: true
    min-score: 60

This checks every PR for:

  • βœ… AI Readiness score

  • βœ… Context drift detection

  • βœ… Risk level assessment

  • βœ… Automatic PR comments with findings

  • βœ… CI/CD enforcement (optional min-score gate)


πŸ› οΈ Development

npm test              # 24 unit tests
npm run build         # Production build (2.5s, 16 routes)
npm run cli -- scan . # Scan this repo
npm run cli -- generate . --apply  # Generate context for this repo

πŸ—ΊοΈ Roadmap

  • Multi-agent context generation (6 AI agents)

  • Advanced drift detection with risk scoring

  • Architecture discovery engine

  • ADR generator

  • Project Brain (persistent knowledge)

  • explain_codebase MCP tool

  • Public hosted version

  • Team dashboard with multi-repo support

  • VSCode marketplace release

  • GitHub marketplace action


🀝 Contributing

PRs welcome! RepoMemory is built with OpenCode Go β€” the same AI coding agent it helps configure.

  1. Fork the repo

  2. Create your feature branch: git checkout -b feat/amazing

  3. Commit: git commit -m 'feat: add amazing feature'

  4. Push: git push origin feat/amazing

  5. Open a PR


πŸ“„ License

MIT Β© PraveenJayaprakash-JP


A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

–Maintainers
<1hResponse time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PraveenJayaprakash-JP/repomemory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server