Files
oc/memory/ROOT.md
T
xiaoshuai d03a9f462c memory: 记下 opencode 配置仓库本身的位置与推送方式
新增 facts/opencode-config-oc-repo.md:~/.config/opencode 是独立仓库
(oc.git / main / SSH),只跟踪三棵树,改动在项目目录里看不到,
必须单独提交。顺带补上 facts 类别的 index.md。

Verified: cd ~/.config/opencode && git status 干净、
git log @{u}..HEAD 为空,push 返回 8dc02b6..2d4df45 之后无新差异。
2026-10-12 18:11:41 +08:00

47 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 记忆总纲 — 全局
> 跨项目通用记忆:你的偏好、技术决策、通用约定、踩过的坑。
> 由 memory 插件维护。`auto:begin` / `auto:end` 之间的表格是编译产物,不要手改;
> 其余区域随便写。
## 当前目标
<!-- 手写:现在在做什么。插件不会碰这里。 -->
## 铁规则(常驻,永不衰减)
<!-- 手写:只写硬性要求。rules/ 目录下的文件会被自动常驻注入。 -->
## 目录登记
<!-- auto:begin registry
| 目录 | 概述 | 条目 |
|---|---|---|
| decisions/ | 选 Markdown 因为人类可纠正性和可同步性,检索由插件做而非模型。 | 1 |
| facts/ | 该目录自身是 git 仓库,只跟踪 skills/ plugins/ memor | 1 |
| pitfalls/ | unicode61 把整段中文当一个 token,trigram 漏掉两字词,必 | 1 |
| rules/ | 不可违反的硬规则,常驻 | 1 (1 钉住) |
<!-- auto:end
## 加载路由表
<!-- auto:begin routing
| 场景 / 触发 | 读哪个文件 | 类型 |
|---|---|---|
| ~/.config/opencode 改动 | facts/opencode-config-oc-repo.md | fact |
| FTS5 | pitfalls/sqlite-cjk-tokenizer.md | fact |
| memory | decisions/memory-store-format.md | fact |
| oc 仓库 | facts/opencode-config-oc-repo.md | fact |
| opencode 配置提交 | facts/opencode-config-oc-repo.md | fact |
| skills plugins memory 推送 | facts/opencode-config-oc-repo.md | fact |
| SQLite | pitfalls/sqlite-cjk-tokenizer.md | fact |
| 中文检索 | pitfalls/sqlite-cjk-tokenizer.md | fact |
| 为什么用 markdown | decisions/memory-store-format.md | fact |
| 全文检索 | pitfalls/sqlite-cjk-tokenizer.md | fact |
| 分词 | pitfalls/sqlite-cjk-tokenizer.md | fact |
| 存储选型 | decisions/memory-store-format.md | fact |
| 记忆 | decisions/memory-store-format.md | fact |
<!-- auto:end