Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/xiaobei930/cc-best/memorygit clone --depth 1 https://github.com/xiaobei930/cc-bestWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00027 | $0.00753 |
| Opus 5 | $0.00014 | $0.00377 |
| Sonnet 5 | $0.00005 | $0.00151 |
| Haiku 4.5 | $0.00003 | $0.00075 |
Grade A, and why
memory scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
/memory - 项目记忆管理
管理项目上下文和长期记忆,确保连续性。
记忆层次
1. 即时记忆(当前会话)
- 当前任务上下文
- 最近的代码变更
- 未解决的问题
2. 短期记忆(memory-bank/progress.md)
- 今日完成的工作
- 当前阶段状态
- 待办事项
3. 长期记忆(memory-bank/*.md)
- 架构设计决策
- 技术选型理由
- 历史问题和解决方案
记忆更新规则
必须更新的时机
- 完成一个 Phase → 更新 progress.md + architecture.md
- 做出重要决策 → 记录到相关文档
- 遇到并解决问题 → 添加到问题记录
- 发现可复用模式 → 记录到规范文档
更新格式
### [日期] [时间]
**操作**: [做了什么]
**结果**: [产出/状态]
**决策**: [为什么这样做](可选)
**下一步**: [接下来做什么]
上下文恢复
新会话开始时
- 读取
memory-bank/progress.md- 了解当前状态和最近进展 - 读取当前阶段相关文档
- 确认下一步任务
恢复命令
/cc-best:memory load- 加载项目上下文/cc-best:memory status- 显示当前记忆状态/cc-best:memory sync- 同步所有记忆文件
关键文件索引
| 文件 | 用途 | 更新频率 |
|---|---|---|
memory-bank/progress.md |
当前状态和进度 | 每个任务 |
memory-bank/architecture.md |
架构设计 | 架构变更时 |
memory-bank/tech-stack.md |
技术选型 | 技术变更时 |
记忆容量管理
避免信息过载
- progress.md 只保留最近 7 天的详细记录
- 历史记录归档到
docs/history/ - 保持每个文件 < 500 行
信息压缩
- 完成的任务只保留摘要
- 相似问题合并记录
- 定期清理过时信息
渐进式加载(大项目推荐)
当 memory-bank 文件 > 5 个或总量 > 30KB 时:
- 先
ls memory-bank/查看文件列表和大小 - 用
head -20 <file>预览相关文件 - 只完整加载确实需要的文件
小项目(3-5 个文件,~20KB)直接全量加载即可,不必强求渐进式。
记住: Memory Bank 是跨会话的桥梁,每次会话结束前更新 progress.md,下次启动就能无缝继续。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 98 lines · 27 tokens per session scan A 50cf2933a511
memory is a command published in the GitHub repository xiaobei930/cc-best (50 stars, last pushed 2mo ago), licensed MIT. It adds 27 tokens to every session and 753 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
al
Run AgentLint diagnostic across all projects. Use when: user says /al, 'check all projects', 'agent lint', or '体检'.
tldr
Re-apply TLDR rules for this turn (verdict first, no filler).
moyu-lite
Invoke the moyu:moyu-lite skill and follow it exactly.
audit-plugin
Audit plugin skills, commands, and agents for structure, size, and naming issues.
lfe-dep-audit
Inspector sub-skill. Reviews dependency manifest files (package.json, requirements.txt, go.mod, Cargo.toml, pom.xml) changed in the current diff for risky version patterns and stale majors. Emits a human-run audit instruction rather than executing tools. Writes .plans/checks/depfindings.md. Called by lfe-inspector…
lfe-plan-critique
Run a 5-lens pre-build critique of the approved active plan before the Builder starts. Acts as the Architect persona, read-only on src/. Writes .plans/plancritique.md. Use immediately after Brain approves activeplan.md.