# @fractalsynapse/dsh-chapters 中文文档

规范地址：https://npmcn.com/package/%40fractalsynapse/dsh-chapters/

版本：0\.2\.33
npm 元数据更新时间：2026-11-15T19:40:02.972Z
中文译文更新时间：2026-11-15T11:45:45.432Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40fractalsynapse/dsh-chapters
原文对照：https://npmcn.com/package/%40fractalsynapse/dsh-chapters/?lang=original
项目主页：https://github.com/fractalsynapse/dsh-chapters#readme
源码仓库：https://github.com/fractalsynapse/dsh-chapters

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：3.2 MB，210 个文件
- 模块格式：ES Module
- TypeScript 类型：包内自带
- Node.js 要求：\>=24
- 运行依赖：2 个
- peer 依赖：@deepseek-ai/cordis ^4\.0\.0，@deepseek-ai/dsh-llm \*，@deepseek-ai/dsh-tools \*，@deepseek-ai/schemastery \*，@deepseek-ai/dsh-compaction \*，@deepseek-ai/dsh-home-paths \*，@deepseek-ai/dsh-storage-domain \*，@deepseek-ai/cordis-plugin-loader \*，@deepseek-ai/dsh-compaction-basic \*
- 首次发布：2026-11-03T19:27:55.382Z
- 最新版本发布：2026-11-15T19:40:02.563Z
- 近 30 天下载量：2345（2026-10-16 至 2026-11-14，npm 官方下载统计）
- 已发布版本数：15（近 12 个月 15 个）

## 中文简介

dsh 插件: 逐字记录章节存档 + 小文本模型的零托肯索引

## 安装

```sh
npm install @fractalsynapse/dsh-chapters
```

也可以使用：`pnpm add @fractalsynapse/dsh-chapters`、`yarn add @fractalsynapse/dsh-chapters`、`bun add @fractalsynapse/dsh-chapters`

## README

# dsh 章节

**当地AI的长记忆:a [深搜索策略](https://github.com/deepseek-ai/deepseek-harness) 将代理对话作为逐字记录章节存档的插件, 继续从 QTable 内容按零推算成本计算,并将档案转换成共享的可搜索的知识 泳池 游泳池 游泳池.** Npm上公布为 [`@fractalsynapse/dsh-chapters`](https://www.npmjs.com/package/@fractalsynapse/dsh-chapters)· ; 来源于 [分形突触/分章](https://github.com/fractalsynapse/dsh-chapters)。 。 。 .

> **所有文件都住在文件站点上——这个README是一个出入口,而不是重复.**
> 
> ### 📖 [https://fractalsynapse.github.io/dsh-chapers/ (中文(中国大陆) )](https://fractalsynapse.github.io/dsh-chapters/)

## 安装( 整个设置)

```bash
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>` 需要每个 `dsh plugin` 命令 (`web` =浏览器被套装描述文件). 重启后,您有叉键、 七个代理工具、十二个工具 `/chapters-*` 命令(通过) `0.2.17`,包括: `/chapters-remove`)——和任择性 `chapters` 预设路径 `/compact` 穿过了零接力引擎.

## 查找您提问的正确页面

