feat(dsh): close remaining DeepSeek Harness gaps - #22
Merged
Conversation
Mount MCP with session cwd, register the GraphFlow skill from the bundle glue, and auto-close pending episodes on agent/disposed so dsh plugin add covers MCP + skill + flywheel without inventing a second learning path. Co-authored-by: RoarPeng <Roarpeng@users.noreply.github.com>
Roarpeng
marked this pull request as ready for review
August 19, 2026 11:53
session/flush is a live DSH checkpoint, not session end. Auto outcome report true there would mark pending episodes successful while the agent is still working.
Uh oh!
There was an error while loading. Please reload this page.
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 freeto 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.
Not all GraphFlow features can run inside DeepSeek Harness (
dsh). This PR finishes the host-portable remaining gaps so MCP + skill + session-end flywheel work afterdsh plugin --profile web add @roarpeng/graphflow. VS Code/Cursor UI stays on those hosts.What now works on dsh
mcp__graphflow__graphflow_*cwd= session/workspaceprocess.cwd()(no hardcodedGRAPHFLOW_WORKSPACE_ROOT)ctx.skills.register) sodsh plugin addis enough$DSH_HOME/skills/graphflow/SKILL.mdwhengraphflow installsees~/.dshagent/disposed→ existinggraphflow outcome report(Claude Code SessionEnd analog). Notsession/flush— that is a live checkpoint; autooutcome report truethere would mark the flywheel successful while the agent is still working.graphflow_contextwithrootDirtopicId/ outline via MCPgraphflow_context/graphflow_diagnoseInstall (primary):
First turn:
mcp__graphflow__graphflow_contextwithrootDir= repo absolute path.Home overlay (users who already have
~/.dsh):npx @roarpeng/graphflow install.doctor/uninstalldetect overlay + glue row + skill path.Not ported (host-specific, stay on VS Code/Cursor)
@graphflowchat participantdsh.bundleinstead)Implementation notes
cordis.patch.ymlandbuildGraphFlowDshInsertPatch()stay in lockstep: MCP row +id: graphflow-dsh(name: '@roarpeng/graphflow/dsh').dsh/plugin.mjs) because DSH plugins aretype: module; GraphFlow root stays CJS. Duck-typesctx; missingctx.skills/ events → no throw. No hard@deepseek-ai/cordisruntime dep.outcome reportpath; does not invent a second flywheel.Tests
buildGraphFlowDshInsertPatch()=== rootcordis.patch.ymlinsert (cwd included)ctx.skills/ missing events → no throwsession/flushVersion left at 1.9.14 for the maintainer. Apache-2.0.