AsterLuo/dsh-cat-diary ↗★ 1

dsh-cat-diary

猫娘日记 + 好感度:每天把当天全部对话写成四栏日记,次日自动注入速读卡;好感度子插件每轮自动判定,侧边栏可视化。Catgirl diary + affinity score for DeepSeek Harness: a four-section daily journal with auto-injected brief, plus a per-turn affinity sub-plugin with a sidebar panel.

套件
dsh-cat-diary
相容性
待驗證
Harness 依賴範圍
*
Cordis 依賴範圍
^4.0.1
版本
1.0.0
授權
MIT
最近更新
2026年11月1日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:AsterLuo/dsh-cat-diary

配置

在 profile 的 cordis.patch.yml 里覆盖配置(只覆盖,不要重复 insert):

- id: cat-diary
  disabled: false
  config:
    cutoffHour: 5              # 换日小时,凌晨 5 点前的对话算前一天
    briefBytes: 6000           # 速读卡字节上限
    autoWrite: true            # 每次启动补写欠下的日记
    autoWriteDelayMs: 8000     # 启动后延迟多久再跑(等服务和模型就绪)
    autoWriteMaxDays: 7        # 最多往回追几天
    autoWriteMaxTokens: 3200   # 生成输出上限
    autoWriteRawChars: 24000   # 喂给模型的原料字符上限

- id: affinity
  disabled: false
  config:
    maxStep: 2                 # 单次最大变化量
    maxDaily: 10               # 每日绝对值累计上限
    stepJudge: true            # 每轮自动判定
    person: default            # 人格 id,数据目录名

人格 id

默认是 default,数据落在 /storages/dsh-cat-diary/default/。 想用别的名字就改 person;也可以只设环境变量:

DSH_CAT_DIARY_PERSONA=alice    # 日记
DSH_AFFINITY_PERSONA=alice     # 好感度

两者要一致,否则日记和好感度会读写不同的目录。