xiaohj233/dsh-magic-context--packages-dsh-plugin1

dsh-magic-context

Magic Context — DeepSeek Harness adapter (Host / Agent / Client + profile bundle). Loads the shared Magic SQLite store and registers ctx_* tools, /ctx-* commands, knowledge injection, historian/dreamer scheduling, compaction policy, and the Typert Remote surface for the DSH client.

AI 分析

该插件用于在 DSH 中实现持久化上下文管理。适合需要高级知识注入、历史调度和 SQLite 本地存储的 DSH 开发者,安装后需运行 setup 生成预设并重启服务。

パッケージ
dsh-magic-context
バージョン
0.1.1
ライセンス
MIT
最終更新
2026/08/16

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xiaohj233/dsh-magic-context#04680ebae5582e2e5ead261b8a6f13a726103a4e&path:packages/dsh-plugin

ドキュメント

README 全文を読む ↗

dsh-magic-context

Magic Context — community port to DeepSeek Harness (DSH). A persistent DSH plugin (Host / Agent / Client + profile bundle) that loads the shared Magic Context SQLite store (harness='dsh' row isolation) and registers the ctx_* tools, /ctx-* commands, knowledge injection, historian/dreamer scheduling, compaction policy, and the Typert Remote surface.

Community port. Not affiliated with the official Magic Context or DeepSeek projects. Upstream: https://github.com/cortexkit/magic-context (MIT).

Install

In your DSH profile's package.json:

{
  "dependencies": { "dsh-magic-context": "github:xiaohj233/dsh-magic-context#v0.1.0&path:/packages/dsh-plugin" },
  "dsh": { "profile": { "bundles": ["...", "dsh-magic-context"] } }
}

Then pnpm install and restart dsh. The adapter package (dsh-magic-context-adapter) is resolved automatically.

Setup

dsh-magic-context setup   # generates the magic-standard thin preset
dsh-magic-context doctor  # verifies the install

Select the magic-standard preset for new sessions, then restart dsh. The first session creates the shared SQLite (~/.local/share/cortexkit/magic-context/context.db).

Features

  • Knowledge mode: m0/m1 baseline injection, auto-search, §N§ tags
  • Context management: transcript + surface CAS (outbox saga), historian compartments, Magic compaction policy
  • Automation: Dreamer tasks, /ctx-recomp /ctx-wrapup /ctx-session-upgrade, /ctx-embed, feedback bridge
  • Web: status card + Remote diagnostics

See the repository README for the full feature table and constraints.

Uninstall

Remove the dependency and the bundles entry, then restart dsh. The shared SQLite and dsh_* adapter tables are intentionally preserved (cross-harness data); remove ~/.dsh/.agent-presets/magic-standard/ manually if you no longer need the preset.

Compatibility

  • DSH 0.1.0-rc.6 exact-rc (run the contract gate before upgrading)
  • Magic Context 0.36.1 shared schema baseline

License

MIT. Upstream copyright notices: see THIRD_PARTY_NOTICES.md.