yehuioc/dsh-memory-pack

yehuioc★ 1Python最后同步: 2026-08-14

在 GitHub 打开

File-based layered memory skill pack for DeepSeek Harness and skill-driven agent runtimes: 11-layer directory model, Maps-first navigation, producer/review metadata contract, contamination guard, zero-dep scaffold/audit scripts.

README 摘要

dsh-memory-pack 面向 skill 驱动的 agent 运行时(DeepSeek Harness / Claude Code / Codex 等)的 文件式分层记忆插件包 。 它是一套「目录约定 + 元数据契约 + 导航规则」,不是数据库。agent 把记忆写成普通 Markdown 放进约定目录,用 frontmatter 标注来源和审查状态,进入记忆时先读索引层。你能看得见 agent 到底记了什么、从哪来的、有没有被外部内容污染、能不能一键用 git 回滚。 核心特性 - 11 层分层模型 : 00-Inbox → 10-Raw → 20-Distilled → 25-Candidates → 30-Writing → 40-Concepts → 50-Action → 60-Achievement → 80-Maps → 90-Attachments → 99-Archive - Maps-first :进记忆先读索引,不全量扫描 - 元数据契约 : producer / review state / canonical status / contains third party source ,审查责任归属人 - 污染防护 :外部来源材料强制标记并隔离,未经人工审查不进正式记忆 - 最小闭环 : recall → 做 → capture → promote - 零依赖脚本 :scaffold 生成骨架,audit 检查元数据合规 目录结构 安装 DSH 按以下根目录扫描 skill(rank 从高到低): /.dsh/skills/ 、 /.agents/skills/ 、 /.dsh/skills/ 、 /.agents/skills/ 。skill 格式为 / /SKILL.md ,frontmatter 只需 name (kebab-case)+ description 。 用户级安装(全局可用,推荐) 项目级安装(仅当前项目) 注入 workspace 规则(可选但推荐) 把本仓库的 AGENTS.md 复制到你的项目根目录,让 agent 自动获得分层记忆规则: 使用 方法论内核 完整规范见 docs/layered-memory-spec.md 。要点: 1. 分层路由 :按内容语义选层,不按「能不能写」选层。 2. 审查责任在人 : review state: reviewed 与 canonical status: formal 必须由人明确确认,agent 不能自我批准。 3. 来源可追溯 : source paths 缺失要显式说明,不编造。 4. 外部内容隔离 :网页、第三方账号、外部导入一律标 contains third party source: true ,停在 Raw/Candidates 等人工审查。…

在 GitHub 查看完整 README →
Agent/智能体deepseek-harnessdsh-pluginmemoryskillagent

分类