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.
git clone --depth 1 https://github.com/xiaobei930/cc-bestWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/xiaobei930/cc-best/memory)<a href="https://agentmods.dev/commands/xiaobei930/cc-best/memory"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/memory/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/xiaobei930/cc-best/memory"><img src="https://agentmods.dev/badge/commands/xiaobei930/cc-best/memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00027 | $0.00753 |
| Opus 5.5 | $0.00011 | $0.00301 |
| Sonnet 5.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 1mo 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.
- 1mo ago First seen · 98 lines · 27 tokens per session scan A 50cf2933a511
memory is a command published in the GitHub repository xiaobei930/cc-best (48 stars, last pushed 4mo ago), licensed MIT. It adds 27 tokens to every session and 753 once invoked, about $0.0001 per session on Opus 5.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
retex
Retex - Capture lesson learned dans memory après fix, rollback, erreur.
audit-agents-skills
Audit quality of agents, skills, and commands in a Claude Code project.
audit-whitepapers
Audit version freshness, FR/EN parity, and metadata quality of all whitepapers and recap cards.
audit-repo-docs
Audit repository documentation against 85+ best practices from claude-code-ultimate-guide.
boldguy-linkedin-answer
Draft a LinkedIn comment on a post, referencing the guide's relevant section, in Flow style with AI markers removed.
methodology-advisor
Analyzes your codebase and asks 3 targeted questions to recommend the right AI-assisted development methodology stack.