@agentsoul/dsh-agentsoul
DeepSeek Harness 的 AgentSoul 插件,提供本地人格、身份、状态和长期记忆层,在每次 DSH 启动时自动全局加载。
AI 分析
核心用途是为 DSH 赋予本地化的人格特质与长期记忆能力。适合希望 AI 助手具备个性化身份、能跨会话记住历史信息的定制化任务。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:yuhui-sama/dsh-agentsoul说明文档
阅读完整 README ↗配置
Profile 的 cordis.patch.yml($DSH_HOME/profiles//cordis.patch.yml):
- id: agentsoul
config:
enabled: true
path: 'D:/my-agentsoul-data'
personality:
enabled: true
soul: true
identity: true
user: true
state: true
memory:
enabled: true
backend: sqlite # sqlite | json
recentLimit: 10
maxCharsPerMemory: 2000
excludeCurrentSession: true
distill:
enabled: true
provider: '' # ctx.llm 路径的 provider(apiKey 为空时生效)
model: ''
# 可选:自定义蒸馏专用模型(例如免费 GLM flash)。一旦设置 apiKey,
# 蒸馏就绕过 Harness LLM、走下面的 OpenAI 兼容 HTTP 直连。
apiKey: ''
baseURL: '' # 例如 https://open.bigmodel.cn/api/paas/v4
# 主模型失败时自动回退到 Harness 默认 LLM(DeepSeek flash)。
fallback: true
fallbackProvider: '' # 留空 = 跟随 Harness 默认模型选择
fallbackModel: ''
threshold: 10 # 未蒸馏消息达到该数量后触发
batch: 20 # 单次最多送入的消息数
maxChars: 12000 # 单次送入的字符预算
maxOutputTokens: 2000
temperature: 0.2
cooldownMs: 600000 # 失败后的冷却时间(防烧钱)
timeoutMs: 60000
topLimit: 8 # 注入时蒸馏记忆条数上限
context:
maxChars: 12000
debug: false