dshbase

插件目录 / Knowledge / dsh-task-planner

dsh-task-planner

已验证 · 实测可装 ztl34245881-commits

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

4Stars
0Forks
0未关闭 issue
JavaScript语言
2026-08-14最近推送
跨平台平台

功能简介

DSH 任务规划:条件反射回忆+LLM能力匹配+自动持久化经验

✅
我们的评价
可用 — 实测通过,早期项目

DSH 任务规划:条件反射回忆+LLM能力匹配+自动持久化经验 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-task-planner

Task planning with experience muscle-memory for DeepSeek Harness (dsh).

Give a task → the agent recalls past similar solutions (condition reflex), evaluates whether they fit, and produces a dynamic plan matched against its capabilities — never hard-coded combos. Every plan auto-drafts a lesson into the experience library; when the task closes, the agent updates the outcome. The more you work, the smarter the reflex.

Features

  • 🧠 Experience library (task_memory save/recall/list): persistent lessons as plain Markdown with signature keywords. Recall uses a 2–3-char sliding-window tokenizer, so "weekly report" still hits a "daily report" lesson.
  • ⚡ 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.

Install

dsh plugin --profile web add github:<your-user>/dsh-task-planner

or copy the repo and add it as a local bundle:

dsh plugin --profile web add /path/to/dsh-task-planner

Config (optional, in your profile's cordis.patch.yml)

- id: dsh-task-planner
  name: dsh-task-planner
  config:
    lessonsDir: /path/to/your/lessons   # default: ~/.dsh/planner-lessons
    capabilityFile: /path/to/capability-map.md  # optional catalog fed to the LLM

Point capabilityFile at a markdown catalog of your skills/plugins (e.g. an awesome list) and plan_task will match each step against it.

Usage

  • plan_task { task, goal?, constraints? } — plan before starting complex work.
  • task_memory save { task, plan, outcome } — persist a lesson (auto-called by plan_task for the draft).
  • task_memory recall { task } — condition-reflex lookup.
  • task_memory list — show all lessons.

Lesson lifecycle

  1. plan_task writes a draft lesson (status: draft) automatically.
  2. When the task closes, the agent updates it with the outcome (status: verified).
  3. A lesson reused successfully 3× → promote to a formal skill. A lesson rejected 2× → mark obsolete.

Notes

  • Requires the llm, shell, tools services (all present in the standard harness).
  • The model call uses the harness default model (agentDefaultModel); reasoning models need a generous maxTokens (8k is used internally).
  • Lessons are plain Markdown — human-editable, greppable, portable.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-task-planner」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

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

Headless(CLI)profile:

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

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

使用场景

给 agent 一套记忆、知识库或检索层,让它不再跨会话丢上下文。

适合谁

跑长项目、想让 agent 记住决策、文档和偏好而不用每次重讲的人。

二次开发建议

记忆/检索后端是缝——插新存储、调蒸馏策略,或加引用与审计轨迹。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Knowledge 里更多

浏览全部 7797 个插件 →