dsh-todos: Todoist-like To-do Management + Dashboard

Preface

The core philosophy of DeepSeek Harness (DSH) is “Everything is a Plugin.” In agent development scenarios, task management often acts as a breakpoint: models cannot directly read or write external task lists. The dsh-todos plugin solves this problem by providing DSH with a Todoist-like todo management interface, attached to the sidebar and main panel of the Web GUI. Simultaneously, it exposes todos to the Agent, allowing DeepSeek to directly read and write these tasks, thereby achieving the integration of task flow and conversation flow.

Core Features

The plugin primarily includes the following capabilities:

  • Dashboard: The main panel displays 6 KPIs, completion/addition trends, priority and project/tag distributions, as well as a 90-day heatmap and weekly goals.
  • Natural Language Quick Add: Supports adding tasks via natural language directly in the input box or through commands.
  • Agent Tools: Provides 7 tool interfaces for Agent invocation.
  • Point-in-time Reminders: Uses shell.overlay to render global floating layer reminders, supporting one-click completion or postponement to tomorrow.
  • Import/Export: Supports full JSON library backups and Markdown list exports.

Installation and Activation

Installation requires the use of the plugin_manager tool.

plugin_manager install_bundle target=<absolute path to this directory>

Upon completion of the installation, cordis.patch.yml will automatically insert the plugin line id: todos. After restarting DSH, a “Todos” icon will appear in the sidebar; click it to enter the main panel.

Typical Usage

Natural Language Add

Simply input natural language in the chat box to create tasks:

Tomorrow at 3 PM submit report #Q4Report @Writing p1

Agent Tool Invocation

The Agent can manage tasks via the following tools:
* todos_list: List tasks
* todos_create: Create task
* todos_update: Update task
* todos_complete: Complete task
* todos_delete: Delete task
* todos_stats: Get statistics
* todos_projects: Get project list

Architecture and Configuration

Data Storage

Data is stored in $DSH_HOME/dsh-todos/todos.json. The plugin adopts single-file JSON persistence, utilizing the “temporary file + rename” atomic operation for writing, and automatically backs up the scene if a read corruption occurs.

Configuration Options

The following parameters can be adjusted in the configuration file:
* weekGoal: Weekly goal
* remindEnabled: Enable reminders
* dailyDigest: Daily summary

Design Trade-offs

  • Zero Dependencies: The host side does not depend on @deepseek-ai/* packages, while the client side only depends on the platform-frozen react. Therefore, no build toolchain is required.
  • Reminder Mechanism: Instead of using agent.inject to loop-call the model, reminders are rendered to shell.overlay. This avoids the model automatically initiating a conversation turn when there is no user input, while allowing users to operate tasks directly within the floating layer.
  • Authentication: Route authentication is delegated to the official connection. Loopback requests are no longer authentication-free, consistent with the official /api, which is safer than simply validating the Host.
  • Client Build: The client bundle is hand-written without using JSX. The host HMR polls the bundle status every 500ms, so modifying lib/client.js takes effect immediately.

Development and Testing

Test Commands

Run the plugin’s built-in test suite:

node test/quickadd.mjs      # Natural language parsing: 26 cases
node test/smoke.mjs         # Data layer + route handlers: 25 cases
node test/tools.mjs         # Agent tools: 19 cases
node test/client-render.mjs # Client rendering tests: 49 cases
node scripts/preflight.mjs  # Pre-release self-check

Development Notes

  • The client side supports hot reloading, while modifications to the host side require a DSH restart.
  • Theme styles must reference existing tokens; otherwise, they will fail silently, causing display anomalies.
  • You must restart DSH after modifying package.json or the package name.

Use Cases and Notes

This plugin is suitable for developers who need to manage todos uniformly within the DSH environment and wish to allow the Agent to participate directly in task workflows. Since the plugin runs with the permissions of the current DSH process, please check the source code and license before installation.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye