Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Patchdeck

A local-first desktop app for reviewing committed changes between Git branches and operating the native Hermes Agent Kanban beside the code. It provides a pull-request-style file tree, line counts, unified diffs, task lanes, agent activity, runs, logs, and human-to-agent comments without automatically publishing code.

The MVP targets macOS. It is built with Tauri 2, React, TypeScript, and Rust.

What it does

  • Opens a local Git working tree from any folder inside it.
  • Opens a plain workspace folder and discovers Git repositories in its immediate child folders; the workspace root does not need Git.
  • Loads workspace project metadata and comparisons only when each tab is first activated.
  • Lists local branches and selects the checked-out branch for comparison.
  • Suggests main or master as the base branch when available.
  • Uses merge-base comparison semantics equivalent to base...compare.
  • Shows the commits unique to the compare branch, with their graph order, author, short ID, and relative time.
  • Shows changed paths in a collapsible folder tree with file statuses, additions, and deletions.
  • Renders unified diffs with old and new line numbers and IDE-style syntax coloring.
  • Wraps long diff lines by default, with a per-project toggle for horizontal scrolling.
  • Tracks which changed files have been viewed for the exact repository, merge base, and compare commit.
  • Handles added, modified, deleted, renamed, and binary files.
  • Opens multiple repositories in tabs while preserving each project's comparison and selected file.
  • Restores open project tabs and the active project after the app is relaunched.
  • Keeps running when its macOS window is closed and restores the window from the Dock; Quit still exits.
  • Remembers up to five recent repository paths on the local machine.
  • Discovers a running local Hermes dashboard on its standard ports, starts a managed hermes serve process, or attaches to another loopback server with a session token.
  • Shows Hermes connection health and active worker count in the top-right.
  • Operates as a review-only branch viewer while Hermes is disconnected; Agent Board, task feedback, and editing controls appear only for an attached agent session.
  • Renders Hermes' canonical Kanban lanes, boards, profiles, cards, Markdown task content, task details, comments, events, runs, and bounded worker logs.
  • Creates tasks from each eligible lane with Hermes' native routing, priority, skills, workspace, parent, and goal-mode fields.
  • Exposes workflow-safe task transitions, parent and child links, child results, attachments, home-channel notifications, and human comments.
  • Links a Hermes task to the Review surface, stores file/line comments locally, and sends structured feedback back to that task.
  • Opens and activates the repository named by a Hermes task when Review code points outside the currently selected project.
  • Opens checked-out working-tree files in a guarded editor with path containment, symlink-escape checks, optimistic concurrency, and atomic saves.
  • Keeps the selected Review or Agent Board surface across relaunches.

Safety boundaries

Git inspection remains read-only. Its Rust commands invoke Git directly without a shell, disable optional locks, lazy fetching, external diffs, text-conversion helpers, and pathspec magic, and use only allowlisted read operations. A separate editor command can replace an explicitly selected working-tree file, but it cannot update the index, move refs, switch branches, or contact Git remotes.

Hermes is isolated behind a separate Rust-owned adapter:

  • managed mode binds only to 127.0.0.1, generates a session token in memory, and stops only the child process this app owns;
  • attach mode accepts only loopback HTTP origins and never terminates the attached process;
  • React receives normalized data, not the session credential;
  • there is no generic command runner or arbitrary HTTP proxy exposed to the frontend;
  • the app consumes Hermes' REST API and never reads or writes its Kanban SQLite files directly;
  • task creation, state changes, and comments are explicit user actions;
  • no Git commit, push, pull request, or remote publication happens automatically.

Theming

Every color, font, and size comes from the design tokens in src/theme.css; component styles in src/App.css reference tokens only. The default scheme follows macOS dark-mode conventions: neutral gray surfaces, the system blue accent, Apple's semantic colors, and Xcode-style syntax highlighting. The window uses a macOS overlay title bar, with the app header acting as the draggable titlebar.

To add a color scheme, add a :root[data-theme="name"] override block in theme.css and set document.documentElement.dataset.theme. Diff colors and syntax highlighting (src/prismTheme.ts reads the --syntax-* tokens) follow automatically. A purple scheme ships as a working example.

