
Aidimag
io.github.AiDimag由 GitHub 账号 AiDimag 发布v1.0.22更新于 Oct 24, 2026
Persistent, verified memory for AI coding agents: recall, capture, guardrails, review queue.
概览
AIDimag 为编程助手提供持久、经证据验证的代码仓库记忆,保存在本地 .aidimag/ 目录并通过 MCP 提供。
- 可以做什么
- 搜索和召回仓库记忆,支持按路径限定与按可信度排序,并提供会话开始简报和短期会话便签。提出新记忆、在对话中实时记录事实、采集会话记录,并用基于已验证记忆的第二评审者进行审视。将提交、PR、聊天记录和粘贴的文档挖掘为需人工审核的候选条目,未经审核不会入库。从已连接的工单系统获取工单,使工单上下文与候选条目并列显示。把已验证记忆渲染为静态上下文文件,供不使用 MCP 的助手读取。
- 适用场景
- 适用于助手长期在同一代码库中工作、需要跨会话记住决策、约定、坑点和失败方案的场景,也适用于过时或未经验证的事实比没有记忆更危险的情况。适合希望记忆先经审核再入库、并随代码变化持续校验的团队。
- 运行要求
- 以 npm 包形式通过 npx 在本地运行,需要 Node 22 或更高版本。AIDIMAG_REPO 应指向要服务的 git 仓库,否则从当前工作目录向上查找。AIDIMAG_LLM 选择抽取所用提供方(openai、ollama 或 off),可自动检测;仅在使用 OpenAI 提供方时需要 OPENAI_API_KEY。可选的团队同步与工单集成需要各自的凭据。
安装
在 SourceWeft 中
- 打开 控制台中的 Aidimag,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
AI Dimag — Verified Memory for AI Coding Agents
Your coding agent forgets your codebase. AIDimag doesn't.
[npm version] [CI] [VS Code Marketplace] [JetBrains Marketplace] [MCP Registry] [aidimag MCP server] [Product Hunt] [License] [Documentation] [Node]
Documentation • Why AIDimag? • Getting Started • Use Cases • Benchmarks • AI Dimag Cloud • Pricing
What is AI Dimag?
AI Dimag is a memory system for software engineering — not a general-purpose "AI memory" app. It gives any MCP-compatible agent (Claude, Cursor, Copilot, Windsurf…) a persistent memory of your codebase that survives across sessions — decisions, conventions, gotchas, failed approaches, guardrails, and reusable skills — stored as falsifiable claims with grounding evidence in .aidimag/ next to your code.
The subject of memory is your repository, not your preferences or chat history. Every capability — evidence, git-hook verification, guardrails, pre-commit checks, path-scoped recall, session scratchpad — exists to serve day-to-day development work.
The Difference: Claim-and-Verify, Not Store-and-Retrieve
Most memory systems store text and retrieve whatever is similar later — a stored fact is assumed true forever. That's dangerous in a codebase, where a confidently-retrieved stale fact is worse than no memory at all.
Every AI Dimag memory carries evidence (a shell check, an anchored commit, a test) that dim verify re-runs against the current repo — automatically, via git hooks, on every pull, checkout, and rebase. Beliefs that stop being true go STALE instead of silently misleading your AI.
Works with Every AI Tool
- MCP tools (Claude, Cursor, etc.) get real-time memory via the MCP server
- Non-MCP tools (Copilot, Windsurf, etc.) get static context files (
.cursorrules,CLAUDE.md,AGENTS.md, etc.)
Install
Requires Node 22+. Ships two equivalent binaries: dim (short) and aidimag.
Quick Start
One-command setup
Connect to Your AI Agent (MCP)
Add to your agent config (e.g. .mcp.json for Claude Code):
MCP Tools get memory_search, memory_propose, context_note (live in-chat fact capture), chat_harvest (live, tool-agnostic session harvesting with server-side secret redaction), memory_critique (a second critic grounded in verified memory), session-start briefings, session-end extraction, and more.
Non-MCP Tools: dim generate-context -f all renders verified memory into .cursorrules, CLAUDE.md, AGENTS.md, .windsurfrules, and .github/copilot-instructions.md (--auto keeps them refreshed).
Hermes Agent: dim hermes install registers aidimag as a native Hermes memory provider — one command, no pip, no venv. A single stdlib-only Python bridge delegates to the MCP server: session briefings are injected into the system prompt, recall is prefetched per turn, and session learnings become review-queue proposals (never silent writes). Then: hermes config set memory.provider aidimag.
Key Features
Human-Gated Capture
Commits, PRs, AI-chat transcripts (Claude Code, Codex, Copilot, Cursor), and pasted docs are mined into proposals. Nothing enters memory until you approve it in dim review (auto-triaged best-first, approve all --min-score 0.7 for batches).
Verification Lifecycle
STATIC_CHECK / COMMIT_REF / TEST_RESULT / EXEC_TRACE / HUMAN_ATTESTED evidence. Failing evidence flips memories to STALE and auto-drafts a recovery proposal. Confidence decays without re-confirmation.
Evidence Trust Gate
Shell-command evidence that arrives via team sync is never executed until you inspect and approve it (dim verify --trust).
Hybrid Semantic Recall
FTS5 keyword + vector KNN (OpenAI, local Ollama, or AWS Bedrock; auto-detected except Bedrock, which is explicit opt-in; works keyword-only with none).
Guardrails & Skills
Behavioral rules (never / ask-first / always) and step-by-step procedures, enforced by dim check (pre-commit) and memory_critique.
Team Mode, Self-Hosted
dim serve + dim sync: local-first replicas, device-code login, brain-scoped API keys, hashed credentials, cross-machine verification consensus.
Knowledgebase Inbox
Drop design docs / ADRs / PDFs / DOCX into knowledge/ and they're summarized into reviewed, pinned memories.
Scratchpad & Provenance Audit
dim scratch (and the scratchpad_* MCP tools) hold short-term session notes — TTL-expiring, never synced, never durable memory. dim audit lists memories resting on the weakest ground (agent-authored, evidence-free, stale, or long-unverified) so you can fix them up like a dependency audit for your repo's knowledge.
Web Dashboard & Extensions
dim ui — run checks, session briefings, bootstrap, harvest, and context generation from the browser — plus VS Code and IntelliJ extensions.
Ticketing Integration
Commits tell you what changed; tickets hold the why. aiDimag connects to your ticketing system so that context flows into your memory — ticket titles, types, and statuses appear next to mined proposals during dim review, and agents can fetch tickets via the ticket_get MCP tool.
Supported providers
Jira, GitHub Issues, Linear, GitLab Issues, Azure DevOps, ClickUp, Shortcut, YouTrack, Asana, Trello, Notion, Pivotal Tracker, a custom HTTP middleware, or Remote (team sync server — zero local credentials).
Quick start
Per-repo credential storage
Ticket credentials are stored per-repo in .aidimag/config.json under tickets.token (with file mode 0o600), matching the same pattern as cloud sync tokens. Credentials never leak between projects. You can also set the AIDIMAG_TICKET_TOKEN environment variable, which takes precedence over the config file.
Team-shared tickets (Remote provider)
One admin shares their ticket credential via the sync server (dim ticket share). Team members select "Remote (team sync server)" as their provider — they resolve tickets through the server and hold zero ticket credentials locally. When a cloud server is linked, the dashboard auto-discovers the team's ticket provider and shows a "Connect now" button.
Branch conventions
Define a branch-naming convention and have aiDimag warn or block on violations:
Full guide: Connecting tickets
How It Compares
AI Dimag follows a claim-and-verify model; other memory systems follow store-and-retrieve. The short version:
Full comparison: aidimag.com/comparison
vs. named tools
How aiDimag relates to the memory tools people usually ask about. These solve a different problem (remembering users and conversations); aiDimag remembers your repository and proves its memories are still true:
Chat-memory benchmarks (LoCoMo, LongMemEval, BEAM) score recall over conversation histories, so they don't apply to aiDimag — its memory subject is the repo. Instead aiDimag publishes its own reproducible suite (below), including the metric none of the chat benchmarks measure: does memory notice when the code changes?
Benchmarks
Reproducible performance and quality suites live in benchmark/
(npm run bench, npm run bench:quality). Headline results (Apple M4, Node 24,
10,000-memory brain — full tables at aidimag.com/benchmarks):
Documentation
Full documentation: aidimag.com
Contributing
Contributions welcome! See CONTRIBUTING.md for dev setup, project principles, and the PR checklist. All participation is governed by our Code of Conduct.
License & Pricing
AI Dimag is open source under the MIT License — free for everyone, any team size, forever. Use it, fork it, embed it.
The entire local-first product is free: CLI, MCP server, verification, guardrails, skills, IDE extensions, local dashboard, and self-hosted team sync (dim serve).
Want team sync without running a server? AI Dimag Cloud is an optional managed sync subscription — that's how the project stays funded and open source. See Pricing.
Built by Anup Khanal
Website • Documentation • Cloud • npm • License
来源:README.md,提交 6f62807
工具
0版本历史
1- v1.0.22最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分