# dsh-task-list **Repository Path**: loosount/dsh-task-list ## Basic Information - **Project Name**: dsh-task-list - **Description**: DSH 待办清单:会话标题旁的 List 按钮,待办理/已办理两页签,可钉住浮窗。Task list button for DeepSeek Harness. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-27 - **Last Updated**: 2026-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: DeepSeekHarness, dsh ## README # dsh-task-list · 待办清单 > 会话标题旁一个 **List** 按钮,点开是「待办理 / 已办理」两个页签。 > > A **List** button beside the session title with pending / done tabs. --- ## 中文 ### 它是什么 在会话标题旁(预设按钮「创造模式」右边)加一个 **List** 按钮,点开一个小窗: | 元素 | 行为 | |---|---| | **待办理** 页签 | 还没做的事,按顺序列出 | | **已办理** 页签 | 划掉的事,带完成时间,可点 ✓ 恢复回待办理 | | 每行左边 **✓**(灰) | 悬停变**绿**,点了 = 完成,移到已办理 | | 每行右边 **×**(灰) | 悬停变**红**,点了 = 误记录/不做了,从待办理移除 | | 标题旁的紫色小圆点 | 待办理条数 | | **📌 图钉** | 钉住后切到别处也不关,浮在按钮旁边;不钉时点外面就收起 | | 两个页签都只展示 **5 条** | 多的用右侧半透明滚动条往下拉 | 按钮上灰灰的那个数字就是还剩几件,一眼能看到。 ### 数据存在哪 ``` ~/.dsh/dsh-task-list/tasks.json ``` 纯 JSON,可以直接改。结构: ```json { "version": 1, "tasks": [ { "id": "seed-p0", "text": "要做的事", "note": "备注", "state": "pending", "createdAt": "...", "closedAt": null } ] } ``` `state` 三态:`pending` / `done` / `dropped`。写坏文件不会崩——插件会把它改名为 `tasks.json.corrupt-<时间戳>` 再从空白开始。 ### 接口 Host 半边在 `/dsh-task-list` 下开了一个小 API: | 方法 | 路径 | 作用 | |---|---|---| | GET | `/dsh-task-list/tasks` | 取全部(按状态分三组) | | POST | `/dsh-task-list/act` | `{action: done\|drop\|restore\|add, id?, text?}` | #### 给其他 Agent:内置两个工具(有前提) 插件**注册了两个全局工具**: | 工具 | 作用 | |---|---| | `task_add` | 加一条待办,参数 `text` / `note`。**永远落进「待办理」** | | `task_list` | 读清单:待办理条目 + 已办理条数 | 工具说明里写死了规矩:**只能加,不能标完成**——勾完成是人的动作,工具也不提供这个能力。 > **0.1.4 起已修**:工具改成**按会话注册**(`agent.ctx.tools.register`),和 `fish-memory` 的 `remember` > 用同一套机制——预设只列自己的工具插件,但会话作用域的注册不受那层过滤影响,所以现在真的会出现 > 在每个会话的工具表里。`GET /dsh-task-list/diag` 会返回 `agents`(当前挂上了几个会话)。 > > 全局注册还留着(对不做预设过滤的部署有用),作用域注册会盖住它,不会重复。 底层接口(给不用工具的脚本用): | 目的 | 请求 | |---|---| | 加一条 | `POST {origin}/dsh-task-list/act`,body `{"action":"add","text":"...","note":"..."}` | | 看清单 | `GET {origin}/dsh-task-list/tasks` | `origin` 用当前 DSH 的地址(端口每个实例不同),文件在 `~/.dsh/dsh-task-list/tasks.json`。 ## 安装 ```bash dsh plugin --profile desktop add "link:C:\projects\dsh-task-list" ``` 装完**重启一次 DSH**。 ### 和「会话分支」的关系 这个按钮注册在 `conversation.session.header.actions`,本身就是**会话作用域**的插槽——每个会话都能看到, 但数据是**全局一份**(不分会话)。如果以后想让每个会话有自己的待办,说一声,按 `sessionId` 分桶就行。 --- ## English A **List** action next to the session title (right of the preset chip). It opens a small window with two tabs: - **待办理 (pending)** — left tick turns green on hover: mark done, it moves to the other tab. - **已办理 (done)** — struck through with a timestamp; the tick restores it to pending. - The right cross turns red on hover: recorded by mistake / no longer wanted, drops it from pending. The count badge next to the button shows how many are still pending. State lives in `~/.dsh/dsh-task-list/tasks.json` (plain JSON, safe to edit). A corrupt file is renamed aside and the store restarts empty instead of breaking the button. Host API: `GET /dsh-task-list/tasks`, `POST /dsh-task-list/act`. **Nothing extracts tasks from the conversation automatically.** Items come from a human using the UI, or from an agent that knows this API. Another session's agent will not react to "note that down" unless it has been told about it — pass it `POST {origin}/dsh-task-list/act` with `{"action":"add","text":"..."}`. Agents may only **add** items (they always land in 待办理). They must never mark one done — ticking is a human action. The origin is the current DSH Web GUI URL; the port differs per instance. To make every session follow that rule, put it in `~/.dsh/AGENTS.md` (DSH hot-reloads it in every session) rather than relying on this README. --- ## 署名 · Credits - 修改:昆昆的赛博打工鲸(Finn) - 校对:昆昆的打工鲸(Marin) MIT License — see [LICENSE](LICENSE).