跳到主内容

dsh-task-planner 使用指南

为 DSH 智能体增加经验记忆库与任务规划能力:调用前自动检索相似过往方案,由 LLM 评估是否复用并动态拆解步骤。

本文为派生内容(基于 wiki / faq / compatibility_json 自动组装),非 AI 即时创作。

本文由本站基于该插件已收录的字段自动派生(wiki / faq / compatibility_json / readme),非 AI 即时创作。每节末尾标源字段。

快速上手

dsh-task-planner

— 源: plugin_wiki.wiki_content

安装与验证

dsh plugin --profile web add github:ztl34245881-commits/dsh-task-planner

复制以上命令在 DSH Web Profile 内运行。安装完成后在「插件列表」启用即可。

— 源: plugins.install

关键要点

  • ⚡ Condition-reflex planning (plan_task): recall → LLM evaluates fit (reuse & improve, or explain why not and plan fresh) → decomposed steps with capability matching → risks → next actions.
  • 🤖 LLM-driven, not rule-driven: the model decides what to use per task; the plugin only supplies context (past experiences + optional capability catalog).
  • ✍️ De-AI deliverable standard: any textual output step (docs/sheets/slides/copy/scripts) must include a humanize-then-review pass before delivery.
  • 🗂️ Auto-persist: plan_task drafts the lesson automatically (status: draft); the agent marks it verified with the outcome at loop close.
  • 🔒 Zero keys, zero absolute paths: everything is configurable; the experience library lives in ~/.dsh/planner-lessons by default.

— 源: plugin_wiki.readme_zh (fallback readme_raw)

常见问题

这个插件必须配合哪些宿主服务?

启动时声明依赖 shell、llm、tools 三项服务,必须是官方 DSH Harness 标准环境才具备。

经验库默认存在哪里?能否换位置?

默认写到 ~/.dsh/planner-lessons 目录,每个经验是一个 Markdown 文件;可在 cordis 配置中用 lessonsDir 改成任意路径。

capabilityFile 是干什么的?

指向一份你自定义的能力清单(如 awesome list 风格的插件目录),plan_task 会把每一步与该清单做匹配,生成能力映射表。

plan_task 用的是什么模型?

复用宿主默认模型(agentDefaultModel.currentSelection),规划阶段把 maxTokens 提高到 8000 以容纳长链推理。

经验能直接用编辑器修改吗?

可以。经验是带 YAML frontmatter 的 Markdown 文件,纯文本,可 grep、可手改、可 git 版本化。

经验文件什么时候被升级为正式 skill?

插件本身不做升级,但 README 约定的规则是:经验被成功复用 3 次可晋升为 skill,被否决 2 次则标记作废。

如何彻底卸载?

删除插件并清空 lessonsDir 目录即可;只要该目录下的 .md 文件还在,下次启用插件仍能复用过往经验。

— 源: plugin_wiki.faq_json

兼容性

  • DSH: 未声明
  • Node: 未声明

— 源: plugin_wiki.compatibility_json

踩坑提醒

安装前请审阅上游仓库;本指南基于已收录字段自动派生,可能滞后于最新版本。如发现与官方文档冲突,请以上游为准。

— 来源:通用规则