Pheobe-Southwood/dsh-better-workspaces

dsh-better-workspaces brings Paseo-style worktree, diff and PR handling to the DSH Web GUI: when a blank session's workspace is a git repo a hero mode dropdown offers Local or New worktree, the base-branch picker speaks exact refs (origin refs fetched with a bounded prune head start, diverged locals marked with +/- counts) and lists open pull requests so picking one checks out the PR head against its own base, creation registers and titles the workspace, migrates the draft, and the first message renames the branch and titles the session, with automatic cleanup of abandoned worktrees.

dsh-better-workspaces brings Paseo's worktree, diff and PR model to the DSH Web GUI. When the current blank session's workspace is a git repo, a mode dropdown appears in the hero row offering Local (the workspace root is the repository checkout) or New worktree, which reveals a base-branch picker that speaks exact refs: the origin/<name> row comes first because it is the default base (cutting from refs/remotes/origin/<name> starts at the true GitHub head even when the local branch lags) and diverged locals appear as <name>(本地) rows with +/- counts. Picking a base creates the worktree immediately and jumps (origin refs get a bounded 4s git fetch --prune head start on top of a 180s background fetch), registers a workspace titled <source workspace> · <branch>, creates the target session, migrates the typed draft through the official conversation-input API and retires the blank launcher, with full rollback on any failure. The same picker also lists open pull requests - picking one checks out the PR's HEAD from refs/pull/<N>/head against the PR's own base as the diff baseline - and on the first user message one LLM call renames the branch to a task slug and titles the session.

Workflow & Automation ★ 2
View on GitHub ↗

Install

dsh plugin --profile web add github:Pheobe-Southwood/dsh-better-workspaces

Copied verbatim from the README's 'One command installs and mounts the plugin' block. The README also documents a link:/path/to/dsh-better-workspaces local form.

Compatibility

Install is symmetric and reversible (reconcile drops the bundle on uninstall / dsh plugin --profile web remove dsh-better-workspaces). Every git detection result is tagged with the cwd it was resolved for, so workspace naming only ever follows the workspace owning the current session's cwd; a same-repo pull request tracks origin/<headRef> only when that existing remote-tracking ref already resolves to the verified PR head (it never manufactures or overwrites the ref), a fork PR deliberately gets no upstream, and abandoned staging leftovers are swept automatically at boot and hourly or via POST /worktrees/cleanup.

Details

Alternatives

940842546/dsh-permissions · adithya-hmt/fullstack-expert · alib8b8/dsh-plugin-aflare

More plugins in Workflow & Automation

Browse more in Workflow & Automation

Guides for Workflow & Automation plugins