feat(dsh): add DeepSeek Harness plugin - #1239
Merged
Merged
Conversation
Give DeepSeek Harness the same Server-backed recall and Memory tools as Codex, with a fail-open HTTP client and setup/doctor CLI.
CI quality failed because hooks rewrote tsconfig, generated lib files, and two Python sources.
The quality job has no Node toolchain. Leave plugin vitest on make js-test for local runs.
Teingi
requested changes
Aug 14, 2026
Teingi
left a comment
Member
There was a problem hiding this comment.
Thanks for adding the DeepSeek Harness integration. I am requesting changes for two blocking issues: prompt capture currently loses message provenance, and the generic OpenAPI tool exposes operations beyond the intended agent-facing surface. Please address the inline comments before merging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue or RFC does this PR close?
Not linked to an existing issue.
Rationale for this change
DeepSeek Harness is a supported agent host. PowerContext already has Codex and HTTP/MCP surfaces; this change adds a first-class DSH plugin so a running Server can recall bounded context and maintain Memory from
dsh webwithout embedding Python or MCP.What changes are included in this PR?
integrations/dsh/plugins/powercontext(powercontext-dsh): Cordis plugin that recalls viaPOST /v1/context/prepare, captures prompts as Source evidence, and exposes namedpc_*HTTP tools. Server or transport failures fail open.powercontext setup dshandpowercontext doctor dsh. Setup installs the plugin withdsh plugin --profile web add. Doctor checks that dump-config listsid: powercontext-dsh.lib/index.jsso a Git checkout can be loaded. On Windows, launchdsh.cmdand decode CLI output as UTF-8.openapi/powercontext.yaml(make js-api-generate/js-api-generate-check/js-test).Are there any user-facing changes?
Yes. New commands:
powercontext setup dshandpowercontext doctor dsh. New docs: Configure DeepSeek Harness. No Server API or storage format changes. Existing Codex setup is unchanged.How was this change tested?
uv run python -m pytest tests/test_dsh_cli.py tests/e2e/test_dsh_http_chain.py tests/test_js_operations.py tests/test_system_cli.py -k dsh(11 passed)pnpm --dir integrations/dsh/plugins/powercontext test(47 passed)uv run python scripts/generate_js_operations.py --checkuv run powercontext setup dsh --source .uv run powercontext doctor dsh→plugin: ok - powercontext-dsh is installeddsh --profile web --dump-configlistsid: powercontext-dshdsh webonhttp://127.0.0.1:3080returns HTTP 200curl/health/live,/health/ready,POST /v1/memory/remember,POST /v1/context/prepareagainst a local Server