带经验肌肉记忆的任务规划:条件反射检索历史方案 + LLM 能力匹配 + 经验自动沉淀。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:ztl34245881-commits/dsh-task-planner
GitHub 来源的插件在安装时会在你的机器上执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
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_taskdrafts the lesson automatically (status:draft); the agent marks itverifiedwith the outcome at loop close. - 🔒 Zero keys, zero absolute paths: everything is configurable; the experience library lives in
~/.dsh/planner-lessonsby 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
plan_taskwrites a draft lesson (status: draft) automatically.- When the task closes, the agent updates it with the outcome (
status: verified). - A lesson reused successfully 3× → promote to a formal skill. A lesson rejected 2× → mark obsolete.
Notes
- Requires the
llm,shell,toolsservices (all present in the standard harness). - The model call uses the harness default model (
agentDefaultModel); reasoning models need a generousmaxTokens(8k is used internally). - Lessons are plain Markdown — human-editable, greppable, portable.
License
MIT
链接
同类插件
NanmiCoder/dsh-agent-teams★ 230
AgentTeams 多智能体团队。
icetomoyo/dsh_workflow★ 54
把 UltraCode 式多 Agent 调度带给 DSH:可生成、可保存、可治理、可观察、可恢复的 Workflow 层。
btspoony/mstar-harness★ 42
技能驱动的 harness/loop 工程化工作流插件。
titanwings/dsh-automation★ 30
定时任务:让 Coding 任务按计划在全新 Agent Session 中运行,保留可审计历史。
whyihaveyou/dsh-suite#plugin-team-board★ 14
多 agent 共享任务板:经 Cordis service key 创建/认领/流转/查询任务。
omdsh-dev/dsh-deep-research★ 9
自适应深度研究编排器(基于官方 workflow 引擎)。