dsh-ootd: Caching Daily "Today" Anchors for Conversational Personas

Introduction

When doing roleplay in DSH (DeepSeek Harness), the model often doesn’t know what the weather is “today,” what the schedule is, or what they are wearing. Without this state, it either avoids follow-up questions or invents a different answer in every round, making it hard to maintain consistency in long conversations.

The community plugin dsh-ootd (maintained by BurninIce) collects “today” into a small piece of world state: generated once a day, written to cache, and shared by all turns that day; the next day, new content is generated, and recent days’ locations and activity types are avoided as much as possible. The result is injected via a scoped system prompt, serving as a concrete implementation of “memory” capabilities within the DSH ecosystem.

What is This

dsh-ootd is a daily cache for the dsh dialogue agent: scene snippets, real-time weather for the configured city, the day’s schedule, and an English outfit description. Package version 0.1.0 (Developer Preview), verified on @deepseek-ai/dsh 0.2.2-rc.1 and Node 24; not yet published to npm. The repository is an independent package with no extra build steps or runtime dependencies, license MIT.

Core Features

Four Sections Injected into the System Prompt

The plugin registers a section when agent/created, with order set to 8000, interpolate: false, to prevent {{…}} in the scene from being treated as prompt variables. Injected in order:

[Daily Routine]  — Environmental background, mentioned naturally 1-2 times at most in the whole conversation
[Today's Weather] — Real-time; weather within the scene follows this
[Today's Plan] — Time points and items; items with appointments can be marked with a key
[Today's Outfit] — English one-sentence description for image generation; the model should not read it aloud

The four sections can be disabled separately: injectDaily, injectWeather, injectPlan, injectOutfit.

Generation and Caching

Under normal circumstances, there is one model call per day. The process is roughly:

  1. Read scenes and location categories from the recent recentDays (default 10) days for deduplication.
  2. Pull real-time weather for weatherCity from wttr.in (format=j1); fall back to seasonal outfit presets if it fails.
  3. A single call returns {scene, outfit, plan: [{time, text, key}]}, then validate scene length, English outfit word count and tier, schedule HH:MM, etc.
  4. Chunked fallback: if the outfit is invalid, use preset tiers; if the schedule is missing, use the character card’s routine; if the scene is unavailable, the whole process fails and enters cooldown.
  5. Write to today.json under dataDir using a temporary file + rename.

Generation is triggered in the background (agent/created, turn/end, and a 10-minute cross-day timer). When assembling the prompt, only the cache is read; no model call is triggered.

Tools and Slash Commands

Tool Purpose
ootd_today Read today’s four sections; if no cache, hasToday: false, no generation
ootd_refresh Regenerate today’s data, wait for completion
ootd_plan_update Modify the schedule, up to 2 locations

User side:

  • /ootd: View today’s data; if no cache, generate once.
  • /ootd refresh: Regenerate; if a scene already exists for the day, it is used as “already written” input to reduce repetition.

Installation and Activation

Requirements: dsh 0.2 series (verified on 0.2.2-rc.1), Node 24, and a profile (using web as an example below).

Installation from GitHub

dsh plugin --profile web add github:BurninIce/dsh-ootd

If you cannot connect to GitHub directly or need to modify the code first, you can copy lib, cordis.patch.yml, package.json, etc. from the repository to node_modules/dsh-ootd in the profile, or use dsh plugin --profile web add link:<local-repo-path>. If you are unfamiliar with link package resolution, the README suggests using the copy method.

Adding to Bundle

Edit ~/.dsh/profiles/web/package.json and add dsh-ootd to both dependencies and dsh.profile.bundles (version matching the repo is 0.1.0).

Configuration Example

Edit ~/.dsh/profiles/web/cordis.patch.yml:

- id: ootd
  config:
    sceneCity: Linchuan City
    weatherCity: Beijing
    cardFile: /path/to/personas/<id>/card.json

After restarting dsh web, you can use the following command to confirm the entry has been merged:

dsh --profile web --dump-config | Select-String -Pattern "id: ootd" -Context 0,8

You should see name: dsh-ootd and the merged configuration. If the startup log shows did not activate, check the profile logs to troubleshoot issues with apply() or dependent services.

Typical Usage

Minimal Configuration

sceneCity controls the scene location name (leave empty for “her city”); weatherCity only affects the real-time source and defaults to Beijing, it is not written into the scene text. Optional cardFile points to card.json, providing name, gender, age, residence, dress style, life.routine, etc.; plugin configuration takes precedence over the character card.

Disabling Specific Capabilities

When an image pipeline is not deployed, you can set injectOutfit: false. When not fetching weather, you can set weatherCity: '', changing the prompt to only write atmosphere without temperature. To disable generation and injection entirely: enabled: false.

The generation route defaults to the session’s last request; you can also specify provider / model, as well as maxTokens, temperature, timeoutMs, etc. in the configuration.

Use Cases and Notes

Who is this for: DSH developers who need a stable “daily world state” in roleplay, want weather and schedules to have a single source of truth, and don’t want to manually write system segments every round.

How it runs: The plugin runs with the permissions and configuration of the current dsh process; please check the GitHub source code and MIT license yourself before installation to ensure it fits your deployment strategy.

Limitations (Key Points from Original Docs):

  • No diary, curiosity lists, or automatic “schedule judge”; changing the schedule relies on the model explicitly calling the tool.
  • The scene for the day is generated once a day; major events in the conversation won’t automatically rewrite unless /ootd refresh is used.
  • Weather depends on wttr.in; only the configured weather city is sent to this service.
  • Cache is stored as plain text today.json in $DSH_HOME/ootd; running dual processes sharing the same DSH_HOME may cause overwrites.

Privacy: OOTD generation calls do not send the chat transcript; no telemetry is sent.

Conclusion

dsh-ootd turns “today” from the model’s improvisation into a cached, verifiable, and injectable four-part state, leaving reading and re-rolling to tools and /ootd. Community directory page: SkillHub — BurninIce/dsh-ootd; see GitHub Repository for source code and full configuration table.

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

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

Xiaoye