Dsh Persistent Agent — Development skill for Claude Code
持久 agent 的架构、设计与工程实现:三层提示词、记忆结构、心跳/日记、通道适配器契约(核心与 IM 解耦).
How to install Dsh Persistent Agent
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dawnnnnnnnnnnnnnnnn/dsh-persistent-agent and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Dsh Persistent Agent does
持久 agent 的架构、设计与工程实现:三层提示词、记忆结构、心跳/日记、通道适配器契约(核心与 IM 解耦).
Alternatives in Development
- Code Review Graph — Local knowledge graph for Claude Code 3.7k ★
- Claude Supermemory — Persistent memory across sessions and projects using Supermemory 2.3k ★
- /remember — Save a finding or successful pattern to persistent hunt memory 1.2k ★
README
dsh-persistent-agent
**版本 1.0.0** · 见 [CHANGELOG](CHANGELOG.md) · 0.99 表示核心结构定了、接口还会动
**一个能长期活着的 agent**:不是"一问一答的模型",有记忆,有规则,还会自己醒过来。 核心与通道解耦。今天接 QQ,明天接 Web 或终端,换的是适配器,不是核心。
这个仓库只发布**机制**:分层提示词与记忆结构,加上心跳与日记循环,还有生图和语音两条管线。 不含具体人格、使用者身份或私人数据。那些由使用者自己填。
它能做什么
先看这张表。每一行都是仓库里已经能跑的东西,不是规划。
说话
| 能力 | 怎么用 |
|---|---|
| 在 QQ 里聊天(私聊、群、@) | 接一个 OneBot 11 协议端,配 channels.onebot |
| 在终端里聊天(不要协议端) | node adapters/cli/run.mjs |
| 一次说多句话,自动分段 | 自动:超过通道字数上限就切开 |
| 该闭嘴时闭嘴 | 回复 [SILENT],适配器直接丢弃这条 |
记得住
| 能力 | 怎么用 |
|---|---|
| 长期事实 | memory/MEMORY.md,按小节追加 |
| 规矩 | memory/管规.md,每轮注入提示词 |
| 日记 | heartbeat.diary,每天定一个时刻写 |
| 语义检索(不用把全部记忆塞进上下文) | 自动:memory-index.json 增量索引 |
| 技能(正文按需加载,只注入索引) | skills/*.md,一行标题 + 一句话 |
自己开口
| 能力 | 怎么用 |
|---|---|
| 定时醒来自查 | heartbeat.intervalSec(默认 4 小时 + 随机抖动) |
| 有事件时被打断 | ctx.heartbeat.notify({ type, reason }) |
| 夜里不吵人 | heartbeat.quietHours |
| 判断"这次不用说" | 它自己决定,输出 [SILENT] 就跳过 |
| 写日记并推送 | heartbeat.diary + heartbeat.diaryPush |
出图
底层是 ComfyUI(HTTP 调用)。模型自备。
| 能力 | 命令 |
|---|---|
| 文生图 | node tools/anima.mjs --prompt "..." --go |
| 二次采样(先出小图再放大重画) | node tools/hires-anima.mjs --image x.png --go |
| 图生图 / 局部重绘 | node tools/img2img.mjs --image x.png --rect ... --prompt "..." --go |
| 超分 | node tools/upscale.mjs --image x.png --long 2688 |
| 用参考图锁脸重绘 | node tools/face-edit.mjs(云端图像通道) |
| 换底模(SDXL 系) | node tools/sdxl.mjs --prompt "..." --go |
| 环境体检 | node tools/draw-check.mjs |
出声
后端是本地 TTS 服务(HTTP),模型自备。
| 能力 | 命令 |
|---|---|
| 文字转语音(多声线) | node tools/feiyu-tts.mjs "内容" --style gentle |
| 说完直接发 QQ 语音 | 同上加 --send |
| 说话 + Live2D 口型同步 | node tools/speak.mjs "内容" |
| 切表情 / 动作 | node tools/face.mjs <情绪>、node tools/move.mjs <动作> |
| 唱歌(按谱) | node tools/sing.mjs(需要 SVS 后端) |
管得住
| 能力 | 怎么用 |
|---|---|
| Web 控制台 | /dsh-agent-core/panel(只绑 loopback,非回环 403) |
| 体检(36 项) | node tools/checks.mjs |
| 清理旧会话 / 旧心跳 | node tools/tidy.mjs、 |
Related Skills
Dsh Usage
🌊 Persistent dock & fully-customizable balance/usage panel for DeepSeek Harness — activity heatmap, dual-chan
Dsh External Workers
Give your DeepSeek Harness agent three more pairs of hands. It sends long tasks to Claude Code, Codex and Anti
Agentlas One
Turn the persistent Agentlas One personal agent on or off, or rename it.
Cavemem
Frozen — cross-agent persistent memory for coding assistants. Still works; the compressed-memory core now ship
Alethe Agents
A local-first desktop workspace for running, organizing, and resuming multiple coding agents and shells with r
Claude Cognitive
Working memory for Claude Code - persistent context and multi-instance coordination.
Related Agents
Ds Flash
DSH (DeepSeek Harness) worker on the flash tier - fast and cheap. Delegate simple, well-scoped subtasks: mecha
Sm Readers
Owner of the Readers part. Everything the plugin knows comes from files on this PC. Its code: server/sources/,
Vbw Debugger
Investigation agent using scientific method for bug diagnosis with full codebase access and persistent debug s