DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-persona

d

dsh-persona

Manifest valid

DeepSeek Harness plugin: give the agent a switchable, persistent persona (character setting) with cross-session memory. Built-in personas an-ruotong / yan-guan / lao-jie plus user-defined personas; switch_persona / list_personas / persona_remember / persona_recall / persona_forget tools.

hasBundlePatch

dsh-persona

给 DeepSeek Harness 的 agent 装上一个可切换、会记住的「人设」——让 DSH 从工具变成有性格、有记忆的伙伴。

Give your DeepSeek Harness agent a switchable, persistent persona — a voice, a stance, and cross-session memory, not just a tool.

特性

  • 持久人设注入:在每轮请求前把当前人设作为上下文注入,agent 全程以该身份回应(复用 DSH 官方 agent/pre-step 扩展点,与内置的 time-context / agent-instructions 同机制)。
  • 跨会话角色记忆:每个人设独立保存一套记忆(~/.dsh/persona-memory.json),重启后依然记得;激活该人设时自动注入最近记忆,也可用工具显式增删查。
  • 运行时切换:switch_persona 工具一键换人设,选择持久化到磁盘,重启后依然生效。
  • 内置 3 个精写人设 + 1 个「本尊」,也支持用配置追加自定义人设。
  • 纯 JS、零构建,跟 dsh-image-gen 一样即装即用。

内置人设

id名字一句话
an-ruotong安若童清冷敏锐的视觉观察者,用照片和短句记录普通日常
yan-guan严观眼光毒辣、有品位的审美与文案裁判
lao-jie老街旧书店里的说书人,把琐事讲成有画面感的小故事
default本尊关闭人设,回到 DSH 默认助手

an-ruotong 来自 haimuhaimu/anruotong-character-system 的视觉角色设定。

安装

# 从 GitHub 安装
dsh plugin --profile <profile> add github:haimuhaimu/dsh-persona

# 或本地安装
dsh plugin --profile <profile> add ./persona

首次通过 pnpm 安装若被 prepare 脚本拦截,按提示把包键加入 profile 的 pnpm-workspace.yaml 的 allowBuilds 后重新 add。装好后重启 DSH Desktop(或重载 profile)。

使用

安装并启用后,agent 会默认以 an-ruotong 的身份回应。你可以直接对它说,也可以让它自己调用工具:

  • list_personas —— 列出可用人设和当前人设。
  • switch_persona —— 切换人设,例如 switch_persona("yan-guan"),或 switch_persona("default") 关闭人设。
  • persona_remember —— 把一件事记进当前人设的跨会话记忆,例如 persona_remember("用户喜欢清晨的光线、讨厌网红风")。
  • persona_recall —— 回想当前人设的记忆(可传关键词过滤)。
  • persona_forget —— 按序号删除一条记忆(序号对应 persona_recall 的编号列表)。

记忆是按人设隔离的:an-ruotong 记得的事不会串到 yan-guan 那里,反之亦然。每个具体人设激活时会自动把最近记忆注入上下文,所以它会「自然记得」而不必每次都 recall。

配置

cordis.patch.yml 里的 config:

键默认说明
activePersona"an-ruotong"首次运行的默认人设 id;之后以运行时切换并持久化的选择为准
statePath~/.dsh/persona-state.json状态文件路径(保存当前人设)
memoryPath~/.dsh/persona-memory.json跨会话记忆文件路径
personas[]追加自定义人设,字段 id / name / tagline / prompt

人设选择的优先级:持久化状态 > activePersona > default。想重置回配置默认值,删掉状态文件即可。

自定义人设

- insert:
    - id: persona
      name: dsh-persona
      config:
        personas:
          - id: my-dude
            name: 我的角色
            tagline: 一句话简介
            prompt: |
              你现在是「我的角色」……

原理与限制

  • 人设文本(提示 + 该人设的跨会话记忆)作为一条 kind: 'plugin' / form: 'instructions' 的用户消息注入,进入会话日志、跨轮可见。
  • 注入按「人设 id @ 记忆版本」去重:切换人设或记忆发生变化时,下一次请求会重新注入完整上下文。
  • 记忆上限:每个人设最多 100 条、单条最多 400 字,注入时最多携带最近 40 条(防止上下文无限膨胀)。
  • 已知限制:会话经历 compaction(上下文压缩)后,早期注入的人设可能被摘要掉,此时可再次 switch_persona 触发重注入。

Comments

Loading…

From the same category

dsh-web

by zhu1090093659

DeepSeek Harness (DSH) Web Plugin Aggregation Ecosystem · Everything is a plugin, distributed via the Creative Workshop

Tools & CapabilitiesUI & ExperienceDevelopment & InfrastructureTerminal & ClientsModels & ProvidersManifest valid

★ 8.3k

↓ 172/wk

Apache-2.0

TypeScript

Oct 1, 2026

dsh plugin --profile web add dsh-web

A collection of independent Web UI plugins and skins, including task boards, Git graphs, mobile access, and live token stats.

Tools & CapabilitiesVision & MultimodalUI & ExperienceJust for FunManifest valid

★ 7.4k

↓ 172/wk

Apache-2.0

TypeScript

dsh plugin --profile web add dsh-web

by dsh-market

The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场

Tools & CapabilitiesManifest valid

★ 5.2k

↓ 150.1k/wk

MIT

TypeScript

Oct 1, 2026

dsh plugin --profile web add dshmarket

by crafter-station

A public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and more.

Tools & CapabilitiesManifest valid

★ 4.2k

MIT

TypeScript

Sep 28, 2026

Index only — not installable

by superdesigndev

OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

Tools & CapabilitiesModels & ProvidersManifest valid

★ 4k

NOASSERTION

Python

Oct 1, 2026

dsh plugin --profile web add treg-dsh

by xiaobright

Two-phase DeepSeek Harness preset: Minimal-aligned bootstrap, then full Standard tools (Project2 98/99)

Tools & Capabilities

★ 3.8k

JavaScript

Sep 10, 2026

Index only — not installable