Requirements

  • macOS
  • Node.js 20 or newer
  • Rust stable
  • Git available on PATH
  • Tauri's macOS prerequisites, including Xcode Command Line Tools

Development

npm install
npm run tauri dev

Run npm run dev for frontend-only interface work. The repository picker and Git operations require the Tauri desktop process and are unavailable in a normal browser tab.

Verification

npm test
npm run build
cd src-tauri && cargo test

Build a macOS application bundle with npm run tauri build.

Releases and updates

Patchdeck checks the latest public GitHub release when it starts. When a newer signed version is available, an in-app card lets the user download it, install it, and restart. A failed background check stays silent so offline work is not interrupted; an installation failure remains visible and can be retried.

To publish a release:

  1. Update the matching version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Commit and push the release changes.
  3. Push a matching tag such as v0.5.0.

The Release Patchdeck GitHub Actions workflow builds a universal notarized macOS app and DMG, creates the GitHub release, and uploads latest.json plus the signed updater archive. It requires the repository secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_ID, APPLE_PASSWORD, APPLE_TEAM_ID, TAURI_SIGNING_PRIVATE_KEY, and TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

The updater private key lives outside the repository at ~/.tauri/patchdeck-updater.key; its password is stored in macOS Keychain under com.patchdeck.updater-signing. Keep both backed up. Losing that key prevents installed copies from trusting future releases.

The Rust integration test creates a temporary Git repository, compares a feature branch against main, verifies the file and line totals, loads a file diff, and asserts that repository state is unchanged before and after the read flow.

Project structure

src/
App.tsx Top-level state, project tabs, and surface routing
components/ Welcome screen, header, file tree, diff view, project pane, shared UI
theme.css Design tokens and color schemes (single source of truth for colors and type)
prismTheme.ts Syntax-highlighting colors bound to the theme tokens
api.ts Typed Tauri command boundary
session.ts Tab, recent-repository, and surface persistence
fileTree.ts Changed-path tree construction
types.ts Shared frontend data contracts
editor/ Guarded working-tree editor
hermes/ Hermes connection, board, task drawer, and tests
review/ Local task links and inline review anchors
src-tauri/src/
editor.rs Contained, hash-checked, atomic file writes
lib.rs Narrow Tauri command registration
hermes.rs Loopback-only managed/attached Hermes adapter
repository.rs Read-only Git operations and diff parsing
workspace.rs Immediate-child repository discovery
PRD.md Product requirements and acceptance criteria
WORKSPACE-DESIGN.md Saved-workspace options and recommendation
HERMES-WORKBENCH-PRD.md Product boundary and delivery phases
docs/hermes-agent-integration-research.md Source-backed upstream research

Current MVP limits

  • Local branches only
  • Committed changes only
  • Unified diff view
  • Independent file-tree and diff scrolling
  • Manual refresh
  • Text patches up to 5 MB per file
  • Repository paths and Git filenames must be valid UTF-8
  • Project tab paths, order, source, and active project are restored after restart; branch and file selections currently reset to repository defaults
  • Workspace discovery scans immediate child folders only
  • Symlinked workspace children are ignored so discovery stays inside the selected folder
  • A workspace child must own its Git working tree; it cannot resolve to the workspace root or another repository
  • The editor operates on the checked-out working tree only and is available when the compare branch is currently checked out; saved edits are uncommitted
  • Inline comments, the review target, and viewed-file progress persist to an app-owned JSON store in Application Support (with a localStorage mirror and automatic migration); the store assumes a single running app instance, so two copies of the app running at once can overwrite each other's review state
  • Viewed-file progress also uses local browser storage and is keyed to the exact comparison, so a new head commit starts a fresh review state
  • Hermes activity streams over the upstream board event WebSocket (Rust-owned, loopback, token never exposed to the frontend); polling remains as an automatic fallback and safety net when the socket is unavailable
  • No staging, commits, fetching, pushing, GitHub authentication, or pull requests
  • Hermes connections are loopback-only and attached session tokens are not persisted

About

A local-first desktop workbench for reviewing Git branches, editing changes, and coordinating AI agent tasks.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages