← Plugins

DevSpace Diff

Live file changes from the actual DevSpace worktree, including when your agent runs on another host.

$ paseo plugin add norman-else/devspace-sidecar
Report a bug
norman-elseSidebar0installse2f9c2b8de54Source
DevSpace Diff screenshot 1

View actual DevSpace worktree changes inside Paseo, including when the agent runs on a VPS and the project lives on your Mac.

Open Review (审阅 in Chinese) from the composer pill, Command Center, or /devspace-diff. The composer pill appears only for sessions associated with DevSpace. It automatically identifies the worktree from this agent's recent DevSpace tool calls. No workspace selection is needed.

Task changes includes all changes since the task's starting commit, even after committing. Uncommitted combines staged, unstaged, and new files against HEAD. All file diffs appear in one continuous review, with a flat file index on the right for navigation. Files have collapsible headers, syntax highlighting, line numbers, Git colors, and reviewed markers. Updates run every three seconds; reviewed markers reset when the file's patch changes.

The code area uses a neutral dark background with green/red change fills, with a separate light palette. Long code wraps to fit the code area, and the file index can be resized by dragging its divider or hidden with the toolbar's right-panel icon. Its width and visibility are saved with the tab. Labels follow Paseo's English or Simplified Chinese language setting automatically.

A flat header shows the branch's GitHub PR, including draft/open/merged/closed state, CI checks, review decisions, and merge conflicts. It refreshes every 30 seconds and links to GitHub. Shared default branches do not automatically select a PR; checkout history also needs an exact HEAD match. The project machine needs an authenticated GitHub CLI; repository and branch metadata are queried through it, while credentials stay on that machine. Open PRs include a split merge button. Its menu selects Merge, Squash, or Rebase and optionally Bypass requirements when GitHub permits it; selecting an option never merges. Only the main button sends a merge request. The source host rechecks permissions, repository, target branch, and the exact PR head before writing to GitHub. Pending and uncertain outcomes are checked without retrying the write. Merge queues and stacked PRs use GitHub for their broader workflow; authorized Bypass can directly merge a non-stacked PR.

When a PR exists, switch between its submitted changes and local changes not present in that PR. Use the separate Comments tab to read discussions with author names and avatars, or open their code directly from file comment counts and previous/next comment controls. Inline markers expand in place. Filter unresolved threads, inspect check details, and prepare feedback for the current agent. Feedback opens an editable draft and is sent only when you select Send to agent. GitHub Actions failures can include error excerpts; external CI checks link to their own providers.

Click unmodified-line counts to expand and collapse code context, search loaded diff text, and navigate files from the flat index. File filters explain which changes are shown. Save a review baseline to compare later edits with reviewed text; the dialog identifies its comparison scope and saved time. Review baselines are private sidecar state, limited to 200 text files and 8 MiB, with a 512 KiB per-file limit. Omitted files are reported. Code selection uses draggable green + handles and a nearby floating action toolbar. Mobile layouts keep feedback available without a directory tree or a bottom operation bar.

The project machine runs an authenticated sidecar service; a VPS reaches it through DevSpace's existing connection, with no separate tunnel. Requires Paseo >=0.15.4 and DevSpace's SQLite workspace registry. Configuration is in ~/.config/paseo-devspace-sidecar/config.json on each host.

Diff viewing uses read-only Git operations. Binary and oversized files show a notice. Local new-file previews are limited to 512 KiB, Git patches to 768 KiB, and file lists to 2,000 entries. The initial local review loads up to 80 patches and 4 MiB; other patches load when selected. Disconnected hosts report an error. Refreshing the same review source retains its displayed document while new data loads. This view shows current Git changes; it does not record every intermediate edit.

Merged PRs offer worktree cleanup, also available from More review actions, Command Center and /devspace-cleanup. A preview shows the exact project-host worktree and associated conversations. After confirmation, local cleanup must succeed before conversations are archived. Their empty Paseo workspaces are then archived too; ordinary VPS directories remain. Workspaces that still contain another conversation, a terminal or a running script are retained. Worktree cleanup status in Command Center remains accessible after the last agent closes. Busy tasks, shared worktrees and unsaved or untracked files block cleanup; ignored files outside known disposable build/dependency directories also require attention. Local branches, a recovery reference and conversation history remain. An archive failure can be retried without deleting again. Cleanup requires the lifecycle adapter for DevSpace 1.1.1 on the project host; normal review does not require it. The automatic adapter setup currently targets the configured Mac service.