dsh-youdaonote: Let Agents Read and Write Youdao Cloud Notes

Introduction

When running agents in DeepSeek Harness (DSH), notes are often still stored in Youdao Note: searching, reading content, creating or editing Markdown, managing todos, and clipping web pages. If users have to manually copy and paste every time, context continuity easily breaks. Writing your own HTTP integration requires maintaining the API Key, protocol changes, and format details, which is not cheap.

dsh-youdaonote, published by maintainer xmzd-S and categorized as an online tool, wraps the official youdaonote CLI into 8 dsh tools for direct agent invocation. The plugin does not connect directly to the cloud note HTTP API; authentication and protocol upgrades are handled by the CLI. On first use, it can automatically install the CLI, and when the API Key is missing, it prompts via the dsh question service with a card.

What is this

In one sentence: a Youdao Note tool plugin for DSH, covering note CRUD, todo management, and web clipping.

It is built on the official youdaonote CLI (API Key authentication). The CLI binary can be automatically installed into ~/.dsh/integrations/dsh-youdaonote/bin on Linux/macOS without modifying the system PATH; the API Key is written to ~/.youdaonote.json by the CLI, and the plugin does not persist it or include it in logs.

The current package version is 0.2.0, MIT licensed, and requires Node.js >=22. It is compatible with dsh 0.1.2-alpha.4 to 0.1.5-rc.2, with profile support for web, headless, and tui.

Core Features: Eight Tools

Tool Purpose Read-only (concurrent)
youdaonote_search Search notes by keyword ✅
youdaonote_read Read full note content (including rawFormat metadata) ✅
youdaonote_list Browse directories (root or specified folder) ✅
youdaonote_save Create new Markdown notes (internally uses save, not the plain-text create) ❌
youdaonote_update Overwrite and update content (passed via temporary file) ❌
youdaonote_manage delete / rename / move ❌
youdaonote_todo todo list / groups / create / update / delete only list and groups are read-only
youdaonote_clip Web page clipping (server-side fetch) ❌

Design points (from the README): saving always goes through save (contentFormat: "md") to preserve formatting; content is passed via stdin or temporary files to avoid escaping and length issues; output exceeding maxOutputChars is truncated; when some CLI subcommands do not support --json (such as todo update and list), the plugin falls back to plain-text output and passes it to the model.

First-Use Process

The following describes the plugin’s behavior when the agent first calls any youdaonote tool; manual CLI installation or Key entry beforehand is not needed (in supported environments).

  1. Check CLI: If youdaonote already exists in the PATH or data directory, use it directly; if it does not exist and the platform is Linux/macOS, the plugin runs the official installation script, targeting the directory ~/.dsh/integrations/dsh-youdaonote/bin (requires curl and bash). Windows does not support automatic installation; it will report an error and attach manual installation instructions.
  2. Check API Key: Run youdaonote check; if not configured and the environment supports questioning (Web UI / TUI), it prompts via the dsh user question service with a card, asking the user to obtain a Key from https://mopen.163.com (phone login) and paste it; the plugin automatically runs config set apiKey. For environments that do not support questioning such as headless, the error message includes the manual configuration command.
  3. In-process memory: Configuration results are remembered per process; subsequent checks are not repeated. If the Key becomes invalid, the next call will recheck and ask again.

Installation and Enablement

The plugin runs with the current dsh process permissions; it is recommended to review the repository source code and MIT license before installing. The DSH community directory SkillHub is not officially affiliated with DeepSeek / High-Flyer; it is a community ecosystem site.

Both local directories and tgz files can be installed (replace --profile with the profile you are actually running):

# 本地目录或 tgz 均可(--profile 填实际运行的 profile)
dsh plugin --profile web add --save-exact /path/to/dsh-youdaonote

# 验证 + 重启
dsh --profile web --dump-config | grep youdaonote   # 应看到 "- id: youdaonote"
sudo systemctl restart dsh

Update or uninstall:

dsh plugin --profile web update dsh-youdaonote
dsh plugin --profile web remove dsh-youdaonote

If dump-config does not show youdaonote, it means the plugin was installed into another profile; dsh plugin is installed per profile.

Configuration (Optional)

Default values are built-in; you do not need to write a config file. To override, patch in the profile’s cordis.patch.yml, for example:

- insert:
    - id: youdaonote
      name: dsh-youdaonote
      config:
        bin: youdaonote        # CLI 路径覆盖;设为非默认值后插件只认这一处
        statSource: ydn        # CLI -s 统计来源参数
        timeoutMs: 120000      # 单次 CLI 调用超时(clip 较慢,别低于 60s)
        maxOutputChars: 100000 # 工具输出字符上限
        autoInstall: true      # CLI 缺失时自动安装(Linux/macOS)
        autoAskKey: true       # 缺 Key 时通过提问服务索要
        dataDir: ~/.dsh/integrations/dsh-youdaonote
        binDir: ~/.dsh/integrations/dsh-youdaonote/bin
        installUrl: https://artifact.lx.netease.com/download/youdaonote-cli/install.sh

Typical Usage (From the Agent’s Perspective)

The README does not provide fixed conversation examples; usage is simply the agent calling the tools in the table above as needed during tasks, for example:

  • Use youdaonote_search to locate notes by keyword, then use youdaonote_read to fetch the full content;
  • Use youdaonote_list to browse folder structure;
  • Use youdaonote_save / youdaonote_update to write or update Markdown;
  • Use youdaonote_todo to view todos or groups, or create, update, or delete todos;
  • Use youdaonote_clip to clip a URL into notes;
  • Use youdaonote_manage to delete, rename, or move notes.

Write operations cannot be concurrent with other writes of the same kind; read-only tools are marked as concurrent-safe.

Troubleshooting and Notes

Symptom Handling
Automatic installation fails Check whether artifact.lx.netease.com is accessible (you can use curl -I); the failure message includes the manual installation command
Want to trigger the Key prompt again Restart the dsh process; or manually run youdaonote config set apiKey <KEY>
Prompt says interactive questioning is not supported The profile does not have the question service mounted (e.g., headless); configure using the manual command in the error
Output is plain text, not JSON Normal: some CLI subcommands do not support --json; the plugin has already fallen back
dump-config does not show youdaonote The plugin is installed in another profile

The test was verified with youdaonote CLI 1.3.4 (Windows); Linux uses the same official installation script. After upgrading dsh, it is recommended to run --dump-config once to verify; during the developer preview stage, upstream interfaces may change.

Conclusion

dsh-youdaonote consolidates Youdao Note capabilities into 8 dsh tools, relies on the official CLI, and automates CLI installation and API Key configuration as much as possible. It is suitable for DSH deployments that already use Youdao Note and want agents to directly read and write notes and todos.

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

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

Xiaoye