rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:LIghtJUNction/dsh-notes
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DSH 0.2.1-rc.2 的 Markdown 笔记工具。笔记和模板保存在工作区的 .dsh-notes/notes、.dsh-notes/templates,更新、删除必须携带上次读取的内容 revision。面向 Node 24+;本地验收环境为 Node 26。
GitHub Release 发布 v0.1.0 后,可安装其 npm tarball;此说明不表示版本已经发布:
dsh plugin --profile tui add https://github.com/LIghtJUNction/dsh-notes/releases/download/v0.1.0/lightjunction-dsh-notes-0.1.0.tgz
软件包自带 cordis.patch.yml,注册 dsh-notes。在 profile 自己的 cordis.patch.yml 或 --patch overlay 中配置:
- id: dsh-notes
config:
root: /absolute/path/to/project
不设置 root 时,使用调用 agent 的 workingDirectory 服务;没有 agent 的直接工具调用必须提供 root。所有文件操作均使用 DSH 进程所在主机的 Node filesystem,不是远程 world,也不是 sandbox 文件系统。仅在 host-local 工作区启用;远程执行器路径即使同名,也不会自动映射到远程文件。
| 工具 | 参数 | 行为 |
|---|---|---|
notes_list |
collection? |
按名称列出笔记或模板,最多 1000 项,超出时 limited: true |
notes_read |
path, collection? |
返回 {path, content, revision} |
notes_create |
path, content, template?, collection? |
创建新文件,拒绝覆盖;模板原文加在 content 前,不自动添加换行 |
notes_update |
path, content, revision, collection? |
revision 匹配后完整替换 |
notes_delete |
path, revision, collection? |
revision 匹配后永久删除 |
collection 只能是 notes(默认)或 templates。用 notes_create 的 collection: "templates" 创建模板,再使用同名工具读取、更新或删除模板。
{"tool":"notes_create","arguments":{"collection":"templates","path":"decision.md","content":"# Decision\n\n"}}
{"tool":"notes_create","arguments":{"path":"cache.md","template":"decision.md","content":"Use a bounded local cache."}}
{"tool":"notes_read","arguments":{"path":"cache.md"}}
将读取返回的完整 revision 放入下一次更新:
{"tool":"notes_update","arguments":{"path":"cache.md","revision":"<revision returned by notes_read>","content":"# Decision\n\nUse a 256-entry local cache."}}
也可以直接要求 agent:“把我明确选择的这段对话摘录保存到 decision.md。”它通过 notes_create 保存给出的文本,不会自动读取/导出会话,不提供 DSH session-search 的重复实现,也没有自动召回或后台记忆。
.md 结尾,最长 123 字符。不支持子目录、绝对路径、重命名或 Pi TUI。O_NOFOLLOW 的本地主机,已在 Linux 验证;未做 Windows 验收。.dsh-notes/.write-lock 排他写锁协调。锁忙会报错,请重试。进程崩溃留下的锁不会自动抢占;确认没有写入者后才能手动删除锁文件。npm run check --workspace @lightjunction/dsh-notes
真实 DSH ToolRuntime 测试包含 Markdown/模板 CRUD、stale revision、并发赢家、路径/符号链接/硬链接拒绝、大小限制、取消、锁冲突、dispose,以及 offline model 驱动真实 agent 调用工具。无 Pi TUI 测试;没有远程 world/sandbox 验收。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。