Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
model-memory, skills, index-first, memory-store, developer-tools
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A model-readable local memory file protocol for AI agents.
给大模型看的本地优先记忆文件协议:模型直接用 Bash 读取 index.json、mails/*.json 和 traces/*.jsonl,CLI 只负责写入和维护一致性。
English · 文档结构 · Dogfood 指南 · 示例 · GitHub
MemoBox 是一个给大模型看的本地记忆文件协议。它把有价值的工作记录保存成结构化“记忆邮件”,并暴露轻量索引、正文和原始证据三层文件。
它解决的是工程大模型最常见的长期记忆问题:
我们不缺历史记录,缺的是一个模型可读、可审计、可按需展开的记忆表面。
MemoBox 的边界很简单:
MemoBox 约定本地文件结构 -> 大模型直接用 Bash 读取 -> CLI 只负责写入和维护一致性
邮箱模型不是比喻装饰,而是 MemoBox 的核心交互:
subject 是模型最容易读取的第一层。index.json 像 inbox 一样保存可扫描目录,但 MemoBox 不判断相关性。mails/<id>.json。traces/<id>.jsonl。pinned、archived、stale、needs_review 对应置顶、归档、过期和待复核。这就是 MemoBox 的渐进式读取:
标题 -> 摘要 -> 正文 -> 原始证据
这和大模型使用 Bash/tool 的方式相吻合:文件层暴露清晰结构,模型自己决定什么时候读、读哪条、读多深。
第一版只专注五个承诺:
.memobox 才表示项目开启记忆闭环;非简单任务开始先读 index,结束只写高价值结果。index.json 目录,避免把完整正文和证据塞进上下文。Memory Mail 或 Raw Trace。memobox --store .memobox write \
--subject "Fix slow /orders API" \
--summary "Found N+1 query pattern and added eager loading." \
--project api-platform \
--team backend \
--role model \
--tags performance,n-plus-one \
--body "Changed OrderService query path and added regression test." \
--decision "Prefer query-level fix before introducing cache."
cat .memobox/index.json
模型能读取的第一层不是完整历史,而是这样的目录条目:
{
"subject": "Fix slow /orders API",
"summary": "Found N+1 query pattern and added eager loading.",
"project": "api-platform",
"tags": ["performance", "n-plus-one"],
"status": "inbox"
}
MemoBox 不判断哪条相关。大模型自己决定是否直接打开对应正文文件或 raw trace 文件。
| 常见记忆系统 | MemoBox |
|---|---|
| 偏用户偏好、事实片段、语义召回 | 偏工作记录、决策、证据、后续动作 |
| 经常直接依赖 embedding 召回 | 默认 directory-first,可解释、可审计 |
| 来源链不一定清晰 | 摘要 -> 正文 -> raw trace 可追溯 |
| 适合个人助手长期偏好 | 适合工程大模型和多工具协作 |
| 历史越多越容易变成黑盒 | 像邮箱一样可索引、置顶、归档、标记过期 |
MemoBox 可以和 mem0、RAG、Obsidian、日志系统一起用。mem0 更适合记住用户偏好和事实,MemoBox 更适合保存模型可复查的工作记录。
| 能力 | 说明 |
|---|---|
| File protocol first | 模型直接读取 index.json、mails/*.json 和 traces/*.jsonl |
| Memory mail | 每条重要记录沉淀为一封可展开记忆邮件 |
| Raw trace on demand | 原始对话、命令、工具调用只在需要证据时读取 |
| Team-ready metadata | 内置 project、workspace、team、role、participants |
| Memory maintenance | 支持 pinned、needs_review、archived、stale |
| Maintenance CLI | 纯 Python CLI 负责写入、状态同步、提升、合并、校验和索引重建 |
flowchart LR
A["Non-trivial task + existing .memobox"] --> B["Read MemoBox Index<br/>index.json"]
B --> C{"Need a body?"}
C -- "No" --> D["Continue with index-level context"]
C -- "Yes" --> E["Read Memory Mail<br/>mails/<id>.json"]
E --> F{"Need evidence?"}
F -- "No" --> G["Use body context"]
F -- "Yes" --> H["Read Raw Trace<br/>traces/<id>.jsonl"]
MemoBox 的三层文件结构:
| 层级 | 文件 | 放什么 |
|---|---|---|
| MemoBox Index | index.json | 标题、摘要、项目、团队、角色、标签、状态、时间 |
| Memory Mail | mails/<id>.json | 背景、决策、产物、风险、后续动作、来源引用 |
| Raw Trace | traces/<id>.jsonl | 原始对话、工具调用、终端证据或外部事件 |
测试会验证:index.json 只保存 index 层信息,不会混入正文或 raw trace。
优先把 CLI 安装成隔离的用户级工具:
uv tool install "git+https://github.com/study8677/memobox.git"
# 或者
pipx install "git+https://github.com/study8677/memobox.git"
memobox --help
初始化:
memobox --store .memobox init
添加记忆:
memobox --store .memobox write \
--subject "MemoBox index-first storage" \
--summary "Models can read the lightweight index before opening memory bodies." \
--project memobox \
--team platform \
--role model \
--tags memory,storage,index-first \
--body "Implemented index/body/raw-trace split and tests for lazy expansion." \
--decision "Directory reads must never open raw traces by default."
直接读取记忆索引:
cat .memobox/index.json
按 id 直接读取正文:
cat .memobox/mails/<memory-id>.json
按 id 直接读取 raw trace:
cat .memobox/traces/<memory-id>.jsonl
npx claudepluginhub study8677/memobox --plugin memoboxPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.