xiaohj233/dsh-magic-context

xiaohj233★ 1TypeScript最后同步: 2026-08-16

在 GitHub 打开

Magic Context — community port to DeepSeek Harness (DSH). Shared SQLite memory across harnesses, harness='dsh' row isolation.

README 摘要

Magic Context for DSH English 中文 社区移植 :将 Magic Context 移植到 DeepSeek Harness(DSH)的独立社区项目。 与官方 DSH 及官方 Magic Context 均无隶属关系,能力对齐情况见 功能特性。 E2E 环境 项目定位 一个把 Magic Context 移植到 DeepSeek Harness 的适配层:让 DSH 会话使用 Magic Context 的知识注入、上下文管理与记忆能力,并与 OpenCode/Pi 的 Magic Context 共享同一 SQLite 记忆库 ( harness='dsh' 行隔离), OpenCode/Pi 行为保持不变。 适合这些场景: - 在 DSH 中复用已有的 Magic Context 记忆(与 OpenCode/Pi 共享)。 - 希望 DSH 会话获得 m0/m1 知识注入、§N§ 标签、historian 压缩、 Dreamer 定时任务等能力。 - 想要 /ctx- 工具族(search/memory/note/expand/reduce/embed/recomp/wrapup)的 DSH 用户。 安装 在 DSH profile 的 package.json 中(profile 目录即 $DSH HOME/profiles/ / , dsh plugin --profile install 会自动在该目录执行): ⚠️ dsh.profile.bundles 请 保留你 profile 现有的条目 (如 @deepseek-ai/dsh-base 、 @deepseek-ai/dsh-web-app 、 @deepseek-ai/dsh-headless 等),只 追加 "dsh-magic-context" 。 然后安装依赖并重启 dsh: 重启后初始化: 为新会话选择 magic-standard preset(Web UI: Settings → Agent preset,或 settings.yaml: agent-presets.default: magic-standard )。 ⚠️ 使用前提 :Magic 的 agent 能力(知识注入、ctx 工具、/ctx- 命令、 historian、Dreamer、Magic 压缩策略) 只在新会话选择 magic-standard 预设时 加载 。未选择该预设的会话完全按官方语义运行——仅 host 半侧常驻 (共享库初始化 + 状态卡/诊断端点),不会有任何 Magic 干预。想让插件默认 生效,把 settings.yaml 的 agent-presets.default 设为 magic-standard 。 依赖包( dsh-magic-context-ad…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdshdsh-pluginmagic-contextmemory

分类