rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:TY-ang/dsh-worktree-flow
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A multi-repo feature workspace plugin for DSH (DeepSeek Harness): one feature/version = one directory holding a git worktree per component repository, all on one shared feature branch — and the feature root is registered as a DSH workspace, so you pick it in the sidebar/new-session workspace picker and the session sandbox lands exactly on that feature scope.
The core concept is the set: bind several repositories together under a name, stored centrally ($DSH_HOME/worktree-flow/sets/<name>.json). No anchor repository, no config files inside any repo.
Your workflow: one district per feature, writing frontend + backend + API in a single session. The pain: forget to declare directories/branches in the prompt and the agent writes in the wrong place.
Three layers make "wrong branch" physically impossible:
dsh plugin --profile web add github:TY-ang/dsh-worktree-flow
# pin a release: dsh plugin --profile web add github:TY-ang/dsh-worktree-flow#v0.1.5
# the package declares dsh.bundle, so it joins the profile layer stack automatically
Restart dsh web afterwards.
This package is not published to the npm registry ("private": true stays in package.json) — install it from a local path or a git URL.
Primary entry: the Settings → Worktree Flow page
/worktree doctor [--set <name>] expose the same read-only diagnosis for process identity/integrity, Windows SID and directory Owner, Git ownership rejection, base refs, registry availability, shared-docs isolation, invalid manifests, and orphan directories. Doctor reports stable error codes and guidance but never repairs the environment.$DSH_HOME/worktree-flow.json — read ONCE when a set is created (worktree root, default base branch, component vocabulary); never affects existing sets.$DSH_HOME, not in the workspace-writable manifest. Every new session created in that feature receives the latest value on the first step alongside the standard Worktree Flow identity note and current project instructions.worktree_docs_write / worktree_docs_edit; these tools are limited to the current set's source, accept relative paths only, and reject traversal, symlink/junction ancestors, and overlap in either direction with a component Git repository or worktreeRoot.$DSH_HOME/worktree-flow/branch-types.json — built-in Bugfix/功能/Hotfix/发布 on first install, fully editable; the create wizard composes the full branch name from type + topic (or「自定义」for a verbatim name).~.git worktree add; afterwards Git must verify the expected top-level, branch, common Git directory, and a clean status before the feature can become ready or registered. If verification fails, rollback is limited to native git worktree remove for the exact worktree created by this attempt and still proven by the source repository. The plugin never writes git config --global, passes a safe.directory option, changes Owner/ACL, or switches Windows users. Run DSH, Codex, and the IDE under the same normal Windows account.Commands (fallback, scriptable; the set is inferred from the session cwd by path matching, --set <name> overrides):
/worktree status [feature]
/worktree doctor [--set name] # read-only; never repairs trust or ownership
/worktree create [name] --branch <full-branch> [--components a,b] [--base ref] [--set name] [--dry-run] [--register-components]
/worktree sync # adopt existing features + migrate .pi-era manifests + report orphans
/worktree open <feature> # ensure registered, print the path
/worktree finish <feature> [--cleanup] [--force] [--keep-registered]
/worktree config show [--set name]
set/feature)/worktree open <feature> re-registers that feature (sync continues to skip archived features)So the sidebar only ever shows active features.
| Data | Location |
|---|---|
| Set config (one self-contained file per set) | $DSH_HOME/worktree-flow/sets/<name>.json |
| New-set template (prefill-only, read once) | $DSH_HOME/worktree-flow.json |
| Branch-type vocabulary (global, editable) | $DSH_HOME/worktree-flow/branch-types.json |
| Trusted per-feature session context | $DSH_HOME/worktree-flow/contexts/<set>/<feature>.json |
| Feature manifest | <feature-root>/.dsh-worktree.json (read-only fallback: .pi-workspace.json, migrated by sync) |
| Shared project docs | The configured sharedDocsPath source (shared by every feature) |
Feature layout: <worktreeRoot>/<set>/<feature>/<component>.
git initnpm test # unit + real-git integration + plugin load + client bundle simulation
No build step: the client bundle is hand-written in the lazy-CJS handoff format (window.__ModuleLoader__.load), same as dsh-codex-oauth.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。