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