rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:DazzzleKK/dsh-code-git-workbench
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A Code and Git workbench for the DeepSeek Harness Web UI. It adds two pages to the right Sidebar:
It also keeps running subagents above idle ones in the header's subagent catalog popup.
The plugin is host + client code for DeepSeek Harness. It has no build step and no dependency on VS Code. The PyCharm-style Git UI is shared in source form with the companion VS Code extension pycharm-git-log; the two repositories remain independent at runtime.
Clone this repository somewhere permanent, then register the folder as a local
plugin in the desktop profile.
$repo = "C:\path\to\dsh-code-git-workbench"
$cli = "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd"
& $cli plugin --profile desktop add "link:$repo"
Use the dsh CLI that ships with the application. Its exact path depends on the
install layout; with the CLI already on PATH:
dsh plugin --profile desktop add link:/absolute/path/to/dsh-code-git-workbench
Fully quit and reopen DeepSeek Harness. A window reload is not enough: the host half is loaded at process start.
To use it in the browser profile instead:
dsh --profile web
and install with --profile web.
git pull
Then restart DeepSeek Harness. There is nothing to compile.
& $cli plugin --profile desktop remove dsh-code-git-workbench
Restart the application afterwards.
Ctrl+Alt+B on the desktop build, or the sidebar
button).+ → Code or Git. The guide also lists both pages..git is hidden.pagehide, keepalive request);Ctrl+S still saves manually; the status bar
shows Auto-saved after a successful write.Ctrl+R reloads the active file. The toolbar has Save and Reload actions.Ctrl+F) and modes for JS/TS, Python, JSON, Markdown, HTML/CSS, YAML,
SQL, shell, PowerShell and C-like languages.feat/123-login is
shown as feat → 123-login. The tree is built independently inside Local
and Remote. With a single remote, its name is treated as context and stripped
from the folder path; with several remotes, the remote name becomes the first
folder. Folder expansion is remembered per repository.+/-, plus checkout,
branch, cherry-pick, merge, rebase, reset (soft/mixed/hard), revert and tag.--set-upstream origin when a
branch has no upstream.Pull '<branch>' into Current for a remote branch or a local branch with an
upstream.[staged] =
index vs HEAD, [unstaged] = working tree vs index).The header's descendant-count button opens the subagent catalog. Running rows are moved above idle rows after every render, per tree level. The sort is a DOM enhancement because the shipped catalog has no slot for ordering; host state is not modified.
index.mjs host half: /code-git static UI + JSON API
client.js client half: Sidebar tab types + subagent catalog sort
web/code/ vanilla JS + CodeMirror 5 (vendored)
web/git/ PyCharm-style Git UI
cordis.patch.yml inserts the bundle row into the profile
The host API applies ctx.connection.requestRejection(req) to every request, so
it inherits the Harness Host/Origin fence and browser authentication. All routes
are same-origin:
dsh-app://app/code-git/... to the local host with
the host cookie;API surface:
| Route | Purpose |
|---|---|
GET /code-git/api/context |
session cwd, selected root, workspaces, repo status |
GET /code-git/api/tree |
one directory level |
GET/PUT /code-git/api/file |
read/write one file |
GET /code-git/api/git/state |
branches, commits, refs, ahead/behind |
GET /code-git/api/git/status |
staged, unstaged and untracked files |
GET /code-git/api/git/worktree-diff |
index/HEAD/working tree file contents |
GET /code-git/api/git/commit |
commit message, parents, file stats |
GET /code-git/api/git/diff |
old/new file contents |
POST /code-git/api/git/action |
checkout, merge, rebase, reset, fetch, pull branch, push, … |
Every request is checked against the session's registered workspaces; paths are
resolved and confined to the selected root. Git runs through execFile without
a shell, with GIT_TERMINAL_PROMPT=0.
The Git UI is the same HTML/CSS/JS as the companion VS Code extension's panel.
web/git/bridge.js implements the small acquireVsCodeApi() surface the UI was
written against and maps its messages to the JSON API. No VS Code runtime is
involved.
There is no build step:
index.mjs, restart the host;client.js, restart the host (or use a web profile with live
patch reload);web/code/;web/git/.For a disposable test instance:
$cli = "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd"
& $cli --profile web --port 3080 --no-open
Open the printed token URL and use the normal UI.
Test checklist before a release:
+ lists Code and Git;Do not test destructive Git operations on a real working tree; use a throwaway repository.
See AGENTS.md for the agent-oriented guide.
Unsupported Web shortcut otherwise), so the pages
are opened from the + guide.MIT. See LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。