memorix 1.0.2 → 1.0.4
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/CHANGELOG.md +47 -0
- package/README.md +119 -236
- package/README.zh-CN.md +119 -238
- package/dist/cli/index.js +13308 -8815
- package/dist/cli/index.js.map +1 -1
- package/dist/dashboard/static/app.js +554 -43
- package/dist/dashboard/static/index.html +39 -8
- package/dist/dashboard/static/style.css +2403 -2064
- package/dist/index.js +2816 -602
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/README.zh-CN.md
CHANGED
|
@@ -5,341 +5,216 @@
|
|
|
5
5
|
<h1 align="center">Memorix</h1>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
8
|
-
<strong
|
|
9
|
-
|
|
8
|
+
<strong>面向 AI 编码 Agent 的本地优先记忆平台。</strong><br>
|
|
9
|
+
将 Git 真相、推理记忆和跨 Agent 召回统一到一个 MCP 服务器中。
|
|
10
10
|
</p>
|
|
11
11
|
|
|
12
12
|
<p align="center">
|
|
13
13
|
<a href="https://www.npmjs.com/package/memorix"><img src="https://img.shields.io/npm/v/memorix.svg?style=flat-square&color=cb3837" alt="npm"></a>
|
|
14
14
|
<a href="https://www.npmjs.com/package/memorix"><img src="https://img.shields.io/npm/dm/memorix.svg?style=flat-square&color=blue" alt="downloads"></a>
|
|
15
15
|
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache%202.0-green.svg?style=flat-square" alt="license"></a>
|
|
16
|
-
<a href="https://github.com/AVIDS2/memorix"><img src="https://img.shields.io/github/stars/AVIDS2/memorix?style=flat-square&color=yellow" alt="stars"></a>
|
|
17
|
-
<img src="https://img.shields.io/badge/tests-753%20passed-brightgreen?style=flat-square" alt="tests">
|
|
18
16
|
<a href="https://github.com/AVIDS2/memorix/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/AVIDS2/memorix/ci.yml?style=flat-square&label=CI" alt="CI"></a>
|
|
17
|
+
<a href="https://github.com/AVIDS2/memorix"><img src="https://img.shields.io/github/stars/AVIDS2/memorix?style=flat-square&color=yellow" alt="stars"></a>
|
|
19
18
|
</p>
|
|
20
19
|
|
|
21
20
|
<p align="center">
|
|
22
|
-
<strong>
|
|
23
|
-
</p>
|
|
24
|
-
|
|
25
|
-
<p align="center">
|
|
26
|
-
<img src="https://img.shields.io/badge/-Cursor-orange?style=flat-square" alt="Cursor">
|
|
27
|
-
<img src="https://img.shields.io/badge/-Windsurf-blue?style=flat-square" alt="Windsurf">
|
|
28
|
-
<img src="https://img.shields.io/badge/-Claude%20Code-purple?style=flat-square" alt="Claude Code">
|
|
29
|
-
<img src="https://img.shields.io/badge/-Codex-green?style=flat-square" alt="Codex">
|
|
30
|
-
<img src="https://img.shields.io/badge/-Copilot-lightblue?style=flat-square" alt="Copilot">
|
|
31
|
-
<img src="https://img.shields.io/badge/-Kiro-red?style=flat-square" alt="Kiro">
|
|
32
|
-
<img src="https://img.shields.io/badge/-Antigravity-grey?style=flat-square" alt="Antigravity">
|
|
33
|
-
<img src="https://img.shields.io/badge/-OpenCode-teal?style=flat-square" alt="OpenCode">
|
|
34
|
-
<img src="https://img.shields.io/badge/-Trae-FF6B35?style=flat-square" alt="Trae">
|
|
35
|
-
<img src="https://img.shields.io/badge/-Gemini%20CLI-4285F4?style=flat-square" alt="Gemini CLI">
|
|
21
|
+
<strong>Git Memory</strong> · <strong>Reasoning Memory</strong> · <strong>跨 Agent 召回</strong> · <strong>控制台仪表盘</strong>
|
|
36
22
|
</p>
|
|
37
23
|
|
|
38
24
|
<p align="center">
|
|
39
25
|
<a href="README.md">English</a> ·
|
|
40
26
|
<a href="#快速开始">快速开始</a> ·
|
|
41
|
-
<a href="
|
|
42
|
-
<a href="
|
|
27
|
+
<a href="#工作原理">工作原理</a> ·
|
|
28
|
+
<a href="#文档导航">文档导航</a> ·
|
|
43
29
|
<a href="docs/SETUP.md">配置指南</a>
|
|
44
30
|
</p>
|
|
45
31
|
|
|
46
32
|
---
|
|
47
33
|
|
|
48
|
-
##
|
|
34
|
+
## 为什么是 Memorix
|
|
49
35
|
|
|
50
|
-
AI 编码 Agent
|
|
36
|
+
大多数 AI 编码 Agent 只能记住当前对话。Memorix 提供跨 IDE、跨会话、跨 Agent 的共享持久化记忆层,让工程上下文真正沉淀下来。
|
|
51
37
|
|
|
52
|
-
|
|
53
|
-
会话 1(Cursor): "用 JWT + refresh token,15 分钟过期" → 存储为 decision
|
|
54
|
-
会话 2(Claude Code): "添加登录接口" → 检索到该决策 → 正确实现
|
|
55
|
-
```
|
|
38
|
+
Memorix 的差异化主要在这几条线:
|
|
56
39
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
- **跨 Agent 记忆共享**:所有 Agent 共用同一记忆存储。在 Cursor 中存储,在 Claude Code 中检索。
|
|
62
|
-
- **多 Agent 协作**:Team 工具支持 Agent 间协调——注册/注销、文件锁、任务板、跨 IDE 消息传递,通过共享的 `team-state.json` 实现。
|
|
63
|
-
- **启动自动清理**:后台自动归档过期记忆 + 智能去重(配有 LLM 时用语义分析,否则用启发式),零人工维护。
|
|
64
|
-
- **双模式质量引擎**:免费启发式引擎处理基础去重;可选 LLM 模式提供智能压缩、重排序和冲突检测。
|
|
65
|
-
- **3 层渐进式展示**:搜索返回紧凑索引(每条约 50 tokens),时间线展示前后文,详情提供完整内容。相比全文检索节省约 10 倍 token。
|
|
66
|
-
- **Mini-Skills**:将高价值观察提升为永久技能,每次会话启动自动注入。关键知识永不衰减。
|
|
67
|
-
- **自动记忆 Hook**:自动从 IDE 工具调用中捕获决策、错误和踩坑经验。支持中英文模式检测。
|
|
68
|
-
- **知识图谱**:实体-关系模型,兼容 [MCP 官方 Memory Server](https://github.com/modelcontextprotocol/servers/tree/main/src/memory)。自动从内容中提取实体并创建关联。
|
|
40
|
+
- **Git Memory**:把 `git commit` 转成带来源、可检索、可过滤噪音的工程记忆。
|
|
41
|
+
- **Reasoning Memory**:不仅记录“改了什么”,还能记录“为什么这样做”。
|
|
42
|
+
- **跨 Agent 本地召回**:Cursor、Windsurf、Claude Code、Codex、Copilot、Kiro、OpenCode、Gemini CLI 等都可以读写同一套本地记忆。
|
|
43
|
+
- **质量治理管线**:Formation、写入压缩、保留衰减、source-aware retrieval 协同工作,而不是一堆孤立工具。
|
|
69
44
|
|
|
70
45
|
---
|
|
71
46
|
|
|
72
47
|
## 快速开始
|
|
73
48
|
|
|
49
|
+
全局安装:
|
|
50
|
+
|
|
74
51
|
```bash
|
|
75
52
|
npm install -g memorix
|
|
76
53
|
```
|
|
77
54
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<details open>
|
|
81
|
-
<summary><strong>Cursor</strong> · <code>.cursor/mcp.json</code></summary>
|
|
82
|
-
|
|
83
|
-
```json
|
|
84
|
-
{ "mcpServers": { "memorix": { "command": "memorix", "args": ["serve"] } } }
|
|
85
|
-
```
|
|
86
|
-
</details>
|
|
87
|
-
|
|
88
|
-
<details>
|
|
89
|
-
<summary><strong>Claude Code</strong></summary>
|
|
55
|
+
初始化项目配置:
|
|
90
56
|
|
|
91
57
|
```bash
|
|
92
|
-
|
|
58
|
+
memorix init
|
|
93
59
|
```
|
|
94
|
-
</details>
|
|
95
60
|
|
|
96
|
-
|
|
97
|
-
<summary><strong>Windsurf</strong> · <code>~/.codeium/windsurf/mcp_config.json</code></summary>
|
|
61
|
+
Memorix 采用“两类文件、两种职责”:
|
|
98
62
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
```
|
|
102
|
-
</details>
|
|
103
|
-
|
|
104
|
-
<details>
|
|
105
|
-
<summary><strong>VS Code Copilot</strong> · <code>.vscode/mcp.json</code></summary>
|
|
106
|
-
|
|
107
|
-
```json
|
|
108
|
-
{ "servers": { "memorix": { "command": "memorix", "args": ["serve"] } } }
|
|
109
|
-
```
|
|
110
|
-
</details>
|
|
63
|
+
- `memorix.yml`:行为配置、项目策略
|
|
64
|
+
- `.env`:密钥和敏感端点
|
|
111
65
|
|
|
112
|
-
|
|
113
|
-
<summary><strong>Codex</strong> · <code>~/.codex/config.toml</code></summary>
|
|
66
|
+
选择一种运行模式:
|
|
114
67
|
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
command = "memorix"
|
|
118
|
-
args = ["serve"]
|
|
68
|
+
```bash
|
|
69
|
+
memorix serve
|
|
119
70
|
```
|
|
120
|
-
</details>
|
|
121
71
|
|
|
122
|
-
|
|
123
|
-
<summary><strong>Kiro</strong> · <code>.kiro/settings/mcp.json</code></summary>
|
|
72
|
+
`serve` 用于标准的 stdio MCP 集成。
|
|
124
73
|
|
|
125
|
-
```
|
|
126
|
-
|
|
74
|
+
```bash
|
|
75
|
+
memorix serve-http --port 3211
|
|
127
76
|
```
|
|
128
|
-
</details>
|
|
129
77
|
|
|
130
|
-
|
|
131
|
-
<summary><strong>Antigravity</strong> · <code>~/.gemini/antigravity/mcp_config.json</code></summary>
|
|
78
|
+
`serve-http` 用于 HTTP transport、团队协作,以及与之共端口的 dashboard。
|
|
132
79
|
|
|
133
|
-
|
|
134
|
-
{ "mcpServers": { "memorix": { "command": "memorix", "args": ["serve"], "env": { "MEMORIX_PROJECT_ROOT": "/your/project/path" } } } }
|
|
135
|
-
```
|
|
136
|
-
</details>
|
|
80
|
+
把 Memorix 加入 MCP 配置:
|
|
137
81
|
|
|
138
|
-
<details>
|
|
139
|
-
<summary><strong>
|
|
82
|
+
<details open>
|
|
83
|
+
<summary><strong>Cursor</strong> · <code>.cursor/mcp.json</code></summary>
|
|
140
84
|
|
|
141
85
|
```json
|
|
142
|
-
{
|
|
86
|
+
{
|
|
87
|
+
"mcpServers": {
|
|
88
|
+
"memorix": {
|
|
89
|
+
"command": "memorix",
|
|
90
|
+
"args": ["serve"]
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
143
94
|
```
|
|
144
95
|
</details>
|
|
145
96
|
|
|
146
97
|
<details>
|
|
147
|
-
<summary><strong>
|
|
98
|
+
<summary><strong>Claude Code</strong></summary>
|
|
148
99
|
|
|
149
|
-
```
|
|
150
|
-
|
|
100
|
+
```bash
|
|
101
|
+
claude mcp add memorix -- memorix serve
|
|
151
102
|
```
|
|
152
103
|
</details>
|
|
153
104
|
|
|
154
105
|
<details>
|
|
155
|
-
<summary><strong>
|
|
106
|
+
<summary><strong>Codex</strong> · <code>~/.codex/config.toml</code></summary>
|
|
156
107
|
|
|
157
|
-
```
|
|
158
|
-
|
|
108
|
+
```toml
|
|
109
|
+
[mcp_servers.memorix]
|
|
110
|
+
command = "memorix"
|
|
111
|
+
args = ["serve"]
|
|
159
112
|
```
|
|
160
113
|
</details>
|
|
161
114
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
> **自动更新**:Memorix 启动时静默检查更新(每 24 小时一次),有新版本自动后台安装。
|
|
165
|
-
|
|
166
|
-
> **注意**:不要用 `npx`——它每次都会重新下载,导致 MCP 超时。请用全局安装。
|
|
167
|
-
>
|
|
168
|
-
> [完整配置指南](docs/SETUP.md) · [常见问题排查](docs/SETUP.md#troubleshooting)
|
|
115
|
+
完整 IDE 配置矩阵、Windows 注意事项和排障请看 [docs/SETUP.md](docs/SETUP.md)。
|
|
169
116
|
|
|
170
117
|
---
|
|
171
118
|
|
|
172
|
-
##
|
|
173
|
-
|
|
174
|
-
### 22 个 MCP 工具(默认)
|
|
175
|
-
|
|
176
|
-
| 分类 | 工具 |
|
|
177
|
-
|------|------|
|
|
178
|
-
| **记忆** | `memorix_store` · `memorix_search` · `memorix_detail` · `memorix_timeline` · `memorix_resolve` · `memorix_deduplicate` · `memorix_suggest_topic_key` |
|
|
179
|
-
| **会话** | `memorix_session_start` · `memorix_session_end` · `memorix_session_context` |
|
|
180
|
-
| **技能** | `memorix_skills` · `memorix_promote` |
|
|
181
|
-
| **工作区** | `memorix_workspace_sync` · `memorix_rules_sync` |
|
|
182
|
-
| **维护** | `memorix_retention` · `memorix_consolidate` · `memorix_transfer` |
|
|
183
|
-
| **团队** | `team_manage` · `team_file_lock` · `team_task` · `team_message` |
|
|
184
|
-
| **仪表盘** | `memorix_dashboard` |
|
|
185
|
-
|
|
186
|
-
<details>
|
|
187
|
-
<summary><strong>+9 可选:知识图谱工具</strong>(在 <code>~/.memorix/settings.json</code> 中启用)</summary>
|
|
188
|
-
|
|
189
|
-
`create_entities` · `create_relations` · `add_observations` · `delete_entities` · `delete_observations` · `delete_relations` · `search_nodes` · `open_nodes` · `read_graph`
|
|
119
|
+
## 核心工作流
|
|
190
120
|
|
|
191
|
-
|
|
192
|
-
</details>
|
|
193
|
-
|
|
194
|
-
### 观察类型
|
|
195
|
-
|
|
196
|
-
九种结构化类型用于分类存储的知识:
|
|
121
|
+
### 1. 存储并检索项目记忆
|
|
197
122
|
|
|
198
|
-
|
|
123
|
+
常用 MCP 工具包括:
|
|
199
124
|
|
|
200
|
-
|
|
125
|
+
- `memorix_store`
|
|
126
|
+
- `memorix_search`
|
|
127
|
+
- `memorix_detail`
|
|
128
|
+
- `memorix_timeline`
|
|
129
|
+
- `memorix_resolve`
|
|
201
130
|
|
|
202
|
-
|
|
131
|
+
这条主链适合沉淀决策、踩坑、问题修复、会话交接等上下文。
|
|
203
132
|
|
|
204
|
-
|
|
205
|
-
|------|------|---------|------|
|
|
206
|
-
| **API**(推荐) | `MEMORIX_EMBEDDING=api` | 零本地 RAM | 最高 |
|
|
207
|
-
| **fastembed** | `MEMORIX_EMBEDDING=fastembed` | ~300MB RAM | 高 |
|
|
208
|
-
| **transformers** | `MEMORIX_EMBEDDING=transformers` | ~500MB RAM | 高 |
|
|
209
|
-
| **关闭**(默认) | `MEMORIX_EMBEDDING=off` | ~50MB RAM | 仅 BM25 |
|
|
133
|
+
### 2. 自动捕获 Git 工程真相
|
|
210
134
|
|
|
211
|
-
|
|
135
|
+
安装 post-commit hook:
|
|
212
136
|
|
|
213
137
|
```bash
|
|
214
|
-
|
|
215
|
-
MEMORIX_EMBEDDING_API_KEY=sk-xxx
|
|
216
|
-
MEMORIX_EMBEDDING_MODEL=text-embedding-3-small
|
|
217
|
-
MEMORIX_EMBEDDING_BASE_URL=https://api.openai.com/v1 # 可选
|
|
218
|
-
MEMORIX_EMBEDDING_DIMENSIONS=512 # 可选
|
|
138
|
+
memorix git-hook --force
|
|
219
139
|
```
|
|
220
140
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
本地 Embedding:
|
|
141
|
+
也可以手动导入:
|
|
224
142
|
|
|
225
143
|
```bash
|
|
226
|
-
|
|
227
|
-
|
|
144
|
+
memorix ingest commit
|
|
145
|
+
memorix ingest log --count 20
|
|
228
146
|
```
|
|
229
147
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
可选的 LLM 集成,显著提升记忆质量。在基础搜索之上叠加三项能力:
|
|
233
|
-
|
|
234
|
-
| 能力 | 说明 | 实测效果 |
|
|
235
|
-
|------|------|---------|
|
|
236
|
-
| **叙述压缩** | 存储前压缩冗余观察,保留所有技术事实 | 降低 27% token 消耗(叙述性内容最高 44%) |
|
|
237
|
-
| **搜索重排序** | LLM 按语义相关性对搜索结果重新排序 | 60% 查询改善,0% 恶化 |
|
|
238
|
-
| **写入时去重** | 写入时检测重复和冲突;自动合并、更新或跳过 | 防止冗余存储,解决矛盾 |
|
|
148
|
+
Git Memory 会带上 `source='git'`、commit hash、文件列表,以及噪音过滤结果。
|
|
239
149
|
|
|
240
|
-
|
|
150
|
+
### 3. 运行控制台与协作入口
|
|
241
151
|
|
|
242
152
|
```bash
|
|
243
|
-
|
|
244
|
-
MEMORIX_LLM_PROVIDER=openai # openai | anthropic | openrouter | custom
|
|
245
|
-
MEMORIX_LLM_MODEL=gpt-4.1-nano # 任何聊天补全模型
|
|
246
|
-
MEMORIX_LLM_BASE_URL=https://... # 自定义端点(可选)
|
|
153
|
+
memorix serve-http --port 3211
|
|
247
154
|
```
|
|
248
155
|
|
|
249
|
-
|
|
156
|
+
然后访问:
|
|
250
157
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
| `OPENAI_API_KEY` | OpenAI |
|
|
254
|
-
| `ANTHROPIC_API_KEY` | Anthropic |
|
|
255
|
-
| `OPENROUTER_API_KEY` | OpenRouter |
|
|
158
|
+
- MCP HTTP 端点:`http://localhost:3211/mcp`
|
|
159
|
+
- Dashboard:`http://localhost:3211`
|
|
256
160
|
|
|
257
|
-
|
|
161
|
+
这个模式会把 dashboard、团队协作、配置诊断、项目身份健康度等能力统一到同一个入口。
|
|
258
162
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
### Mini-Skills
|
|
262
|
-
|
|
263
|
-
使用 `memorix_promote` 将高价值观察提升为永久技能。Mini-Skills 的特性:
|
|
264
|
-
|
|
265
|
-
- **永久保留** — 不受衰减机制影响,永不归档
|
|
266
|
-
- **自动注入** — 每次 `memorix_session_start` 时自动加载到上下文
|
|
267
|
-
- **项目隔离** — 按项目独立存储,无跨项目污染
|
|
268
|
-
|
|
269
|
-
适用于必须永久保留的关键知识:部署流程、架构约束、反复出现的坑。
|
|
270
|
-
|
|
271
|
-
### 团队协作
|
|
163
|
+
---
|
|
272
164
|
|
|
273
|
-
|
|
165
|
+
## 工作原理
|
|
274
166
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
167
|
+
```mermaid
|
|
168
|
+
graph TB
|
|
169
|
+
A["git commit / agent 工具调用 / 手动存储"] --> B["Memorix Runtime"]
|
|
170
|
+
B --> C["Observation / Reasoning / Git Memory"]
|
|
171
|
+
C --> D["Formation + Indexing + Graph + Retention"]
|
|
172
|
+
D --> E["Search / Detail / Timeline / Dashboard / Team"]
|
|
173
|
+
```
|
|
281
174
|
|
|
282
|
-
|
|
175
|
+
### 三层记忆模型
|
|
283
176
|
|
|
284
|
-
|
|
177
|
+
- **Observation Memory**:记录 what-changed、how-it-works、gotcha、problem-solution 等工程知识
|
|
178
|
+
- **Reasoning Memory**:记录决策理由、备选方案、权衡、风险
|
|
179
|
+
- **Git Memory**:从 commit 提取的不可变工程事实
|
|
285
180
|
|
|
286
|
-
|
|
287
|
-
memorix hooks install
|
|
288
|
-
```
|
|
181
|
+
### 检索模型
|
|
289
182
|
|
|
290
|
-
|
|
183
|
+
- 默认搜索是**当前项目隔离**
|
|
184
|
+
- `scope="global"` 才会跨项目搜索
|
|
185
|
+
- 全局结果可通过带 `projectId` 的 refs 精确打开详情
|
|
186
|
+
- source-aware retrieval 会根据问题类型动态提升 Git 或 reasoning memory 的权重
|
|
291
187
|
|
|
292
|
-
|
|
188
|
+
---
|
|
293
189
|
|
|
294
|
-
|
|
295
|
-
memorix # 交互菜单
|
|
296
|
-
memorix configure # LLM + Embedding 配置向导
|
|
297
|
-
memorix status # 项目信息与统计
|
|
298
|
-
memorix dashboard # Web UI(localhost:3210)
|
|
299
|
-
memorix hooks install # 为 IDE 安装自动记忆
|
|
300
|
-
```
|
|
190
|
+
## 文档导航
|
|
301
191
|
|
|
302
|
-
|
|
192
|
+
### 上手与配置
|
|
303
193
|
|
|
304
|
-
|
|
194
|
+
- [Setup Guide](docs/SETUP.md)
|
|
195
|
+
- [Configuration Guide](docs/CONFIGURATION.md)
|
|
305
196
|
|
|
306
|
-
|
|
307
|
-
graph TB
|
|
308
|
-
A["Cursor · Claude Code · Windsurf · Codex · +6 更多"]
|
|
309
|
-
A -->|MCP stdio| Core
|
|
310
|
-
Core["Memorix MCP Server\n22 个默认工具 · 自动Hook · 自动清理"]
|
|
311
|
-
Core --> Search["检索管线\nBM25 + 向量 + 重排序"]
|
|
312
|
-
Core --> Team["团队协作\n注册 · 任务 · 锁 · 消息"]
|
|
313
|
-
Core --> Sync["规则 & 工作区同步\n10 个适配器"]
|
|
314
|
-
Core --> Cleanup["自动清理\n保留衰减 + LLM 去重"]
|
|
315
|
-
Core --> KG["知识图谱\n实体 · 关系"]
|
|
316
|
-
Search --> Disk["~/.memorix/data/\nobservations · sessions · mini-skills · team-state · entities · relations"]
|
|
317
|
-
Team --> Disk
|
|
318
|
-
KG --> Disk
|
|
319
|
-
```
|
|
197
|
+
### 产品与架构
|
|
320
198
|
|
|
321
|
-
|
|
199
|
+
- [Architecture](docs/ARCHITECTURE.md)
|
|
200
|
+
- [Memory Formation Pipeline](docs/MEMORY_FORMATION_PIPELINE.md)
|
|
201
|
+
- [Design Decisions](docs/DESIGN_DECISIONS.md)
|
|
322
202
|
|
|
323
|
-
|
|
203
|
+
### 参考文档
|
|
324
204
|
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
阶段 3: 时间衰减 + 项目亲和度 → 最终评分结果
|
|
329
|
-
```
|
|
205
|
+
- [API Reference](docs/API_REFERENCE.md)
|
|
206
|
+
- [Git Memory Guide](docs/GIT_MEMORY.md)
|
|
207
|
+
- [Modules](docs/MODULES.md)
|
|
330
208
|
|
|
331
|
-
###
|
|
209
|
+
### 开发
|
|
332
210
|
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
```
|
|
211
|
+
- [Development Guide](docs/DEVELOPMENT.md)
|
|
212
|
+
- [Known Issues and Roadmap](docs/KNOWN_ISSUES_AND_ROADMAP.md)
|
|
336
213
|
|
|
337
|
-
###
|
|
214
|
+
### 面向 AI 的项目文档
|
|
338
215
|
|
|
339
|
-
-
|
|
340
|
-
-
|
|
341
|
-
- **Token 效率**:3 层渐进式展示(search、timeline、detail),节省约 10 倍。
|
|
342
|
-
- **优雅降级**:所有 LLM 和 Embedding 功能均为可选。核心功能零配置即可使用。
|
|
216
|
+
- [`llms.txt`](llms.txt)
|
|
217
|
+
- [`llms-full.txt`](llms-full.txt)
|
|
343
218
|
|
|
344
219
|
---
|
|
345
220
|
|
|
@@ -347,22 +222,28 @@ graph TB
|
|
|
347
222
|
|
|
348
223
|
```bash
|
|
349
224
|
git clone https://github.com/AVIDS2/memorix.git
|
|
350
|
-
cd memorix
|
|
225
|
+
cd memorix
|
|
226
|
+
npm install
|
|
351
227
|
|
|
352
|
-
npm run dev
|
|
353
|
-
npm test
|
|
354
|
-
npm run build
|
|
228
|
+
npm run dev
|
|
229
|
+
npm test
|
|
230
|
+
npm run build
|
|
355
231
|
```
|
|
356
232
|
|
|
357
|
-
|
|
233
|
+
常用本地命令:
|
|
358
234
|
|
|
359
|
-
|
|
235
|
+
```bash
|
|
236
|
+
memorix status
|
|
237
|
+
memorix dashboard
|
|
238
|
+
memorix serve-http --port 3211
|
|
239
|
+
memorix git-hook --force
|
|
240
|
+
```
|
|
360
241
|
|
|
361
242
|
---
|
|
362
243
|
|
|
363
244
|
## 致谢
|
|
364
245
|
|
|
365
|
-
|
|
246
|
+
Memorix 借鉴了 [mcp-memory-service](https://github.com/doobidoo/mcp-memory-service)、[MemCP](https://github.com/maydali28/memcp)、[claude-mem](https://github.com/anthropics/claude-code)、[Mem0](https://github.com/mem0ai/mem0) 以及更广义 MCP 生态中的许多思路。
|
|
366
247
|
|
|
367
248
|
## Star History
|
|
368
249
|
|