qzuser/dsh-diary ↗★ 0

dsh-diary

每天定时让 agent 给自己写两篇日记(公开版 + 私密版)。时间、数据源、字数、文风、脱敏词、输出路径、文件名模板全部可配。

Package
dsh-diary
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Nov 1, 2026

Other repositories with this package name

Install

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

配置

全部配置在 ~/.dsh/diary-config.json,也能在 设置 → 日记 里改。改完下一跳生效,不用重启。

键说明
enabled总开关
times时间点数组,24 小时制 HH:MM,可以写多个:["12:30","22:00"]
weekdays哪几天写,0=周日…6=周六
catchUpHours错过之后多少小时内还补写;0 只在那一分钟写
sessionId目标会话;留空 = 专用会话 dsh-diary(推荐,别污染你正在聊的会话)
cwd那个会话的工作目录;留空 = ~/.dsh/diary-work
model模型覆盖(留空用会话默认)
outDir输出目录,支持 ~
publicPattern / privatePattern两篇的文件名模板
monthlyDir按月分子目录
publicWords / privateWords目标字数(写进指令的软约束)
style文风指令,直接拼进 prompt
persona人设补充:让写日记的"自己"知道它是谁
redact公开篇禁词,命中要求换说法
publicHidePaths公开篇不出现盘符/用户名/端口
sources.*八类数据源,每个都能单独关
maxSessions / maxTurnsPerSession采样上限
maxPromptChars / maxResponseChars每轮问答各截多少字
maxDataChars数据摘要总字数上限(防 prompt 撑爆上下文)
promptTemplate完全接管指令。可用占位符见设置页
keepDays / autoCleanup保留天数与自动清理

占位符

promptTemplate 里能用的:

{date} {time} {data}
{publicPath} {privatePath}
{publicWords} {privateWords}
{style} {persona} {redactLine} {hidePathsLine}

data 就是整段采集结果。想把日记改成周报,直接重写模板就行——这是"高自定义"的出口。