OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xiaohj233/dsh-magic-context
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
社区移植:将 Magic Context 移植到 DeepSeek Harness(DSH)的独立社区项目。 与官方 DSH 及官方 Magic Context 均无隶属关系,能力对齐情况见 功能特性。
一个把 Magic Context 移植到 DeepSeek Harness 的适配层:让 DSH 会话使用
Magic Context 的知识注入、上下文管理与记忆能力,并与 OpenCode/Pi 的
Magic Context 共享同一 SQLite 记忆库(harness='dsh' 行隔离),
OpenCode/Pi 行为保持不变。
适合这些场景:
能力对齐:注入(m0/m1 双消息、首轮即见、§N§ 首轮打标)、压缩(低上下文
窗口 chunk 预算、historian 独立模型路由、发布后 <session-history> 折叠)、
nudge 双通道、heuristic cleanup、配置桥接——均与 Magic Context 0.36.1
(Pi/OpenCode)语义对齐。
在 DSH profile 的 package.json 中(profile 目录即 $DSH_HOME/profiles/<name>/,
dsh plugin --profile <name> install 会自动在该目录执行):
{
"dependencies": {
"dsh-magic-context": "github:xiaohj233/dsh-magic-context#v0.1.0&path:/packages/dsh-plugin"
},
"dsh": {
"profile": {
"bundles": ["dsh-magic-context"]
}
}
}
⚠️
dsh.profile.bundles请保留你 profile 现有的条目(如@deepseek-ai/dsh-base、@deepseek-ai/dsh-web-app、@deepseek-ai/dsh-headless等),只追加"dsh-magic-context"。
然后安装依赖并重启 dsh:
dsh plugin --profile <name> install
# 或:cd $DSH_HOME/profiles/<name> && pnpm install
重启后初始化:
dsh-magic-context setup # 生成 magic-standard 薄 preset
dsh-magic-context doctor # 验证安装
为新会话选择 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-adapter)由主包的github:依赖自动解析,无需单独安装。
首次会话自动创建共享 SQLite(~/.local/share/cortexkit/magic-context/context.db)。
完整对照见 docs/FEATURES.md。
harness='dsh' 行写入llm/stream messages[];OpenCode/Pi 行为不变。0.1.0-rc.6(升级先跑契约门)。MIT(与 Magic Context、DSH 一致)。上游版权声明见各包 NOTICE。
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: magic-context、memory。