rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zmy15/dsh-plugin-git-status
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
给 DeepSeek Harness(DSH)增加一条克制、可直接操作的 Git 状态提示。

它显示当前会话工作目录的:
HEAD @ 1a2b3c4);工作区干净时只显示一个绿色对勾,不占视觉注意力。
conversation.hero.options,显示在工作区名称与
Agent 模式同一行的最右侧;对话开始后使用 conversation.session.header.utilities,
显示在会话标题栏右侧工具区,不再占用输入框下方的新一行。inject(sessionId) 取得当前会话 ID。Esc 关闭分支菜单和状态面板。--dsw-* 主题 token,自动适配亮色 / 暗色皮肤。浏览器(client.js) 宿主(index.js + lib/)
┌─────────────────────────┐ ┌──────────────────────────────┐
│ 每 10s GET │ │ GET /git-status/status │
│ /git-status/status │ ───────▶ │ GET /git-status/branches │
│ /git-status/branches │ │ POST /git-status/branch │
│ POST /git-status/branch │ │ sessionId → ctx.sessions │
└─────────────────────────┘ │ → session.header.cwd │
│ → git status / for-each-ref │
│ → git switch [-c] │
└──────────────────────────────┘
浏览器不能指定路径。宿主用 ctx.sessions.get(sessionId).header.cwd 自己解析工作目录,
再把该目录交给 git。这样即使页面被篡改,也不能借这些路由读写任意目录。
分支切换和创建只接受分支名,不接受路径。分支名先经过 git check-ref-format --branch
校验;命令通过 execFile 执行,不经过 shell。
git status --porcelain=v2 --branch -z 一次给出分支、上游、ahead/behind 和全部改动
(含重命名、冲突、未跟踪);git log -1 只补最近提交。两条命令并行执行,各自有
8 秒超时和 4 MiB 输出上限,避免大仓库卡住宿主。只有用户真正切换分支时,宿主才会
额外读取一次工作区状态,用于决定是否需要确认。
先克隆仓库:
git clone https://github.com/zmy15/dsh-plugin-git-status.git
将当前 profile 链接到克隆目录:
dsh plugin --profile web add link:<本仓库绝对路径>
然后把 dsh-plugin-git-status 加进该 profile package.json 的
dsh.profile.bundles,重启 DSH。
桌面 profile 由 Electron 独占,dsh plugin 会拒绝直接修改。可以:
<profile>/node_modules/dsh-plugin-git-status -> <本仓库绝对路径>
"dsh": { "profile": { "bundles": [ ..., "dsh-plugin-git-status" ] } }
桌面端宿主半边是启动期 bundle 行,装完必须重启 DSH;只刷新页面不够。
>=22.19.0>=0.2.1-rc.1PATH 中可用的 Gitnode --test test/git.test.mjs test/routes.test.mjs test/client.test.mjs
node --check client.js
node --check lib/git.js
node --check lib/routes.js
测试覆盖:
状态条、状态面板、分支菜单,以及新会话和活动会话两种位置,均已在真实桌面 GUI 中验证。
git status 可能慢;8 秒超时后弹层显示错误,状态 chip 保留上一次成功结果。CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek。