atlas:AI Agent 工具实践指南
2026-10-03
2026-10-06 0
准备试用dsh-fast之前,先别急着安装;这个项目提供的是DeepSeek Harness 的只读性能诊断:会话 load/restore 计时、溢出命中计数、压缩计数和触发器、上下文注入量(等相关能力。在日常自动化场景里,常见问题是输入边界、依赖和失败处理如果不清楚就很难稳定复用,这正是评估时需要盯住的地方。试跑可以从用一项范围明确的真实任务完成最小试跑开始,并把配置时间、输出质量、异常信息和维护痕迹写进验收记录。整体来看,它适合愿意先做小范围验证并复查原始文档的团队拿来做对照测试,最终决定仍应回到真实结果和维护状态。

⭐ 如果它帮到了你
这个插件是 DSH 插件家族的一员(40+ 个,全部 Apache-2.0)。如果你在用,给个 star —— 它不会解锁任何功能,但会让下一个人在搜索里更容易找到它。
英语: DeepSeek Harness 40 多个插件系列的一部分。如果它有用,一颗星星可以帮助下一个人找到它 - 它后面没有任何东西。
Compatibility
dsh-v0.2.1-alpha.1(于 2026 年 9 月 18 日调整):通过可选的 sessionQuery 服务读取会话表面 — 已弃用的同步 Session.eventAt(seq) 访问器已消失,并以等效的同步读取作为后备 — 并且每个注册现在都存在于一个生命周期效果中,该效果会在相反的顺序。内部实施更改:同一日志的报告指标相同。 2026 年 10 月 4 日根据本地门链进行验证(三个类型检查标尺 + 71 次测试); compat 工作流程针对已发布的引脚重新运行配置文件安装烟雾。^22.19.0 || >=24.0.0, ESM only ("type": "module").@deepseek-ai/cordis ^4.0.2、@deepseek-ai/schemastery ^3.18.4 和 @deepseek-ai/dsh-session、@deepseek-ai/dsh-tools、@deepseek-ai/dsh-commands、@deepseek-ai/dsh-compaction、@deepseek-ai/dsh-session-query、@deepseek-ai/dsh-storage-domain在>=0.1.2-rc.1 <0.2.0 || >=0.1.5-alpha.1 <0.2.0 || >=0.1.6-0 <0.2.0 || >=0.1.7-0 <0.2.0 || >=0.2.0-rc.1 <0.3.0-0 (devDependencies pin 0.2.0-rc.2); the 0.1.2-rc.1 line stays supported at runtime through a structural fallback to the pre-0.1.5 header.system.What you get
open(新鲜)与 restore (seeded/resumed),加上恢复的种子事件计数。manual(斜杠命令)与 automatic(压力)以及总影子令牌。0.1.5-alpha.1 上的系统节点,dsh-fast 将其减去)。Quick start
git channel
# From a scratch profile (pins the commit; runs the self-contained `prepare` build)
dsh plugin --profile demo add "github:YOUR_ORG/dsh-fast#"
# The profile's pnpm-workspace.yaml gains an allowBuilds entry for dsh-fast on first add.
npm channel
dsh plugin --profile demo add dsh-fast
两个通道都会将捆绑行(请参阅 cordis.patch.yml)安装到配置文件的 dsh.profile.bundles 堆栈中,并在重新启动时生效。
Install & uninstall
dsh plugin --profile demo add dsh-fast # install
dsh plugin --profile demo remove dsh-fast # uninstall
Verify the row mounts: dsh --profile demo --dump-config | grep dsh-fast.
Configuration
所有可调参数均为 Schemastery Config 字段;无效值会导致配置文件加载失败。
| Key | Default | Description |
|---|---|---|
enabled |
true |
Master switch; false mounts nothing. |
privacy.includeCwd |
false |
Include the sanitized session working directory in reports. |
sampling.snapshotIntervalMs |
60000 |
How often active sessions are sampled (ms). |
sampling.maxHistorySamples |
20 |
Samples retained per session in the durable history. |
thresholds.systemPromptTokens |
20000 |
Warn when the system prompt exceeds this many tokens. |
thresholds.toolSchemaTokens |
8000 |
Warn when the tool schema exceeds this many tokens. |
thresholds.surfaceTokens |
60000 |
Warn when the conversation surface exceeds this many tokens. |
thresholds.cacheHitRateFloor |
0.1 |
Warn when the cache hit rate falls below this (0..1). |
thresholds.compactionCountWarn |
10 |
Warn once this many compactions have triggered. |
thresholds.compactionShadowTokens |
40000 |
Warn when the average shadowed token count per summary exceeds this. |
spill.detectSpilledResults |
true |
Detect spilled tool results from the durable notice marker. |
Tools & surfaces
/fast — 一个人类斜杠命令,用于打印当前会话的运行状况报告:加载时间、溢出、压缩、上下文卷排名、缓存命中率和建议。fast_report — 模型工具返回与结构化 JSON 相同的报告(以便模型可以对其进行推理),并具有人类可读的文本渲染。Permissions & data
dsh-fast 仅消耗公共接缝:session/* 和 agent/* 事件、可选的 ctx.tokenMeter、ctx.storageDomain、ctx.commands 和 ctx.tools。它在会话日志中是严格只读的——它永远不会改变模型请求、工具结果或会话表面。指标将持久保存到 dsh_fast 存储域(每个会话一个有限历史记录),而不是会话日志。在任何显示或持久写入之前,都会对报告标识和可选工作目录进行清理。
安全边界
cwd 默认关闭,启用时路径被截断。ctx.effect() / ctx.on() / register(),因此卸载和热重载都是干净的。已知的限制
Session.append 不提供 ignorable 标记,也没有外部事件注册表面,因此自定义 fast/* 会话事件将使持久性协调器拒绝恢复登录。因此,指标被持久化到存储域;原始事件仍然是可重构的事实来源。Full … stored at:);不存在专用会话事件。0.1.5-alpha.1 它是表面节点 0(system/message)并且不携带每节令牌记帐,因此它们一起报告。session/created(由 sessionPersistence 所有)之前,并且从该插件允许的事件中无法观察到;报告的持续时间是发布到首次请求的持续时间。tokenMeter 的主机回退到启发式令牌定价,没有 systemPrompt 的主机将整个提示归因于一个存储桶,并且忽略失败的 inspector 插座;现在,每个进程都会这样说一次,而不是默默地改变数字的含义。发展
pnpm install
pnpm run typecheck && pnpm run typecheck:ci && pnpm run typecheck:checkout
pnpm test
pnpm run build
pnpm run verify:self-contained && pnpm run verify:artifacts
node scripts/check-readme-sync.mjs
pnpm pack
主题
dsh, dsh-plugin, deepseek-harness, deepseek, cordis, performance, diagnostics, profiling, context-engineering, llm-cache
PerryLink DSH 插件系列
该项目是由 PerryLink 维护的 45 个 DeepSeek Harness 插件之一。如果这对您有帮助,其他人也可能会:
| 插件 | 单线 |
|---|---|
| dsh 自动审核 | 审批链二次模式自动审核,默认失败关闭 |
| dsh-autotier | 具有确定性风险防护和 /tier 命令的自动 strong/cheap 模型层路由 |
| dsh-后台代理 | 具有 Web UI 侧边栏、消息传递和中断的持久后台子代理 |
| dsh 预算 | DeepSeek Harness 的成本治理:预算、碳排放和延迟集中在一个面板中。 |
| dsh 目录 | DSH PerryLink 系列的桌面市场标准目录源 |
| dsh-cert-mcp | 只读 MCP 服务器公开认证注册表:等级、快照和五维证据 |
| dsh-检查点-倒带 | Claude Code /rewind-equivalent:快照、会话分叉、一次性恢复 |
| dsh-克劳德-移动 | 将 Claude Code 会话、内存、技能和 CLAUDE.md 迁移到 DSH |
| dsh 单击 | DeepSeek Harness 的跨平台本机桌面控制 — Windows 优先。 |
| dsh-composer-历史记录 | Web Composer 的终端样式输入历史记录:箭头、Ctrl+R 搜索 |
| dsh 数据质量 | 数据集质量检查和引文交叉检查(此处使用可选的数字桥) |
| dsh-防御 | DeepSeek Harness 的快速注入、越狱和泄密防御。 |
| dsh-双重检查 | 工程纪律守卫:要求格栅、测试门、对手审查 |
| dsh-draw | DeepSeek Harness 的统一静态图像生成路由。 |
| dsh-fast | DeepSeek 线束的只读性能诊断。 |
| dsh-fund-research | 中国的确定性研究报告 |
| dsh-github | GitHub PR/issues 与 DSH 集成,每次写入均由批准控制 |
| dsh产研 | 行业研究编排,通过此插件的 ctx.researchReport.assemble 密封其可交付成果 |
| dsh-laya | Laya 类型化决策 (noul/choice/score) 作为一流的 Cordis 服务和模型可见工具 |
| dsh 库 | DeepSeek 线束的本地文档知识库。 |
| dsh-local-ai | DeepSeek 线束的本地模型 (Ollama) 集成。 |
| dsh-lsp-actions | LSP 通过语言服务器诊断、格式化、完成、代码操作和重命名 |
| dsh 掩码 | PII 屏蔽中间件:模型边界匿名,显示层还原 |
| dsh-mcp-面板 | 只读 MCP 运行时面板:/mcp 命令 + 设置选项卡,包含状态、工具和错误 |
| dsh 备忘录 | 批准门控跨会话内存:ctx.memory seam + SQLite + 内存工具 |
| dsh-观察 | OpenTelemetry 和用于 DeepSeek 线束的 Langfuse 可观测性导出器。 |
| dsh 输出样式 | 克劳德代码 outputStyles-equivalent 运行时风格切换 |
| dsh 权限规则 | Claude 代码风格声明式 allow/deny/ask 权限规则,带审核 |
| dsh-插件-认证 | 具有可重复检查等级和徽章的社区认证注册表 |
| dsh-plugin-doctor | DSH 插件的零依赖静态+沙箱烟雾探测器 |
| dsh-插件指南 | 插件开发知识库作为按需代理技能 |
| dsh 插件套件 | PerryLink DSH 插件的共享零运行时依赖性工具包 |
| dsh-插件升级 | 一包一走廊索引插件升级技能:将存储库路由到匹配的封闭走廊卡 |
| dsh-reach | 多通道 approval/question 桥:WeChat//Feishu,会话控制台 |
| dsh-研究报告 | 可验证的研究报告引擎:内容寻址的证据分类账和密封版本 |
| dsh 分数 | DeepSeek Harness 插件的多维质量评分。 |
| dsh 会话引脚 | 通过持久排序将会话固定在 Web 侧栏中 |
| dsh 会话同步 | DeepSeek Harness 的跨设备会话同步 — 会话存储的专用 git 镜像。 |
| dsh-skill-pack-security | 安全审计技能包:秘密扫描、依赖性和供应链审查 |
| dsh-talk | DeepSeek 线束的语音优先会话循环:与其交谈,听到它的回答。 |
| dsh-团队房间 | 跨会话团队房间:共享消息总线、任务板和时间线 |
| dsh 试驾 | DeepSeek 线束插件的隔离安装和冒烟测试驱动。 |
| dsh-ticktick | TickTick/Dida365 任务桥:会话标题面板 + 11 个工具 |
| dsh 翻译 | DeepSeek 线束的供应商参数转换和确定性 JSON 修复。 |
从 DSH 桌面市场安装
所有 PerryLink 插件都可以在内置的 DSH 桌面市场中浏览: 市场 → 来源 → 添加来源 → 粘贴 https://perrylink-dsh-catalog.perrylink.workers.dev/catalog-source.json → 选择它。安装仍需经过 Market 的 npm 身份验证和您的确认。