@pcircle/memesh 2.8.7 → 2.8.8
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 +63 -66
- package/README.zh-TW.md +65 -68
- package/package.json +1 -1
- package/plugin.json +1 -1
package/README.md
CHANGED
|
@@ -2,147 +2,144 @@
|
|
|
2
2
|
|
|
3
3
|
# 🧠 MeMesh
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Persistent Memory for Claude Code
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Claude forgets everything between sessions. MeMesh fixes that.
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@pcircle/memesh)
|
|
10
10
|
[](LICENSE)
|
|
11
11
|
[](https://modelcontextprotocol.io)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[Quick Install](#install) • [Usage](#usage) • [Troubleshooting](#troubleshooting) • [繁體中文](README.zh-TW.md)
|
|
14
14
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## The Problem
|
|
20
20
|
|
|
21
|
-
Every new Claude Code session:
|
|
21
|
+
Every new Claude Code session starts from zero:
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
You: "Remember our auth setup?"
|
|
25
|
-
Claude: "I don't have
|
|
26
|
-
You: *explains for the 47th time* 😤
|
|
24
|
+
You: "Remember our auth setup from yesterday?"
|
|
25
|
+
Claude: "I don't have context from previous sessions..."
|
|
27
26
|
```
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
You end up re-explaining the same decisions, architecture, and constraints — over and over.
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
## How MeMesh Helps
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
MeMesh gives Claude a persistent memory that survives across sessions:
|
|
34
33
|
|
|
35
34
|
```bash
|
|
36
|
-
#
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
# Session 50 (Friday)
|
|
41
|
-
You: buddy-remember "auth"
|
|
42
|
-
MeMesh: 📚 JWT auth from Jan 15
|
|
43
|
-
→ Access tokens: 15min
|
|
44
|
-
→ Refresh tokens: 7 days
|
|
35
|
+
# Monday: You make a decision
|
|
36
|
+
buddy-remember "auth"
|
|
37
|
+
# → JWT auth: access tokens 15min, refresh tokens 7 days
|
|
38
|
+
# → Decided on Jan 15, stored permanently
|
|
45
39
|
```
|
|
46
40
|
|
|
47
|
-
|
|
41
|
+
Your project decisions, architecture context, and debugging history — all remembered automatically.
|
|
48
42
|
|
|
49
43
|
---
|
|
50
44
|
|
|
51
|
-
##
|
|
45
|
+
## Install
|
|
46
|
+
|
|
47
|
+
**Prerequisites**: [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) and Node.js >= 20
|
|
52
48
|
|
|
53
49
|
```bash
|
|
54
50
|
npm install -g @pcircle/memesh
|
|
55
51
|
```
|
|
56
52
|
|
|
57
|
-
Restart Claude Code.
|
|
53
|
+
Restart Claude Code. That's it.
|
|
54
|
+
|
|
55
|
+
**Verify it works** — in a new Claude Code session, type:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
buddy-help
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
If you see a list of available commands, MeMesh is running.
|
|
58
62
|
|
|
59
63
|
<details>
|
|
60
|
-
<summary
|
|
64
|
+
<summary>Install from source (for contributors)</summary>
|
|
61
65
|
|
|
62
66
|
```bash
|
|
63
67
|
git clone https://github.com/PCIRCLE-AI/claude-code-buddy.git
|
|
64
68
|
cd claude-code-buddy
|
|
65
69
|
npm install && npm run build
|
|
66
|
-
npm link # or use ./scripts/quick-install.sh
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
</details>
|
|
70
73
|
|
|
71
74
|
---
|
|
72
75
|
|
|
73
|
-
##
|
|
76
|
+
## Usage
|
|
74
77
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
MeMesh provides 3 core commands inside Claude Code:
|
|
79
|
+
|
|
80
|
+
| Command | What it does |
|
|
81
|
+
|---------|-------------|
|
|
82
|
+
| `buddy-do "task"` | Execute a task and save what was learned |
|
|
83
|
+
| `buddy-remember "topic"` | Recall past decisions and context |
|
|
84
|
+
| `buddy-help` | Show all available commands |
|
|
80
85
|
|
|
81
86
|
**Examples:**
|
|
82
87
|
|
|
83
88
|
```bash
|
|
84
89
|
buddy-do "explain this codebase"
|
|
85
90
|
buddy-do "add user authentication"
|
|
86
|
-
buddy-do "fix the build error"
|
|
87
|
-
|
|
88
91
|
buddy-remember "API design decisions"
|
|
89
92
|
buddy-remember "why we chose PostgreSQL"
|
|
90
|
-
|
|
91
|
-
buddy-help # Shows all available commands
|
|
92
93
|
```
|
|
93
94
|
|
|
95
|
+
Memories are stored locally on your machine and persist across sessions (90 days for decisions, 30 days for session context).
|
|
96
|
+
|
|
94
97
|
---
|
|
95
98
|
|
|
96
|
-
##
|
|
99
|
+
## Troubleshooting
|
|
97
100
|
|
|
98
|
-
|
|
99
|
-
- Remembers project decisions (90 days)
|
|
100
|
-
- Recalls session context (30 days)
|
|
101
|
-
- Semantic search across all memories
|
|
101
|
+
**MeMesh not loading?**
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
- FTS5 + vector search
|
|
103
|
+
```bash
|
|
104
|
+
# Check installation
|
|
105
|
+
npm list -g @pcircle/memesh
|
|
107
106
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
- Auto-tags memories
|
|
111
|
-
- Just install and use
|
|
107
|
+
# Check Node.js version (needs >= 20)
|
|
108
|
+
node --version
|
|
112
109
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
# Repair installation
|
|
111
|
+
memesh setup
|
|
112
|
+
```
|
|
116
113
|
|
|
117
|
-
|
|
118
|
-
- **[User Guide](docs/USER_GUIDE.md)** - Complete usage guide
|
|
119
|
-
- **[Commands Reference](docs/COMMANDS.md)** - All available commands and tools
|
|
120
|
-
- **[Getting Started](docs/GETTING_STARTED.md)** - Installation guide
|
|
121
|
-
- **[Troubleshooting](docs/TROUBLESHOOTING.md)** - Common issues
|
|
114
|
+
Then restart Claude Code completely.
|
|
122
115
|
|
|
123
|
-
|
|
124
|
-
- **[Architecture](docs/ARCHITECTURE.md)** - System architecture and design
|
|
125
|
-
- **[Best Practices](docs/BEST_PRACTICES.md)** - Usage tips and recommendations
|
|
126
|
-
- **[API Reference](docs/api/API_REFERENCE.md)** - Complete API documentation
|
|
116
|
+
See the full [Troubleshooting Guide](docs/TROUBLESHOOTING.md) for more.
|
|
127
117
|
|
|
128
118
|
---
|
|
129
119
|
|
|
130
|
-
##
|
|
120
|
+
## Documentation
|
|
131
121
|
|
|
132
|
-
|
|
122
|
+
- **[Getting Started](docs/GETTING_STARTED.md)** — First-time setup walkthrough
|
|
123
|
+
- **[User Guide](docs/USER_GUIDE.md)** — Complete usage guide
|
|
124
|
+
- **[Commands Reference](docs/COMMANDS.md)** — All commands and tools
|
|
125
|
+
- **[Architecture](docs/ARCHITECTURE.md)** — How MeMesh works internally
|
|
133
126
|
|
|
134
127
|
---
|
|
135
128
|
|
|
136
|
-
##
|
|
129
|
+
## Contributing
|
|
130
|
+
|
|
131
|
+
Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
132
|
+
|
|
133
|
+
## License
|
|
137
134
|
|
|
138
|
-
AGPL-3.0
|
|
135
|
+
AGPL-3.0 — See [LICENSE](LICENSE)
|
|
139
136
|
|
|
140
137
|
---
|
|
141
138
|
|
|
142
139
|
<div align="center">
|
|
143
140
|
|
|
144
|
-
|
|
141
|
+
Something not working? [Open an issue](https://github.com/PCIRCLE-AI/claude-code-buddy/issues/new) — we respond fast.
|
|
145
142
|
|
|
146
|
-
[Report Bug](https://github.com/PCIRCLE-AI/claude-code-buddy/issues) • [Request Feature](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
143
|
+
[Report Bug](https://github.com/PCIRCLE-AI/claude-code-buddy/issues/new?labels=bug&template=bug_report.md) • [Request Feature](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
147
144
|
|
|
148
145
|
</div>
|
package/README.zh-TW.md
CHANGED
|
@@ -2,149 +2,146 @@
|
|
|
2
2
|
|
|
3
3
|
# 🧠 MeMesh
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Claude Code 的持久記憶
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Claude 每次開新 session 都會忘記一切。MeMesh 解決這個問題。
|
|
8
8
|
|
|
9
9
|
[](https://www.npmjs.com/package/@pcircle/memesh)
|
|
10
10
|
[](LICENSE)
|
|
11
11
|
[](https://modelcontextprotocol.io)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[安裝](#安裝) • [使用方式](#使用方式) • [疑難排解](#疑難排解) • [English](README.md)
|
|
14
14
|
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## 問題
|
|
20
20
|
|
|
21
|
-
每次開新的 Claude Code session
|
|
21
|
+
每次開新的 Claude Code session 都從零開始:
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
|
|
25
|
-
Claude
|
|
26
|
-
你:*第 47 次解釋* 😤
|
|
24
|
+
你:「還記得我們昨天的 auth 設定嗎?」
|
|
25
|
+
Claude:「我沒有之前 session 的 context...」
|
|
27
26
|
```
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
你不斷重複解釋同樣的決策、架構和限制。
|
|
30
29
|
|
|
31
|
-
|
|
30
|
+
## MeMesh 如何幫助
|
|
32
31
|
|
|
33
|
-
|
|
32
|
+
MeMesh 讓 Claude 擁有跨 session 的持久記憶:
|
|
34
33
|
|
|
35
34
|
```bash
|
|
36
|
-
#
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
# Session 50 (週五)
|
|
41
|
-
你:buddy-remember "auth"
|
|
42
|
-
MeMesh: 📚 1月15日的 JWT 認證
|
|
43
|
-
→ Access tokens: 15分鐘
|
|
44
|
-
→ Refresh tokens: 7天
|
|
35
|
+
# 週一:你做了一個決策
|
|
36
|
+
buddy-remember "auth"
|
|
37
|
+
# → JWT 認證:access token 15分鐘,refresh token 7天
|
|
38
|
+
# → 1月15日決定,永久儲存
|
|
45
39
|
```
|
|
46
40
|
|
|
47
|
-
|
|
41
|
+
專案決策、架構脈絡、除錯紀錄 — 全部自動記住。
|
|
48
42
|
|
|
49
43
|
---
|
|
50
44
|
|
|
51
|
-
##
|
|
45
|
+
## 安裝
|
|
46
|
+
|
|
47
|
+
**前置需求**:[Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) 和 Node.js >= 20
|
|
52
48
|
|
|
53
49
|
```bash
|
|
54
50
|
npm install -g @pcircle/memesh
|
|
55
51
|
```
|
|
56
52
|
|
|
57
|
-
重啟 Claude Code
|
|
53
|
+
重啟 Claude Code,完成。
|
|
54
|
+
|
|
55
|
+
**驗證安裝** — 在新的 Claude Code session 中輸入:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
buddy-help
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
看到指令列表就代表 MeMesh 正在運作。
|
|
58
62
|
|
|
59
63
|
<details>
|
|
60
|
-
<summary
|
|
64
|
+
<summary>從原始碼安裝(給貢獻者)</summary>
|
|
61
65
|
|
|
62
66
|
```bash
|
|
63
67
|
git clone https://github.com/PCIRCLE-AI/claude-code-buddy.git
|
|
64
68
|
cd claude-code-buddy
|
|
65
69
|
npm install && npm run build
|
|
66
|
-
npm link # 或使用 ./scripts/quick-install.sh
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
</details>
|
|
70
73
|
|
|
71
74
|
---
|
|
72
75
|
|
|
73
|
-
##
|
|
76
|
+
## 使用方式
|
|
74
77
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
MeMesh 在 Claude Code 中提供 3 個核心指令:
|
|
79
|
+
|
|
80
|
+
| 指令 | 功能 |
|
|
81
|
+
|------|------|
|
|
82
|
+
| `buddy-do "任務"` | 執行任務並記住學到的內容 |
|
|
83
|
+
| `buddy-remember "主題"` | 回想過去的決策和脈絡 |
|
|
84
|
+
| `buddy-help` | 顯示所有可用指令 |
|
|
80
85
|
|
|
81
86
|
**範例:**
|
|
82
87
|
|
|
83
88
|
```bash
|
|
84
89
|
buddy-do "解釋這個 codebase"
|
|
85
90
|
buddy-do "加上使用者認證"
|
|
86
|
-
buddy-do "修正 build error"
|
|
87
|
-
|
|
88
91
|
buddy-remember "API 設計決策"
|
|
89
92
|
buddy-remember "為什麼選 PostgreSQL"
|
|
90
|
-
|
|
91
|
-
buddy-help # 顯示所有可用指令
|
|
92
93
|
```
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
## 🎯 核心功能
|
|
95
|
+
記憶儲存在你的本機,跨 session 持續保存(決策 90 天,session 脈絡 30 天)。
|
|
97
96
|
|
|
98
|
-
|
|
99
|
-
- 記住專案決策(90天)
|
|
100
|
-
- 回想 session context(30天)
|
|
101
|
-
- 語意搜尋所有記憶
|
|
97
|
+
---
|
|
102
98
|
|
|
103
|
-
|
|
104
|
-
- 自動整理你的知識
|
|
105
|
-
- 連結相關概念
|
|
106
|
-
- FTS5 + 向量搜尋
|
|
99
|
+
## 疑難排解
|
|
107
100
|
|
|
108
|
-
|
|
109
|
-
- 自動追蹤專案變更
|
|
110
|
-
- 自動標記記憶
|
|
111
|
-
- 安裝即用
|
|
101
|
+
**MeMesh 沒有載入?**
|
|
112
102
|
|
|
113
|
-
|
|
103
|
+
```bash
|
|
104
|
+
# 檢查安裝
|
|
105
|
+
npm list -g @pcircle/memesh
|
|
114
106
|
|
|
115
|
-
|
|
107
|
+
# 檢查 Node.js 版本(需要 >= 20)
|
|
108
|
+
node --version
|
|
116
109
|
|
|
117
|
-
|
|
110
|
+
# 修復安裝
|
|
111
|
+
memesh setup
|
|
112
|
+
```
|
|
118
113
|
|
|
119
|
-
|
|
120
|
-
- **[使用指南](docs/USER_GUIDE.md)** - 完整使用教學
|
|
121
|
-
- **[指令參考](docs/COMMANDS.md)** - 所有可用指令與工具
|
|
122
|
-
- **[快速開始](docs/GETTING_STARTED.md)** - 新手安裝指南
|
|
123
|
-
- **[疑難排解](docs/TROUBLESHOOTING.md)** - 常見問題
|
|
114
|
+
然後完全重啟 Claude Code。
|
|
124
115
|
|
|
125
|
-
|
|
126
|
-
- **[架構說明](docs/ARCHITECTURE.md)** - 系統架構與設計
|
|
127
|
-
- **[最佳實踐](docs/BEST_PRACTICES.md)** - 使用建議與技巧
|
|
128
|
-
- **[API 參考](docs/api/API_REFERENCE.md)** - 完整 API 文檔
|
|
116
|
+
完整指南請參閱 [疑難排解文件](docs/TROUBLESHOOTING.md)。
|
|
129
117
|
|
|
130
118
|
---
|
|
131
119
|
|
|
132
|
-
##
|
|
120
|
+
## 文件
|
|
121
|
+
|
|
122
|
+
> 詳細文件目前僅提供英文版
|
|
133
123
|
|
|
134
|
-
|
|
124
|
+
- **[快速開始](docs/GETTING_STARTED.md)** — 首次安裝指引
|
|
125
|
+
- **[使用指南](docs/USER_GUIDE.md)** — 完整使用教學
|
|
126
|
+
- **[指令參考](docs/COMMANDS.md)** — 所有指令與工具
|
|
127
|
+
- **[架構說明](docs/ARCHITECTURE.md)** — MeMesh 內部運作方式
|
|
135
128
|
|
|
136
129
|
---
|
|
137
130
|
|
|
138
|
-
##
|
|
131
|
+
## 貢獻
|
|
132
|
+
|
|
133
|
+
歡迎貢獻!請參閱 [CONTRIBUTING.md](CONTRIBUTING.md)。
|
|
134
|
+
|
|
135
|
+
## 授權
|
|
139
136
|
|
|
140
|
-
AGPL-3.0
|
|
137
|
+
AGPL-3.0 — 詳見 [LICENSE](LICENSE)
|
|
141
138
|
|
|
142
139
|
---
|
|
143
140
|
|
|
144
141
|
<div align="center">
|
|
145
142
|
|
|
146
|
-
|
|
143
|
+
遇到問題?[回報 Issue](https://github.com/PCIRCLE-AI/claude-code-buddy/issues/new) — 我們會快速回應。
|
|
147
144
|
|
|
148
|
-
[回報 Bug](https://github.com/PCIRCLE-AI/claude-code-buddy/issues) • [功能請求](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
145
|
+
[回報 Bug](https://github.com/PCIRCLE-AI/claude-code-buddy/issues/new?labels=bug&template=bug_report.md) • [功能請求](https://github.com/PCIRCLE-AI/claude-code-buddy/discussions)
|
|
149
146
|
|
|
150
147
|
</div>
|
package/package.json
CHANGED
package/plugin.json
CHANGED