P02-1010751281/dsh-project-context ↗★ 0
dsh-project-context
提供项目级持久上下文与技能自动沉淀
AI 分析
适合需要自动整理项目记忆(MEMORY/CONTEXT)、自动沉淀技能和自动交接摘要的团队。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:P02-1010751281/dsh-project-context说明文档
阅读完整 README ↗配置
Settings → Plugins → Plugin configuration → 项目上下文 卡片(记忆整理 / 技能沉淀 / 自动交接三区,
共享的辅助模型路由在记忆整理区末尾);写入 ~/.dsh/settings.yaml 的 project-context 段,
host 侧实时生效。也可在 profile 的 cordis.patch.yml 用户层按 id 覆盖(作为面板的 base 层)。
| 字段 | 默认 | 说明 |
|---|---|---|
autoConsolidate | true | 关掉后不再自动整理(命令仍可用) |
consolidateTurns | 6 | 较上次整理新增的用户消息数达到后在 idle 触发 |
consolidateIntervalMs | 300000 | 自动整理最小间隔 |
autoLearn | true | 关掉后不再自动沉淀技能(命令仍可用) |
autolearnTurns | 20 | 自上次沉淀累计的用户消息数阈值 |
autolearnIntervalMs | 1800000 | 自动沉淀最小间隔;仅在有新 MEMORY/CONTEXT 内容时执行 |
forceDedupeMs | 15000 | 强制调用去重窗口 |
maxTokens | 8192 | 辅助模型调用(整理 / autolearn / 交接摘要)输出上限 |
provider / model | 空 | 辅助调用路由覆盖;默认用 agent 最近一次请求的路由 |
handoffEnabled | true | 关掉后不再自动交接,/handoff 仍可用 |
handoffAdaptive | true | 自适应阈值(按窗口/基线/保留量推导);false 时用固定比例 |
handoffThresholdRatio | 0.4 | handoffAdaptive: false 时的固定比例(0.1–0.95) |
handoffTargetTokens | 64000 | 自适应模式:每次摘要移交的对话量(8000–200000) |
handoffKeepTokens | 20000 | 最近对话原文带入新会话(0–200000,0 = 只带摘要) |
handoffSummaryThinking | off | 摘要调用思考级别:off 或 session |
四个插件共用同一配置命名空间;面板未覆盖的字段回落到 profile 配置,再回落到默认值。