@fractalsynapse/dsh-chapters

中文文档
0.2.33发布于 2026/11/16Apache-2.0TypeScriptES Module构建来源已验证近 30 天下载 2345

dsh plugin: verbatim chapter archive + zero-token index for small-context models

原始使用文档
文档目录5 节
  1. 📖 https://fractalsynapse.github.io/dsh-chapters/
  2. Install (the whole setup)
  3. Find the right page for your question
  4. Developing / contributing
  5. License

dsh-chapters

Long memory for local AI: a DeepSeek Harness plugin that archives agent conversations as verbatim chapters, continues sessions from a Table of Contents at zero inference-token cost, and turns that archive into a shared, searchable knowledge pool. Published on npm as @fractalsynapse/dsh-chapters; source at fractalsynapse/dsh-chapters.

All documentation lives on the documentation site — this README is a doorway, not a duplicate.

📖 https://fractalsynapse.github.io/dsh-chapters/

Install (the whole setup)

dsh plugin --profile web add @fractalsynapse/dsh-chapters      # install into your harness profile
dsh plugin --profile web update @fractalsynapse/dsh-chapters   # keep current — restart `dsh web` after

--profile <name> is required on every dsh plugin command (web = the browser harness profile). After restart you have the fork button, seven agent tools, twelve /chapters-* commands (through 0.2.17, including /chapters-remove) — and the optional chapters preset that routes /compact through the zero-token engine.

Find the right page for your question

You want to…Go to
understand what this is / why (the ten benefits)Home → “What it gives you”
install, upgrade, uninstall, verify provenance§23 Install, upgrade, provenance
run your first compaction/continuation§1 Quickstart → §2 Your first continuation
link a shared knowledge pool (git or TreeDX)§3 Link a knowledge pool · §10 The pool
run any command — exact syntax, scope, outputs§15 Commands
delete a bad chapter (the wrong-project prompt)§15 Commands → /chapters-remove
know what the agent-facing tools do§16 Agent tools
tune a threshold, budget, or trigger§17 Configuration
understand why not summaries / the economics§5 Why not summaries?
read the design rules the system won't break§6 The four invariants
the theory behind retrieval-over-compression (RLM)§8 Recursive context theory
propose/approve rules for agents§13 Rules & governance
let a second model propose your next prompt§28 Prompt recommendations
debug something (“seems broken, is it?”)§4 FAQ & troubleshooting
prompt-cache / llama.cpp behavior§21 Cache behavior on llama.cpp
see measured results (production run + benchmarks)§19 Benchmarks · §20 Field study
compare with other memory approaches§22 The alternatives, compared
check security/privacy boundaries§27 Security & privacy
release history & known-fixed incidents§26 Changelog
develop the plugin itself§24 Developing → the engineering specs below

Developing / contributing

Three ways to set up a development environment — pick whichever fits your workflow:

ModeBest forCommand
Centralized (your live profile)Day-to-day development on your main machine./dev/install/install.sh && dsh web
Compartmentalized (isolated DSH_HOME)Testing changes without touching your live sessionsDSH_HOME=/tmp/dsh-dev ./dev/install/install.sh
Containerized (full stack)Isolated platform with vLLM + Playwright + Chromiumcd dev/install && docker compose up -d

All three install the same plugin set: dsh-chapters, dsh-codegraph (structural code search via pre-indexed AST graph), and dsh-tinyfish-search. Full details in dev/install/README.md. The containerized stack additionally ships its own vLLM model server (Qwen3-4B-AWQ with inference + systemone endpoints), a DSH Web UI service, and a CI-capable test runner — everything runs locally with no external API keys required.

The site's Part VI covers the daily loop; the repository itself holds the engineering truth for agents:

  • AGENTS.md — working spec for AI agents developing this repo (invariants, budget, hard rules)
  • docs/ — deep specs: contract.md (host API facts), architecture.md (mechanics), development.md (build/test loop + tape system), verify.md (every claim's procedure), knowledge-repo.md (design record), host-compaction-seam.md, provider.md
  • dev/install/ — installer, containerized platform, and local-llm skill
  • benchmarks: npm run bench — three arms, local model, never CI (protocol)

Feature requests and bugs: open an issue — measured reports get measured answers.

License

Apache-2.0 — see LICENSE. Your conversations, chapters, and knowledge pools stay yours.

版本与发布记录

@fractalsynapse/dsh-chapters 共发布 15 个版本,首次发布于 2026/11/04;过去 12 个月发布了 15 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.33latest2026/11/16今天
0.2.322026/11/151 天前
0.2.312026/11/088 天前
0.2.302026/11/069 天前
0.2.292026/11/0610 天前
0.2.282026/11/0610 天前

关于 @fractalsynapse/dsh-chapters 的常见问题

@fractalsynapse/dsh-chapters 是什么?

dsh plugin: verbatim chapter archive + zero-token index for small-context models

如何安装 @fractalsynapse/dsh-chapters?

在项目目录运行 npm install @fractalsynapse/dsh-chapters,或使用 pnpm add / yarn add / bun add。

@fractalsynapse/dsh-chapters 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@fractalsynapse/dsh-chapters 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@fractalsynapse/dsh-chapters 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@fractalsynapse/dsh-chapters 可以商用吗?

@fractalsynapse/dsh-chapters 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@fractalsynapse/dsh-chapters 的下载量有多少?

根据 npm 官方下载统计,@fractalsynapse/dsh-chapters 在 2026/10/16 – 2026/11/14 这 30 天内被下载 2,345 次,日均约 78 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@fractalsynapse/dsh-chapters 还在维护吗?

最新版本 0.2.33 发布于 2026/11/16(今天);至今共发布 15 个版本,其中过去 12 个月发布了 15 个;首次发布于 2026/11/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。