rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
bgmmd/dsh-vibecoding-preflight
Git preflight check for vibecoding sessions in DeepSeek Harness: detects a Git repository, compares the local branch with its upstream, pulls remote commits for the AI to review, and asks you to confirm pushing local commits.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:bgmmd/dsh-vibecoding-preflight
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Git preflight check for DeepSeek Harness vibecoding sessions.
Before asking the AI to change code, make sure it starts from the latest code and that your own commits are not stranded locally. This plugin adds one button to the conversation header that does exactly that.
git rev-parse --is-inside-work-tree when the session opens; outside a Git work tree it is disabled with an explanatory tooltip.git pull --ff-only runs automatically, then the changed commits and git diff --stat are handed to the current Agent as a follow-up prompt so it reviews what changed;--ff-only failures are reported verbatim.The row config in cordis.patch.yml is passed straight to the Host half and can be overridden in your profile patch:
| Key | Default | Meaning |
|---|---|---|
autoPull |
true |
Pull automatically when the remote is strictly ahead. When false, the panel offers a Pull button instead. |
aiFamiliarize |
true |
Queue an Agent follow-up asking it to review the pulled commits. |
commitListLimit |
20 |
Maximum commits listed per direction. |
timeoutMs |
120000 |
Timeout for a single git invocation. |
aiPromptTemplate |
'' |
Optional follow-up prompt template. Supports {branch}, {upstream}, {count}, {commits}, {stat}, {summary}. |
index.js) registers four same-origin JSON routes under /vibecoding-preflight/api/ (status, check, pull, push) on ctx.webServer. It resolves the session's working directory from ctx.sessions / ctx.workingDirectory, runs git with an argument array (no shell string), captures output through temporary files, and never uses destructive git commands (the only writes are git fetch --prune, git pull --ff-only, and the user-confirmed git push <remote> HEAD:<branch>).client.js) registers one pill button into conversation.session.header.actions, portals the result card to document.body (the header clips overflow), and routes all copy through the Client locale service (en / zh).ctx.remote namespaces at build time, so a runtime bundle cannot add one of its own; same-origin routes are the supported path for a plugin's own Client→Host calls.git configuration (credentials, proxies, SSH keys). A fetch/push failure is shown verbatim; the plugin never stores or asks for credentials.webServer, sessions, agents, and workingDirectory services (Web GUI / desktop builds).Install the package directory as a bundle in your DSH profile (Settings → Plugins → Add plugin with a local directory, or dsh plugin tooling), then enable the row vibecoding-preflight if it is not enabled automatically.
The bundle is plain JavaScript with no build step:
index.js Host half (routes + git execution + Agent follow-up)
client.js Client half (browser module, slot registration, panel UI)
cordis.patch.yml Loader row
locale/en.json Plugin Manager display metadata (English)
locale/zh.json Plugin Manager display metadata (Chinese)
docs/ Requirements, detail pages, preview image
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。