aidimag 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -59
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -1,17 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="assets/logo.svg" alt="AI Dimag Logo" width="120" height="120">
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
codebase that survives across sessions — decisions, conventions, gotchas, failed approaches,
|
|
7
|
-
**guardrails**, and reusable **skills** — stored as **falsifiable claims with grounding
|
|
8
|
-
evidence** in `.aidimag/` next to your code. It also generates the static context files
|
|
9
|
-
(`CLAUDE.md`, `.cursorrules`, …) that *non-MCP* tools read, so every AI tool benefits.
|
|
5
|
+
# AI Dimag — Verified Memory for AI Coding Agents
|
|
10
6
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
**Your codebase remembers its decisions, conventions, and rules — and proves they're still true.**
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/aidimag)
|
|
10
|
+
[](./LICENSE)
|
|
11
|
+
[](https://aidimag.com)
|
|
12
|
+
[](https://nodejs.org)
|
|
13
|
+
|
|
14
|
+
[**Documentation**](https://aidimag.com) • [**Getting Started**](https://aidimag.com/getting-started) • [**AI Dimag Cloud**](https://cloud.aidimag.com) • [**Pricing**](https://aidimag.com/pricing)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## What is AI Dimag?
|
|
21
|
+
|
|
22
|
+
**AI Dimag** 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.
|
|
23
|
+
|
|
24
|
+
### 🎯 The Difference: Verified, Not Just Stored
|
|
25
|
+
|
|
26
|
+
Every memory carries **evidence** (a shell check, an anchored commit, a test) that `dim verify` re-runs against the current repo. Beliefs that stop being true go **STALE** instead of silently misleading your AI.
|
|
27
|
+
|
|
28
|
+
### ✨ Works with Every AI Tool
|
|
29
|
+
|
|
30
|
+
- **MCP tools** (Claude, Cursor, etc.) get real-time memory via the MCP server
|
|
31
|
+
- **Non-MCP tools** (Copilot, Windsurf, etc.) get static context files (`.cursorrules`, `CLAUDE.md`, `AGENTS.md`, etc.)
|
|
32
|
+
|
|
33
|
+
<div align="center">
|
|
34
|
+
<img src="assets/hero-illustration.svg" alt="AI Dimag Flow" width="600">
|
|
35
|
+
</div>
|
|
15
36
|
|
|
16
37
|
## Install
|
|
17
38
|
|
|
@@ -21,7 +42,7 @@ npm install -g aidimag
|
|
|
21
42
|
|
|
22
43
|
Requires Node 18+. Ships two equivalent binaries: `dim` (short) and `aidimag`.
|
|
23
44
|
|
|
24
|
-
## Quick
|
|
45
|
+
## 🚀 Quick Start
|
|
25
46
|
|
|
26
47
|
```sh
|
|
27
48
|
cd your-repo
|
|
@@ -36,10 +57,10 @@ dim verify # re-run all evidence; stale beliefs get flagged
|
|
|
36
57
|
dim brief # session-start briefing: in-scope memory, guardrails, gaps
|
|
37
58
|
|
|
38
59
|
# For non-MCP tools (Copilot, Cursor without MCP, etc.):
|
|
39
|
-
dim generate-context --format all --auto # creates .cursorrules, CLAUDE.md,
|
|
60
|
+
dim generate-context --format all --auto # creates .cursorrules, CLAUDE.md, AGENTS.md, etc.
|
|
40
61
|
```
|
|
41
62
|
|
|
42
|
-
##
|
|
63
|
+
## 🔌 Connect to Your AI Agent (MCP)
|
|
43
64
|
|
|
44
65
|
Add to your agent config (e.g. `.mcp.json` for Claude Code):
|
|
45
66
|
|
|
@@ -55,59 +76,84 @@ Add to your agent config (e.g. `.mcp.json` for Claude Code):
|
|
|
55
76
|
}
|
|
56
77
|
```
|
|
57
78
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
**MCP Tools** get `memory_search`, `memory_propose`, `context_note` (live in-chat fact capture), `memory_critique` (a second critic grounded in verified memory), session-start briefings, session-end extraction, and more.
|
|
80
|
+
|
|
81
|
+
**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).
|
|
82
|
+
|
|
83
|
+
## ✨ Key Features
|
|
84
|
+
|
|
85
|
+
### 🛡️ Human-Gated Capture
|
|
86
|
+
Commits, PRs, AI-chat transcripts, 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).
|
|
87
|
+
|
|
88
|
+
### ✅ Verification Lifecycle
|
|
89
|
+
`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.
|
|
90
|
+
|
|
91
|
+
### 🔒 Evidence Trust Gate
|
|
92
|
+
Shell-command evidence that arrives via team sync is **never executed** until you inspect and approve it (`dim verify --trust`).
|
|
93
|
+
|
|
94
|
+
### 🔍 Hybrid Semantic Recall
|
|
95
|
+
FTS5 keyword + vector KNN (OpenAI or local Ollama, auto-detected; works keyword-only with neither).
|
|
96
|
+
|
|
97
|
+
### 🚦 Guardrails & Skills
|
|
98
|
+
Behavioral rules (`never` / `ask-first` / `always`) and step-by-step procedures, enforced by `dim check` (pre-commit) and `memory_critique`.
|
|
99
|
+
|
|
100
|
+
### 👥 Team Mode, Self-Hosted
|
|
101
|
+
`dim serve` + `dim sync`: local-first replicas, device-code login, brain-scoped API keys, hashed credentials, cross-machine verification consensus.
|
|
102
|
+
|
|
103
|
+
### 📚 Knowledgebase Inbox
|
|
104
|
+
Drop design docs / ADRs / PDFs / DOCX into `knowledge/` and they're summarized into reviewed, pinned memories.
|
|
105
|
+
|
|
106
|
+
### 🎨 Web Dashboard & Extensions
|
|
107
|
+
`dim ui` plus VS Code and IntelliJ extensions.
|
|
108
|
+
|
|
109
|
+
## 📖 Documentation
|
|
110
|
+
|
|
111
|
+
<table>
|
|
112
|
+
<tr>
|
|
113
|
+
<td width="33%">
|
|
114
|
+
|
|
115
|
+
**Getting Started**
|
|
116
|
+
- [Installation](https://aidimag.com/getting-started)
|
|
117
|
+
- [Quick Start (5 min)](https://aidimag.com/quickstart)
|
|
118
|
+
- [Cloud Sync](https://aidimag.com/cloud-quickstart)
|
|
119
|
+
|
|
120
|
+
</td>
|
|
121
|
+
<td width="33%">
|
|
122
|
+
|
|
123
|
+
**Reference**
|
|
91
124
|
- [CLI Reference](https://aidimag.com/cli-reference)
|
|
92
125
|
- [MCP Integration](https://aidimag.com/mcp)
|
|
93
|
-
- [Team Sync Guide](https://aidimag.com/guides/team-sync)
|
|
94
126
|
- [Configuration](https://aidimag.com/configuration)
|
|
95
127
|
|
|
96
|
-
|
|
128
|
+
</td>
|
|
129
|
+
<td width="33%">
|
|
97
130
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
131
|
+
**Guides**
|
|
132
|
+
- [Team Sync](https://aidimag.com/guides/team-sync)
|
|
133
|
+
- [Guardrails](https://aidimag.com/guides/guardrails)
|
|
134
|
+
- [Context Files](https://aidimag.com/guides/generate-context)
|
|
135
|
+
|
|
136
|
+
</td>
|
|
137
|
+
</tr>
|
|
138
|
+
</table>
|
|
139
|
+
|
|
140
|
+
Full documentation: **[aidimag.com](https://aidimag.com)**
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 💰 Pricing
|
|
145
|
+
|
|
146
|
+
**Free for teams of 10 or fewer users** under the [Elastic License 2.0](./LICENSE).
|
|
147
|
+
|
|
148
|
+
For larger teams or commercial use beyond this limit, a commercial license is required. See [**Pricing & Licensing**](https://aidimag.com/pricing) for details.
|
|
103
149
|
|
|
104
|
-
|
|
150
|
+
---
|
|
105
151
|
|
|
106
|
-
|
|
152
|
+
<div align="center">
|
|
107
153
|
|
|
108
|
-
**Anup Khanal**
|
|
154
|
+
**Built by [Anup Khanal](https://github.com/anupkhanal)**
|
|
109
155
|
|
|
110
|
-
|
|
156
|
+
[Website](https://aidimag.com) • [Documentation](https://aidimag.com) • [Cloud](https://cloud.aidimag.com) • [npm](https://www.npmjs.com/package/aidimag) • [License](./LICENSE)
|
|
111
157
|
|
|
112
|
-
|
|
158
|
+
</div>
|
|
113
159
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aidimag",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Persistent, verified memory for AI coding agents. CLI: dim.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
|
-
"author":
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Anup Khanal",
|
|
9
|
+
"url": "https://github.com/anup-khanal"
|
|
10
|
+
},
|
|
8
11
|
"repository": {
|
|
9
12
|
"type": "git",
|
|
10
13
|
"url": "git+https://github.com/anup-khanal/aidimag.git"
|