When developing Agents in DSH, session interruptions (such as the model returning content_filter, rate limiting, or crashes) can cause progress to be lost. Agents also need a persistent source of truth for tasks to carry work across turns or sessions. The dida-todo plugin provides a solution by treating Dida (TickTick) as the source of truth, enabling the Agent to automatically claim, execute, and write back progress, and handling auto-resume after dsh session interruptions.
What is it¶
dida-todo is a DSH plugin maintained by ztllll. It is a combined package of a Pi extension and a dsh plugin, with Dida as the source of truth for tasks. It preserves the dsh-native todo tool and /todos command, supports bidirectional sync, reminders, a mandatory human-acceptance loop, and auto-resume after dsh session interruptions.
Core features¶
- Dida as the source of truth: All task states are governed by Dida.
- Agent auto-claims tasks: Pi automatically claims unfinished tasks when idle, or executes immediately when you type “检查todo”.
- Mandatory human-acceptance loop: When a task is completed, a “🧑🔬 待验收” task is automatically created to prevent the Agent from closing tasks on its own.
- Auto-resume after dsh session interruptions: If a turn ends with an error or crash and the session still has unfinished work, the plugin will attempt to auto-resume.
- Preserves original tools: The plugin only adds the
todo/todo_worktools and does not override or disable dsh’s built-intodo_writeand task panel. - dsh goal revival and human-handoff suspension: Takes over the dsh goal driver, attempts to revive on interruption; if it fails repeatedly, it switches to human-handoff suspension.
Install and enable¶
- In the DSH web UI sidebar, click “插件 → 添加插件” and enter:
github:ztllll/dida-todo#v0.9.1
Or install via CLI:
dsh plugin --profile web add "github:ztllll/dida-todo#v0.9.1"
- After installation, refresh or restart dsh-web to activate.
- Uninstalling the plugin will not affect dsh’s original functionality; the plugin only adds one plugin entry and two tools.
Typical workflow¶
- Bind a list: In Pi, run
/dida-bind [list name]. A unique list with the same name will be bound directly; if it does not exist, it will be created using the provided name. - Create tasks: Record tasks in Dida and set priorities (Low/Medium/High). These tasks will not execute immediately and must be claimed by the Agent.
- Agent executes: Pi will automatically claim tasks when idle; or type “检查todo” to execute immediately.
- Progress and acceptance: The Agent executes according to the Checklist, writing each step’s result as a Dida comment. When all steps are done, the top-level task is automatically completed and a “🧑🔬 待验收” task is created (with +3/+6 minute reminders).
- Human intervention: If human confirmation is needed, the Agent calls
todo_work wait_for_human, zeroing the task’s priority and creating a🙋 需要你处理reminder. - Unpause: Resume by setting the original task’s priority back to Low/Medium/High in Dida, or tell the Agent “继续”.
Use cases and notes¶
- Use cases: Long-term task tracking, cross-turn/cross-session code changes, automated workflows that require human acceptance.
- Notes:
- Dida’s official API has no attachment interface; send files via IM channels.
- Dida subtasks do not have an “in progress” state; they are only shown in the Pi panel.
- Concurrent writes on the same machine use a cross-process lock; multi-machine deployments do not have strong consistency guarantees.
- Only targets Dida; support for the international TickTick version is not guaranteed.
- Conflicts with
rpiv-todo; disable it first. - Pi
--mode rpcclients only render strings and cannot display the panel. - The dsh resume counter is in-memory and resets after restart.
dida-todo aims to solve Agent workflow interruptions and task persistence issues by using Dida as the source of truth, enabling human-machine collaboration and closed-loop task management. For more details, see the project homepage or source repository.