Aidimag logo

Aidimag

Persistent, evidence-checked repository memory for coding agents, with review queues, guardrails, recall, and session context.

Install Aidimag

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "aidimag": {
      "command": "npx",
      "args": [
        "-y",
        "aidimag",
        "mcp"
      ],
      "env": {
        "AIDIMAG_REPO": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env AIDIMAG_REPO=YOUR_VALUE_HERE --transport stdio aidimag -- npx -y aidimag mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y aidimag mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The aidimag MCP server gives coding agents persistent, repository-scoped memory for decisions, conventions, guardrails, skills, and verified facts. It stores claims with evidence in `.aidimag/`, exposes memory and session tools over MCP, and can mark beliefs stale when checks no longer pass. Use it when an agent needs context that survives sessions without treating unreviewed or outdated information as reliable. It also supports static context files, ticket references, scratchpad notes, semantic recall, and local-first team synchronization.

Use cases

  • Capture reviewed repository decisions for future coding sessions
  • Verify implementation claims after code changes or rebases
  • Generate scoped context files for non-MCP coding agents
  • Apply repository guardrails during pre-commit checks
  • Retrieve ticket context alongside mined development proposals

Key features

  • Evidence-backed repository memory
  • Human-gated proposal review
  • Keyword and optional vector recall
  • Stale-memory detection and recovery proposals
  • Guardrails, skills, and pre-commit checks
  • Ticket and session context tools

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

20/20 checks healthy over the last 101d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · aidimag (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads464Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Aidimag works

What the aidimag MCP server does

The aidimag MCP server provides persistent memory for software repositories rather than general chat-history or user-preference storage. Memory can include implementation decisions, coding conventions, known pitfalls, failed approaches, guardrails, and reusable procedures. Records are kept as claims with grounding evidence inside a .aidimag/ directory next to the repository.

The system separates proposed knowledge from approved knowledge. Commits, pull requests, AI conversations, pasted documents, and repository surveys can produce proposals, but those proposals remain outside durable memory until a person reviews them. This makes it suitable for teams that want agents to retain project context while keeping humans responsible for what becomes authoritative.

How it works

Run the server for a repository by configuring an MCP client to launch npx -y aidimag mcp and setting AIDIMAG_REPO to the repository path. The server exposes live memory operations to compatible agents. The command-line interface handles initialization, review, verification, briefings, context generation, ticket setup, and other repository workflows.

Each memory can include evidence such as a static shell check, commit reference, test result, execution trace, or human attestation. Verification reruns applicable evidence against the current checkout. A failed check changes the related memory to stale status and can create a recovery proposal. Evidence received through team synchronization is not executed automatically; shell-based evidence must be trusted explicitly.

Recall combines FTS5 keyword search with optional vector search. Embeddings can use OpenAI, local Ollama, or AWS Bedrock, while keyword-only operation remains available without an embedding provider. Path-scoped recall helps keep results relevant to the code being edited.

Setup and configuration

Install the package globally with Node.js 22 or newer:

Terminal
npm install -g aidimag

From a repository, dim init creates .aidimag/ and installs additive Git hooks. dim setup --yes combines initialization with detected-agent MCP configuration and context-file generation. dim doctor checks the resulting setup. A minimal MCP configuration uses the aidimag command through npx and points AIDIMAG_REPO at the target repository.

For agents that do not use MCP, dim generate-context --format all --auto can render verified memory into files such as .cursorrules, CLAUDE.md, AGENTS.md, .windsurfrules, and .github/copilot-instructions.md. These files provide a static alternative to live MCP access.

Tools and capabilities

The aidimag MCP server includes tools for searching and proposing memory, capturing live context notes, harvesting sessions with server-side secret redaction, and critiquing agent output against verified memory. Session-start briefings, session-end extraction, scratchpad operations, and ticket retrieval are also supported.

Other capabilities include:

  • Human-reviewed capture from commits, pull requests, chats, and documents.
  • Guardrails with never, ask-first, and always behavior, checked through pre-commit workflows and memory critique.
  • Skills represented as step-by-step procedures.
  • Knowledgebase ingestion for design documents, ADRs, PDFs, and DOCX files.
  • Ticket connections for Jira, GitHub Issues, Linear, GitLab Issues, Azure DevOps, ClickUp, Shortcut, YouTrack, Asana, Trello, Notion, Pivotal Tracker, custom HTTP middleware, and remote team sync.
  • Local-first synchronization through dim serve and dim sync.
  • A scratchpad with expiring, non-synchronized session notes.

Limitations and notes

Memory is repository-scoped, so it is not intended to represent general personal preferences or arbitrary conversation history. Durable capture is gated by review; proposals do not become memory silently. Verification can make previously accepted claims stale when repository evidence changes, which means agents may see gaps or recovery proposals instead of an always-current answer.

The server requires Node.js 22 or newer. Semantic vector recall depends on an embedding provider, although keyword search works without one. Ticket credentials are stored per repository rather than shared across projects. VS Code and IntelliJ extensions are listed as additional interfaces, while non-MCP agents rely on generated context files rather than live MCP tools.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Aidimag

aidimag is an MCP server that connects coding agents to persistent, repository-scoped memory stored in `.aidimag/`. Its main tools support memory search, memory proposals, context-note capture, session harvesting, memory critique, scratchpad operations, ticket retrieval, and session briefings, with evidence-based verification to identify stale claims.

Install it with `npm install -g aidimag` on Node.js 22 or newer. In a repository, run `dim init` or `dim setup --yes`, then configure your MCP client to run `npx -y aidimag mcp` with `AIDIMAG_REPO` set to the repository path.

Configure the client to launch `npx` with the arguments `-y`, `aidimag`, and `mcp`, and set `AIDIMAG_REPO` to the target repository.

Yes, aidimag supports Cursor through MCP, and it can also generate static Cursor context files. Use the live MCP configuration for real-time memory tools, or run `dim generate-context --format all --auto` to create and refresh `.cursorrules`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAidimag AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/aidimag?style=directory)](https://allmcps.com/mcp/aidimag)
HTML Embed
<a href="https://allmcps.com/mcp/aidimag"><img src="https://allmcps.com/api/badge/aidimag?style=directory" alt="Aidimag on AllMCPs" /></a>