dsh-memflow
Per-directory context composition for DeepSeek Harness — .dsh/context.yaml declares systemPrompt + preload for every agent loop; memory is a baseline, not a preset 适合需要按目录定制系统提示词和预加载环境的 DSH 用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:crwsr124/dsh-memflowREADME
Read the full README ↗配置
插件行(row)config(在 profile cordis.patch.yml 按 id 覆盖):
| 键 | 默认 | 说明 |
|---|---|---|
declarationFile | .dsh/context.yaml | 声明文件相对路径 |
discover | nearest | nearest = 从 cwd 向上找最近声明并按 inherit 续走;cwd = 只认 cwd 自己的声明 |
inherit(声明内键) | false | 由声明文件自身控制是否继续向上合并;缺省不继承——一个目录的身份默认只由它自己说清楚,需要叠加祖先声明时显式写 true |
sectionOrderBase | 10 | 身份 section 起始 order(在 DEPLOYMENT_PERSONA 0 之后、PLAN_POLICY 500 之前) |
maxSections | 16 | 身份 section 槽位数上限(注册期固定,空槽渲染为空) |
systemPrompt / preload | [] | row 级追加文件,等价于 DSH_CONTEXT_* 的静态形式 |
ignoreDeclaration | false | 整个 profile 忽略声明(纯 headless profile 用) |
allowEnvOverride | true | 是否接受 DSH_CONTEXT_* 环境通道 |
legacyMemoryFallback | true | 无声明目录回退加载 memory/(0.2.x 行为) |
memoryBootstrap | true | 注入首条感知消息 |
memoryPriority | ['history','brick_index','notes','status','tasks'] | legacy fallback 的文件优先序 |
perFileBytes | 不限 | 单文件 UTF-8 字节上限;仅显式设置时截断并标为受限快照 |
totalBytes | 不限 | 快照总 UTF-8 字节上限;同上 |
skipDelegated | false | 设 true 则不给 delegationDepth > 0 的进程内子 agent 注入感知;默认注入,因为子 agent 与其它会话一样只是「某个目录里的一个会话」(旧名 includeDelegated: false 等价) |
suppressRoots | [] | 抑制目录:这些项目根(按 .git 向上发现)完全不注入 |
0.3.0 移除了 protocolFile 与 rosterlessProtocol(协议全文通道已废,见上文);配置里残留这两个键无害,会被忽略。
memoryPerFileBytes / memoryTotalBytes 作为 perFileBytes / totalBytes 的旧名仍被接受。