crwsr124/dsh-memflow ↗★ 1

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 用户。

패키지
dsh-memflow
호환성
미검증
버전
0.4.0
라이선스
MIT
최근 업데이트
2026. 9. 17.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:crwsr124/dsh-memflow

配置

插件行(row)config(在 profile cordis.patch.yml 按 id 覆盖):

键默认说明
declarationFile.dsh/context.yaml声明文件相对路径
discovernearestnearest = 从 cwd 向上找最近声明并按 inherit 续走;cwd = 只认 cwd 自己的声明
inherit(声明内键)false由声明文件自身控制是否继续向上合并;缺省不继承——一个目录的身份默认只由它自己说清楚,需要叠加祖先声明时显式写 true
sectionOrderBase10身份 section 起始 order(在 DEPLOYMENT_PERSONA 0 之后、PLAN_POLICY 500 之前)
maxSections16身份 section 槽位数上限(注册期固定,空槽渲染为空)
systemPrompt / preload[]row 级追加文件,等价于 DSH_CONTEXT_* 的静态形式
ignoreDeclarationfalse整个 profile 忽略声明(纯 headless profile 用)
allowEnvOverridetrue是否接受 DSH_CONTEXT_* 环境通道
legacyMemoryFallbacktrue无声明目录回退加载 memory/(0.2.x 行为)
memoryBootstraptrue注入首条感知消息
memoryPriority['history','brick_index','notes','status','tasks']legacy fallback 的文件优先序
perFileBytes不限单文件 UTF-8 字节上限;仅显式设置时截断并标为受限快照
totalBytes不限快照总 UTF-8 字节上限;同上
skipDelegatedfalse设 true 则不给 delegationDepth > 0 的进程内子 agent 注入感知;默认注入,因为子 agent 与其它会话一样只是「某个目录里的一个会话」(旧名 includeDelegated: false 等价)
suppressRoots[]抑制目录:这些项目根(按 .git 向上发现)完全不注入

0.3.0 移除了 protocolFile 与 rosterlessProtocol(协议全文通道已废,见上文);配置里残留这两个键无害,会被忽略。

memoryPerFileBytes / memoryTotalBytes 作为 perFileBytes / totalBytes 的旧名仍被接受。