Preface¶
Running agents in DSH often leads to two types of configuration chaos over time: first, details like “who the assistant is, what to call you, and what tone to use” get scattered across conversations or hand-written prompts; second, “long-term memory” is either silently written by some plugins (making it hard to spot a single erroneous entry) or limited only by a count cap, allowing dozens of long entries to still blow up the context. While persona and memory plugins exist in the community, they often suffer from coupled fields and tool names, or fail to register due to naming collisions at the same level as dsh-soul.
Here we introduce dsh-anima (Category: Memory), released by maintainer Melody-cx. It is a standalone plugin: it manages its own field set, does not depend on other plugins, and does not read external configurations. It manages assistant identity and reply style, two-level workspace overrides, and a three-stage long-term memory process of “Candidates → Pending Review → Effective after user adjudication,” and supports one-click import of historical profiles from other AIs. Current version 1.0.0 (MIT), GitHub Stars 1.
What is this¶
dsh-anima is an assistant persona and external memory layer for DSH: ready to use upon installation. The core object is not business code, but “who you (the assistant) are”—agentName / agentRole, address terms and background for the user, reply style and custom instructions. It adds long-term memory with a pending review buffer, as well as UI capabilities like input box light trails, quick toggles, and tool confirmation thresholds.
While its capability division overlaps with dsh-soul and some behaviors are deliberately aligned, it does not depend on it: identifiers are completely staggered (e.g., the tool name is set_assistant_persona instead of set_persona, avoiding silent failures caused by registration name collisions with dsh-tools). It can be installed alongside dsh-soul.
- Directory: https://www.skillhub.cn/plugins/Melody-cx/dsh-anima
- Repository: https://github.com/Melody-cx/dsh-anima
Core Features¶
Assistant Identity & Workspace Overrides¶
All twelve related fields are free text, storing the exact words to be injected into the prompt; the settings page provides “One-click Fill + Examples”.
| Capability | Configuration Key Points |
|---|---|
| AI Name & Role | agentName, agentRole |
| User Profile | addressUserAs, userOccupation, userBio |
| Reply Style | style, replyLength, language, customInstructions, etc. |
| Two-level Override | Global defaults + Per-workspace override for declared fields only; others inherit from global. |
Workspace overrides are written to <workspace>/.dsh-anima/override.json by default (directory name can be changed via workspaceFileDir), which follows the directory and can be versioned with git; this directory is automatically written to .gitignore (content *) to reduce the risk of private settings being pushed to remote.
Persona supports 6 built-in presets + custom creation, and current configurations can be saved as presets. Changes can be made via the settings page, the /anima command, or the model calling set_assistant_persona; all writes are consolidated through StateStore.updateConfig, and there is a persona change audit log (cap of 200 entries, long values truncated to 200 characters with “Total N chars” appended). requireToolConfirmation is off by default; when enabled, model persona changes only submit proposals and do not write to the configuration directly.
Three-Stage Long-term Memory¶
Unlike “remembering in conversation and immediately entering the prompt,” this plugin deliberately does not perform silent automatic writes:
Delivered via remember tool in conversation
↓
Pending Review Buffer (Not Effective)
↓ Nightly auto-triage: Dedup / Eliminate / Compare with adopted items (Pure local, no model calls)
↓
Notify user "There are N items awaiting your decision"
↓
Settings page: Adopt / Discard / Delete item by item
↓
Adopted → Injected into Prompt
Memory is divided into global (effective everywhere) and workspace (injected only when cwd matches exactly after normalization, no sub-directory inheritance). Injection is subject to double constraints: memory.maxInjected (count, default 40) and memory.maxInjectedChars (characters, default 4000), whichever limit is reached first applies. The “Injection Status” section on the settings page provides a reason code for each adopted memory (e.g., included, over-budget, dropped-by-budget, other-workspace), facilitating troubleshooting of why an entry entered or missed the context.
The pending review area uses local bigram Jaccard for similarity clustering and conflict alerts, prompting only, not automatic merging. Content matching credential patterns is rejected before entering the buffer (11 types of regex, the UI will explain the matched rule name).
UI & Other Capabilities¶
- Input box light trail:
trailEnabled,trailColor,trailSpeed,trailWidth - Input box quick toggles, tool confirmation thresholds (semantically aligned with similar features in the ecosystem)
- One-click import of memories from external AIs: Copy the profile organization prompt → Paste result → Mechanical segmentation (Markdown headers / lists / blank lines) → Select hierarchy or discard item by item → Still enters the pending review buffer, requiring user adjudication before becoming effective.
Installation & Enablement¶
The plugin has not yet been published to npm. It is recommended to install from GitHub and pin the version:
dsh plugin add github:Melody-cx/dsh-anima#v1.0.0
Alternatively, declare the dependency in the profile’s package.json and add dsh-anima to dsh.profile.bundles, then run pnpm install. Restart DSH for host-side changes to take effect.
Runtime prerequisites (excerpt from package.json):
- Node:
^22.19.0 || >=24.0.0 - DSH:
>=0.1.6-0 <0.2.0 || >=0.2.0-0 <0.3.0-0 - Storage stack must be combined in profile:
@deepseek-ai/dsh-storage+@deepseek-ai/dsh-storage-json(configureroot) +@deepseek-ai/dsh-storage-domain(backend: json). If missing, the plugin will prompt “Storage Unavailable” and will not fail silently.
Typical Usage¶
Settings Page “Soul”¶
The settings page adds a section “Soul” (settings.section id = anima-settings, order 51). Configure assistant identity, reply style, workspace overrides, light trails, tool confirmation, and long-term memory (memory.enabled, autoCapture, nightlyTriage, nightlyHour, maxPending, etc.) via cards.
Command Line Overview¶
Use the /anima command series to view or adjust persona; /anima show includes a line “Recent Changes” (format: [MM-DD HH:mm] <Source>: <Field Name>, without specific values, to avoid private content being copied into the conversation).
Model-Side Tools¶
set_assistant_persona: Change persona (subject torequireToolConfirmationconstraints)remember: Deliver candidate memories to the pending review buffer instead of making them immediately effective.
Import Memories from Other AIs¶
Expand “Import External AI Memories” in the memory card: First, copy the built-in prompt to your preferred AI to organize the profile, then paste the output back into DSH; after parsing, preview each entry, change to global / workspace or discard, and upon confirmation, it enters the pending review flow, identical to the manual addition path.
Use Cases & Cautions¶
Who it is for: Users who want to unify assistant address, tone, and workspace differences in DSH, but require long-term memory to pass their own approval before entering the prompt; users migrating profiles from ChatGPT etc., but willing to adjudicate item by item in the pending review area.
Cautions:
- The plugin reads and writes configurations and memories with the permissions of the current DSH process. Please review the repository source code and MIT license before installation to ensure compliance with your security policy.
- Credential interception relies on mechanical regex matching and may have false positives; if blocked, adjust the text according to the interface prompt and retry.
- While identifiers are staggered when installed with
dsh-soul, if other third-party plugins still register tools with the same name, it may trigger host-level registration conflicts, requiring self-troubleshooting of warnings. - SkillHub etc. are community directories and have no official affiliation with DeepSeek / High-Flyer; versions are subject to repository tags. Changes to
mainwill enter the profile on the next installation if not pinned.
Conclusion¶
dsh-anima separates “who the assistant is” and “what is worth remembering long-term”: The former supports global and workspace two-level overrides and persona auditing; the latter uses a pending review buffer to leave the power of effectiveness to the user, and reduces the risk of context silently blowing up with a double budget of count + characters and explainable injection reasons. To try it out or follow issues, visit the SkillHub Directory and GitHub Repository.