| 你想说.. | 转到 |
| --- | --- |
| 了解这是为什么(十种好处) | [家 —— “它给你什么”](https://fractalsynapse.github.io/dsh-chapters/) |
| 安装、升级、卸载、核实出处 | [§23 安装、升级、出处](https://fractalsynapse.github.io/dsh-chapters/operations/install/) |
| 运行您的第一个收缩/ 继续 | [§1 快速启动](https://fractalsynapse.github.io/dsh-chapters/start/quickstart/) → [§2 您的第一次续作](https://fractalsynapse.github.io/dsh-chapters/start/first-continuation/) |
| 链接共享知识库( git 或 treeDX) | [§3 连接知识库](https://fractalsynapse.github.io/dsh-chapters/start/link-pool/) • 妇女 [第10节 游泳池](https://fractalsynapse.github.io/dsh-chapters/knowledge/pool/) |
| 运行任何命令——精确的语法、范围、输出 | [第15节 命令](https://fractalsynapse.github.io/dsh-chapters/reference/commands/) |
| 删除错误的章节(错误的项目提示) | [§15 命令 → `/chapters-remove`](https://fractalsynapse.github.io/dsh-chapters/reference/commands/#chapters-remove--delete-a-bad-chapter-for-real) |
| 知道代理工具会做什么 | [§16 代理工具](https://fractalsynapse.github.io/dsh-chapters/reference/tools/) |
| 调整门槛、预算或触发 | [§17 配置](https://fractalsynapse.github.io/dsh-chapters/reference/configuration/) |
| 明白吗 _为何不提要_ / 经济学 | [§5 为什么不是摘要?](https://fractalsynapse.github.io/dsh-chapters/concepts/why-not-summaries/) |
| 阅读设计规则 系统不会打破 | [第6节 四个变化者](https://fractalsynapse.github.io/dsh-chapters/concepts/invariants/) |
| 检索-超压缩(RLM)背后的理论 | [§8 递归上下文理论](https://fractalsynapse.github.io/dsh-chapters/concepts/recursive-context/) |
| 提议/批准代理人规则 | [§13 规则和治理](https://fractalsynapse.github.io/dsh-chapters/knowledge/rules/) |
| 让第二个模型 提出您的下一个提示 | [§28 迅速的建议](https://fractalsynapse.github.io/dsh-chapters/concepts/prompt-recommendations/) |
| 调试某事(“好像断了,是吗? ”) | [§4 FAQ 排除出问题](https://fractalsynapse.github.io/dsh-chapters/start/faq/) |
| 快速缓存 / lama.cpp 行为 | [§21 在lama.cpp上的缓存行为](https://fractalsynapse.github.io/dsh-chapters/evidence/llamacpp-cache/) |
| (生产运行+基准) | [§19 基准](https://fractalsynapse.github.io/dsh-chapters/evidence/benchmarks/) • 妇女 [§20 实地研究](https://fractalsynapse.github.io/dsh-chapters/evidence/field-study/) |
| 与其他内存方法进行比较 | [§22 备选案文,比较](https://fractalsynapse.github.io/dsh-chapters/evidence/comparison/) |
| 检查安全/隐私边界 | [§27 安全和隐私](https://fractalsynapse.github.io/dsh-chapters/operations/security/) |
| 释放历史和已知固定事件 | [§26 更改日志](https://fractalsynapse.github.io/dsh-chapters/operations/changelog/) |
| **开发插件本身** | [§24 发展](https://fractalsynapse.github.io/dsh-chapters/operations/development/) 下面的工程规格 |

## 发展/贡献

建立发展环境的三种方式——选择与工作流程相适应的:

| 模式 | 最好还是 | 命令 |
| --- | --- | --- |
| **集中化** (你的现场简介) | 主机的日常开发 | `./dev/install/install.sh && dsh web` |
| **比较** (同声DSH HOME) | 测试更改而不触碰您的直播会话 | `DSH_HOME=/tmp/dsh-dev ./dev/install/install.sh` |
| **集装箱化** (满堆) | 有 vLLM + Playwright + Chromium 的孤立平台 | `cd dev/install && docker compose up -d` |

所有三个安装相同的插件集: dsh- chapers, [dsh 代码](https://github.com/jiangzhenguo/dsh-codegraph) (结构代码通过预索引AST图搜索),并dsh-tinyfish-search. 详细情况 [`dev/install/README.md`](https://npmcn.com/package/%40fractalsynapse/dsh-chapters/dev/install/README.md). 集装箱堆放物额外装船 vLLM 模型服务器(Quen3-4B-AWQ带有推论+系统一端),一个DSH Web UI服务,以及 a CI能测试跑道——一切在本地运行,不需要外部API密钥.

网站的"第六部分"涵盖了日常的环路;存储器本身为代理持有工程真理:

-   **[`AGENTS.md`](https://npmcn.com/package/%40fractalsynapse/dsh-chapters/AGENTS.md)** 开发这种回购的人工智能代理人的工作范围(变化因素、预算、硬规则)
-   **[`docs/`](https://npmcn.com/package/%40fractalsynapse/dsh-chapters/docs/)** ——深谱: `contract.md` (主机API事实), `architecture.md` (机械), `development.md` (建立/测试循环+磁带系统), `verify.md` (每件索赔的程序), `knowledge-repo.md` (设计记录), `host-compaction-seam.md`, (中文(简体) ), `provider.md`
-   **[`dev/install/`](https://npmcn.com/package/%40fractalsynapse/dsh-chapters/dev/install/)** 安装机、集装箱化平台和当地语言技能
-   **基准**数字 : `npm run bench` - 3个武器,当地型号,从来没有CI([协议](https://npmcn.com/package/%40fractalsynapse/dsh-chapters/benchmarks/README.md)(中文(简体) )

特性请求和错误 : [打开一个问题](https://github.com/fractalsynapse/dsh-chapters/issues) —— 说 衡量报告得到衡量答案.

## 许可证

阿帕奇-2.0 — 见 [自由主义](https://npmcn.com/package/%40fractalsynapse/dsh-chapters/LICENSE)你的谈话、章节和知识池都属于你.

## 常见问题

### @fractalsynapse/dsh-chapters 是什么？

dsh 插件: 逐字记录章节存档 \+ 小文本模型的零托肯索引

### 如何安装 @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 和提交记录判断。

