PowerContext for DeepSeek Harness: WorkBuddy-style project memory and inspectable handoff workflows - bounded context recall before each model step, 19 pc_* tools for memory, handoff, experience and skills, with a Windows server watchdog for resident operation.
Install
# from a prebuilt release tarball
dsh plugin --profile web add "https://github.com/yangyizhu8/dsh-powercontext/releases/download/v0.0.3/powercontext-dsh-0.0.3.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:yangyizhu8/dsh-powercontext
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
PowerContext 的 DeepSeek Harness 常驻插件(官方 integrations/dsh 集成的独立发行副本)。
一键把会话工作移交与项目记忆接入 dsh:模型每步前自动召回有界上下文(预置注入),19 个 pc_* 工具覆盖记忆/交接/经验/技能/审阅,/pc doctor 检查连通性。Server 不可用时 fail-open,绝不阻塞正常工作。
English: a thin DeepSeek Harness plugin that connects to a running PowerContext Server over HTTP — bounded context recall before each model step, pc_* tools for memory/handoff/experience/skills, and /pc doctor for liveness. Fail-open by design.
安装 / Install
dsh plugin --profile web add dsh-powercontext
或从本仓库目录:dsh plugin --profile web add <本目录>
前置条件(一次性):
# 1) PowerContext Server(Python/uv)
uv tool install --force "powercontext[cli,server] @ git+https://github.com/oceanbase/powercontext.git@master"
powercontext server run # 默认 http://127.0.0.1:8000(SQLite 本地存储)
# 2)(推荐)Server 常驻看门狗:登录自启 + 每分钟巡检自动拉起
# 见 scripts/server-watchdog.ps1(本仓库附带),注册为计划任务:
$wd = "<repo>\scripts\server-watchdog.ps1"
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "-NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$wd`""
$tLogon = New-ScheduledTaskTrigger -AtLogOn -User "$env:USERDOMAIN\$env:USERNAME"
$tRepeat = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(1) -RepetitionInterval (New-TimeSpan -Minutes 1) -RepetitionDuration (New-TimeSpan -Days 3650)
Register-ScheduledTask -TaskName 'PowerContext-Server-Watchdog' -Action $action -Trigger $tLogon,$tRepeat -Force
能力 / What you get
- 自动召回:
agent/pre-step每模型步前POST /v1/context/prepare注入有界上下文;当前输入自动捕获为 Source 证据(POWERCONTEXT_DSH_CAPTURE_PROMPTS=false可关) - 19 个 pc_* 工具:memory(remember/list/get/revise/retire)、handoff(activate/prepare/finalize/commit/continue)、experience/skill(generate/get)、search、review(list/get)
/pc命令:/pc doctor连通性与就绪检查- 安全边界:审阅类变更为显式人工
/pc review命令;破坏性与管理类 OpenAPI 操作不暴露为模型工具 - fail-open:Server 不可用时不阻塞 DSH 正常工作
配置
patch config(cordis.patch.yml):baseUrl / timeoutMs / requestTimeoutMs / maxBytes / capturePrompts / flushOnCapture;环境变量前缀 POWERCONTEXT_DSH_(BASE_URL / AUTHORIZATION / SCOPE_ID / CAPTURE_PROMPTS / FLUSH_ON_CAPTURE)。召回返回的上下文按不可信历史标注——当前用户、仓库与系统指令始终优先。
Windows 常驻适配说明
本副本附带 scripts/server-watchdog.ps1(PowerContext Server 计划任务看门狗:登录自启 + 每分钟健康巡检 + 崩溃自动拉起),并在插件内以 node_modules junction 指向宿主 dsh 部署的 @deepseek-ai/* 官方包实例(不向 profile node_modules 复制官方包)。其余与上游一致,跟随上游更新。
上游与许可
- 上游项目:https://github.com/oceanbase/powercontext (Apache-2.0)
- 本仓库为官方
integrations/dsh插件的独立发行副本,跟随上游更新
Links
More in this category
vectorize-io/hindsight#coding-agents★ 54464
Hindsight, agent memory that learns: long-term project memory with auto recall and retain, knowledge pages, deep reflection, and per-repo memory banks.
volcengine/OpenViking#examples/dsh-memory-plugin★ 40976
OpenViking memory and context bundle for DeepSeek Harness: pre-step auto-recall and profile injection, session capture, `viking://` URI guarding, and recall/write memory tools backed by an OpenViking server.
MemTensor/MemOS#memos-local-plugin★ 12136
Local-first memory plugin for DeepSeek Harness: layered L1/L2/L3 memory with automatic capture, manual memos_* retrieval tools, and a built-in memory viewer.
agentscope-ai/ReMe#dsh★ 3702
Connects DeepSeek Harness to ReMe's local-first, self-evolving personal knowledge base: automatically captures completed main-agent conversations as user-owned Markdown memory, searches conversations and source material through reme_search with BM25, optional embeddings, and wikilink expansion, and schedules daily memory consolidation.
zilliztech/memsearch#MemSearch★ 2802
Shared Markdown memory for DSH and other coding agents, with automatic capture, pre-step context injection, searchable recall, and memory-to-skill self-evolution through a review panel.
vshulcz/deja-vu#extensions/dsh★ 1321
Reads the session files forty-two other coding agents on this machine already wrote (Claude Code, Codex, Cursor, VS Code Copilot Chat, opencode, OpenClaw, Hermes, Kimi, Cline, Zed and more), including sessions from before it was installed: six tools (deja_recall, deja_session, deja_blame, deja_fix, deja_how, deja_remember), a /deja command, and optional automatic recall added to the runtime context. Local BM25 index, no LLM, no embeddings, no network (dsh plugin --profile web add dsh-deja).
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.