
docs
com.wscommander/docs
Search WS Commander docs, Apple Silicon benchmarks, release SHA-256, and wsc mcp setup guides.
Documentation
WS Commander
Status: Public Beta (v1.0.10 Beta) · Website: wscommander.com · Design System: design.wscommander.com · Source & Releases: github.com/wsagency/wscommander · Issues: GitHub Issues · License: MIT
Developed by Kristijan Lukačin (@klukacin) · Made with love by WS Agency
[!WARNING] Public Beta — Use at Your Own Risk: WS Commander is currently in beta and performs real filesystem operations (copy, move, rename, directory synchronization, archive modification, and deletion). Keep verified backups of important data before running bulk or remote transfers. Under the MIT License, this software is provided "AS IS" without warranty of any kind — you use it strictly at your own risk.
WS Commander is a native macOS dual-pane file manager for local APFS/HFS+ volumes, mounted network shares (SMB/AFP/NFS/WebDAV), ZIP and TAR-family archives, and remote FTP/FTPS and SFTP servers. The app is built in pure Swift and AppKit; all filesystem, queue, archive, transfer, and protocol engines live in a Foundation-only WscommanderCore framework with zero third-party dependencies. Deployment target: macOS 13.0+ (Universal Binary for Apple Silicon & Intel, verified through macOS 27.2, Apple Developer ID signed and notarized).
Installation, Notes & Warning
- Download
WS-Commander-1.0.10-universal-notarized.zipfrom the latest GitHub Release (or via wscommander.com). - Verify the SHA-256 checksum before installing:
shasum -a 256 ~/Downloads/WS-Commander-1.0.10-universal-notarized.zip # Expected: 54977cc1c5f69c0381dbaf8552b60762389a9d859ecd6f400400b10f892c11e3 - Unzip the archive and drag WS Commander.app into
/Applications. - Optionally confirm Gatekeeper & Apple notarization:
spctl -a -vv "/Applications/WS Commander.app" - Optionally link the
wscCLI & MCP server launcher into yourPATH:ln -sf "/Applications/WS Commander.app/Contents/Resources/bin/wsc" /usr/local/bin/wsc
[!NOTE] Installation Notes
- Compatibility: Universal Binary (
arm64+x86_64) for macOS 13.0 or later, verified through macOS 27.2.- Full Disk Access (Recommended, optional): Basic folders work via standard macOS prompts. Granting Full Disk Access in System Settings > Privacy & Security > Full Disk Access avoids repeated folder prompts and lets Find Files (
⌘F),Spacesizing, Branch View, Smart App Uninstaller, and Sync read protected~/Libraryand backup folders. WS Commander includes a first-launch WS Commander > Welcome & Setup… onboarding sheet and a contextualGrant Full Disk Access…status-bar button whenever a local listing hits permission denial. Note: if you enable the optional local Automation API / MCP server, connected AI clients inherit WS Commander's file access.- Automation API & MCP (
wsc mcp): Disabled (off) by default. Enable read/mutate permissions explicitly in Settings > Automation.- Direct Copy (SMB): Optional and opt-in; verifies SSH/SMB targets before copying directly between Macs and NAS shares.
- Feedback & Bug Reports: Report any beta regressions or feature requests on GitHub Issues.
[!WARNING] Beta Software Disclaimer: While test suites and AppKit smokes cover core operations, this release is still a Public Beta. Always back up irreplaceable data before testing new features on live drives or production NAS shares, and use WS Commander at your own risk.
Current slice
-
Two side-by-side, independently navigable file panes with visible tab strips, inline path autocomplete, and searchable volume switcher. Each tab retains its typed local, archive, or remote location and its own back/forward history; creating, switching, or closing a tab affects only its pane.
-
Provider-backed local (
getattrlistbulkbulk metadata), ZIP, FTP/FTPS, and SFTP directory listings with cancellation, typed entries, displayed metadata, deterministic directory-first sorting, and hidden-file filtering. -
Configurable Full-view columns include Name, Ext, Size, Modified, Created, Accessed, Date Added, Kind, Attributes, Permissions, Owner, Group, Finder Tags, Dimensions, Duration, Version, Item count, iCloud status, and Location (showing volume, server, and protocol context such as
AppleTV · nas920 SMB). Visibility, order, and preferred widths are saved per location and shared by both panes. Right-click a Full-view header or use Settings > Panels (with two-column dialog layout) to choose columns for the path shown in a pane. Drag a header to reorder it or drag a divider to resize a column. Archive and remote panes show the columns they support. Set as Default in the header menu applies the current layout to every location without its own layout. Reset to Default removes the override for this location so it follows the shared default. The previous left and right pane choices apply until you set a default. Columns hidden temporarily in narrow panes keep their saved visibility and widths. Expensive local metadata is loaded asynchronously for visible rows, cached by path/inode/modification time, and cancelled as rows scroll away or the pane navigates. Dimensions use ImageIO, duration uses indexed Spotlight metadata with an AVFoundation fallback, and Finder tag dots use system label colors. iCloud Drive entries expose download state and Download Now/Remove Download actions; copy and move operations coordinate ubiquitous sources. Real iCloud/File Provider behavior is not exercised by the smoke tests. -
Commander marking with
Insert,Cmd+A, wildcard Select/Unselect Group, inverted selection, and cancellable recursive directory sizing (Spacecomputes sizes for all selected local folders, even when mixed with selected files). Pane status shows selected/total counts and sizes plus volume capacity; the location popup includes mounted volumes and Home. -
Automatic per-app standard
F1–F12hardware function keys (Settings > Keyboard) via IOKit when WS Commander is focused, restoring the system media-key setting automatically when switching to other apps. -
Live-switchable 5 embedded App Icon finishes in Settings > Panels (Brushed Metal, Glass Auto Light/Dark, Glass White, Glass Dark, Glass Red, Glass Blue), alongside 8 built-in themes (System, Light, Dark, macOS/Liquid Glass, Commander Classic, Nord, Dracula, Solarized Light) and custom theme presets.
-
Operations window split into In Progress and Completed tables (with clickable destination links and Open in New Tab actions),
Run Nowparallel execution next to Pause/Cancel for disjoint queued operations (e.g.Create folder, Trash, or separate transfers),F2foreground-to-background handoff, and a fixed-width stabilized toolbar transfer pill (% · throughput/s). -
Optional opt-in Direct Copy (SMB) (
DirectCopyRoute+wsc-direct-copy) orchestrating directSource Mac → Destination NAScopies over SSH without relaying file bytes through the controlling workstation, with optional SHA-256 readback verification. -
Built-in read-only Lister (
F3) (Text, Hex, Image, Preview, Web, and Markdown modes with bounded opt-in local/remote images, up to 4.36 GB/s ASCII / 3.23 GB/s whole-word Boyer–Moore–Horspool search, and linear-time syntax highlighting) and Atomic Text Editor (F4) with encoding/line-ending preservation, live Markdown split preview, external-edit detection, and ACL/xattr preservation. -
File > Connect to Server… (
⌘K) accepts SMB, AFP, NFS, and HTTP(S)/WebDAV addresses, strips URL passwords, and uses macOS's native credential UI to mount a network volume. Credential-free recent servers persist in Application Support; mounted network volumes appear in the location popup with their server URL, and Disconnect Network Volume asks before unmounting. The Nearby section browses SMB, AFP, WebDAV, SFTP/SSH and FTP Bonjour advertisements on demand; selecting a result resolves its host and port, while live servers and real mounts remain unobserved. AppKit smoke injects both discovery and no-UI mounting; real network access is not started by smoke. -
Network Volumes… in either pane’s location menu opens a window with mounted network volumes and connected FTP/SFTP sessions. Browse Nearby shows Bonjour-advertised servers and the connected volumes and sessions WS Commander can match by protocol and address. Open routes a connection to the pane that opened the window. Connect on an SMB or AFP server row lets macOS authenticate and offer its share picker. If several volumes mount, choose which one opens in the pane. All mounted volumes appear in Connected. WebDAV opens an editable address, and Connect to Server… accepts a full share, export, or endpoint address. Refresh updates mounts and sessions and refreshes discovery if it was started. Disconnect asks before unmounting a volume or ending a remote session.
-
Pane display modes are per-tab: the toolbar segmented control and View menu select Full (detailed columns), Brief (names flowing left-to-right through multiple keyboard-navigable columns), or Thumbnails (virtualized
NSCollectionViewitems with asynchronous local Quick Look thumbnails, an LRU cache keyed by URL/mtime/size, icon fallback, and a size slider). Non-local locations show icons in Thumbnails mode. -
View > Branch View (
⌥⌘B) flattens the active local directory recursively into the pane with a relative Path column; View > Branch View (Selected Directories) (⌥⇧⌘B) lists beneath selected local directories. Branch listings stream in cancellable batches and F5 operations work on their entries. View > Quick View Pane (⌥⌘Q) replaces the inactive pane with a debounced Quick Look preview of the active pane cursor; toggling again restores the pane and its state. -
Large-list filtering and sorting are prepared off-main-thread with stale-result rejection; selection status uses cached aggregate counters, and volume capacity is fetched off-main-thread and refreshed on navigation, explicit refresh/operation completion, and a 60-second timer. The AppKit smoke measures select-all/toggle and asserts status updates below 50 ms on 100,000 synthetic entries.
-
A native NSToolbar and clickable F3–F8 function bar (plus ⌥F4 Exit) mirror keyboard commands; the function bar spans the complete window beneath both panes. The minimum window size is 760×520; narrow panes progressively hide metadata columns and shorten date display so visible text stays readable. The toolbar includes Back, Forward, Refresh, New Tab, Find, Batch Rename, Operations, Hidden Files, and Swap Panes. F4 edits the selected local file. Shift+F4 creates an empty file exclusively in the active local folder and opens it with the configured editor, without overwriting an existing file or symlink. Swap Panes is Cmd+U; Target = Source is Cmd+Option+S.
-
Per-pane FSEvents monitoring with debounced refresh, stale-watch rejection, and full-list reconciliation when events are dropped. Event delivery is only a hint; current directory listings remain authoritative.
-
Live quick filtering, path entry, transactional home/up/back/forward/recent navigation, and error/status text. Failed directory loads do not alter the pane location or history.
-
Versioned JSON workspace persistence for typed pane tabs, per-tab view modes, recent locations, active tab, sort order, hidden-file preference, and window geometry (schema v7). Local and archive locations persist directly; remote locations persist only profile IDs and paths, never credentials, and reconnect when activated. Quitting flushes the current workspace synchronously, and failed saves are logged and shown in the pane status. A saved location that can no longer be listed at launch (deleted folder, unmounted volume, missing archive) falls back to its nearest existing ancestor on the same volume, otherwise Home, and the status names the unavailable location.
-
F5 Copy and F6 Move start in the foreground and show progress. Queue (F2) from that sheet sends the same transfer to the back of the background queue. The transfer finishes its current item before waiting if the background slot is unavailable. Disjoint foreground and background work can run together. When the transfer size is known, progress follows the amount of data processed, even within a single file. The display also shows completed items and actual bytes transferred. If another operation is using the same files or location, the app explains the conflict and offers Queue. Background pane operations and Move to Trash share one FIFO start order. In Window > Show/Hide Operations, Pause, Resume, and Cancel Active apply to the background queue. Select a finished queued transfer to see its per-item results. Conflict sheets appear one at a time, and quitting dismisses prompts and waits for operations to clean up.
-
Right-clicking a row in Full, Brief, or Thumbnails mode opens a context menu. Clicking inside the marked selection keeps it; clicking an unmarked row moves the cursor and selection to that row (the
..row and empty space get the folder menu). Row items are Open, Open With (default application first, then other capable applications and Other… from /Applications), View File, Edit, Quick Look, Copy/Move to Other Pane, Rename, Delete, Compress… (Pack), Copy Path, Reveal in Finder, the macOS Share menu, and New Folder; empty space offers New Folder, Paste Files, Refresh, and Show Hidden Files. Items run the same registry commands as the menus and validate the same way; archive and remote panes hide local-only and capability-unsupported items. -
System Quick Look for selected items (
Spacetoggles the panel; View > Quick Look is also available), Reveal in Finder, Open in Terminal via the native file-URL handoff, and the macOS sharing picker for selected items. -
⌘Fopens a Find Files window. General criteria search include/exclude filename patterns (plain terms without*or?match anywhere in the name), active-pane, selected-directory or local-volume roots, recursive depth, regular-expression names and text content (case, whole words, regex, UTF-8/UTF-16/Latin-1/Windows-1252, including NOT-containing); Advanced adds size/date/age and hidden/symlink/executable/files-only/directories-only filters. Enable Search in archives to apply the same name, size, date, and content criteria to ZIP, TAR, TAR.GZ, 7z, and other supported archive entries; entries up to 16 MiB are eligible for content search, larger entries are counted as skipped, and encrypted/unsupported archives appear in the issue summary. One nested archive level is searched. Archive detection reads a 32 KiB signature range only for files with a recognized archive extension or files at least 32 KiB in size, allowing extensionless archives without scanning small ordinary files. Results stream in batches with Stop, size/date columns, Go to File (including archive-parent navigation), versioned JSON templates and remembered criteria. Indexed Spotlight remains available as a separately labeled, eventually consistent mode. -
Batch Rename (
⌘⇧M) provides a live old/new preview, search/replace with plain or regular-expression patterns,|-separated pairs, first-only/case/extension options, and Name/Extension masks with TC name, range, counter, parent and date/time placeholders. Case modes lowercase all text, uppercase all text, capitalize the first letter and lowercase the rest, or capitalize each word and lowercase its remainder;[F]applies the latter and[O]restores unchanged casing. It supports per-folder counters, pane/name/date/size ordering, editable new-name lists, named presets, remembered last settings, and identity/mtime-checked Undo Last Multi-Rename. Invalid masks/names and volume-aware collisions disable Apply; execution stages siblings for swaps/cycles and reports per-item outcomes with best-effort rollback, not atomic. -
F4defaults to the built-in text editor for selected local files. F4 focuses the existing editor window when the file is already open. The window title shows the file name with a proxy icon and edited dot; the status bar shows line and column, a soft-wrap toggle, line endings (LF/CRLF/CR), the save encoding, and an actions menu with Save, Save As…, Revert to Saved, Go to Line…, Reopen with Encoding, and Include Byte Order Mark. Encoding is detected with the Lister's logic and must decode losslessly; encoding, byte-order mark, and line endings are preserved on save unless changed. A file with mixed line endings shows “Mixed (saves as …)” in the line-ending menu, and its first save asks before converting every line ending to the most frequent kind (or the one chosen from the menu); unchanged mixed endings are not preserved line by line.⌘Ssaves,⇧⌘Ssaves as,⌘F/⌥⌘Fopen the find/replace bar,⌘G/⇧⌘Gfind next/previous,⌘Lgoes to a line,⌘Z/⇧⌘Zundo/redo, and⌘Wcloses. The font is the Lister's monospaced size; wrapping starts from the Lister wrap preference. A failed save never changes the original file. Saving writes a sibling temporary file that receives the original permissions, ACL, extended attributes (including Finder tags and info), file flags, ownership, and creation date, then renames it into place, so the saved file has a new inode; if that metadata cannot be read or applied, the original is left untouched and the error is reported. Hard-linked files, files in unwritable folders, and files whose metadata the volume or user cannot carry over are rewritten in place, keeping their inode: the original bytes are first copied to a backup in the temporary folder, growth is preallocated, the file is shortened only after the new bytes are written, and any failure writes the original back (if even that fails, the backup is kept and its path reported). Read-only files are refused. Changes made by other applications are detected when the window becomes active (offering Reload or Keep Editing) and before saving: after Keep Editing, Save still asks before overwriting the external version. Closing or quitting with unsaved changes asks Save / Cancel / Don’t Save. Files with NUL bytes or bytes that do not decode are refused with View as Hex and Open with Default Application alternatives; files over 32 MiB offer the configured external editor, the Lister, or the default application. F4 never runs or opens a file with its default application implicitly. Archive and remote entries are not editable (F4 reports this, as before). Settings files from before the built-in editor keep their saved editor bundle ID and use the built-in editor by default. -
F3or File > Inspect Selected File… defaults to the read-only Lister for a selected regular file. Text and hex views use bounded random-access paging; images use native image presentation and supported documents/media use Quick Look. The Lister includes Text, Hex, Image, Preview, Web and Markdown modes. Use1–4to select Text, Hex, Image and Preview.Wtoggles wrapping,N/Pchanges sibling files,⌘For Total CommanderF7opens Find,⌘G/F3finds next,⇧⌘G/Shift+F3finds previous, and⌘Lgoes to a text line or a decimal/0xbyte offset in Hex. Find supports case-sensitive, whole-word, regular-expression (Text), and byte-pattern (Hex) modes, streaming search with wrap-around, visible progress, and Escape cancellation. Search results select and scroll to their match.⌘Rreloads;⌘+/⌘-adjusts font size and⌘0resets it. Wrap and font size persist in application settings. Auto, UTF-8, UTF-16 LE/BE, ISO Latin-1, Windows-1250/1252, and MacRoman are selectable. SHA-256 remains explicit: Compute and Verify show the lowercase digest, bytes read, and expected-hex validation. Verified Apple Silicon benchmarks scan 1 GiB at 4,361 MB/s (ASCII) / 3,231 MB/s (whole-word) and index 2M lines at 9,419 MB/s (see dev-docs/performance-results.md). -
In Settings > Viewer, Editor & Terminal, choose a default viewer for F3 and a default editor for F4 and Shift+F4. File Extension Overrides match without regard to case. The pickers list installed apps and also accept an application bundle or a bundle ID. If the Lister cannot display a file or an external viewer fails to launch, WS Commander tries the chosen viewer fallback app. The final Lister view uses your selected Text, Hex, or Automatic setting. Apple Preview is tried when macOS lists it as a handler for that file type. An unavailable external editor falls back to the built-in editor or the selected read-only mode. Use Text or Hex as a read-only fallback when the built-in editor cannot read a file as text. F3 views archive and remote files through the Lister. Markdown opens as formatted text in the Lister. In the editor, the Preview checkbox shows a live view alongside your source.
-
Files, Commands, and Mark menus expose local-only utility dialogs for split/combine, MD5/SHA checksum creation and verification (CRC-32 SFV, MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, and BLAKE3), text/binary comparison (
⌘⌥D), recursive directory synchronization with a reviewable plan and category filters, duplicate search with Reveal, Select in Pane and confirmed move-to-Trash, Smart App Uninstaller (Commands > Uninstall Application…and.appbundle right-click menu), Safe Cleaner & Project Purge… (Commands > Safe Cleaner & Project Purge…for dev/system caches, project build artifacts, old installers, and persistent JSON whitelist, all routed through WS Commander's Trash queue), tri-state permissions/hidden/locked attributes (⌘⌥A), symbolic/hard links, Base64/UUE/XXE encoding and decoding, clipboard name/path/detail export, and selection save/load/restore. Menu validation disables utilities on archive and remote panes (except Smart App Uninstaller and Safe Cleaner, which work from any pane). Long file operations run off the main thread with cancellation and surfaced outcomes; load/restore apply exact filename matches through typed pane selection and report missing names. -
Checksum files use standard
hash namelines. SHA3-256, SHA3-512 and BLAKE3 use.sha3-256,.sha3-512and.blake3extensions; digest length alone cannot distinguish SHA-256 from SHA3-256 or BLAKE3, nor SHA-512 from SHA3-512, so verification selects the algorithm from the checksum-file extension. XXE usesbegin 644 nameheaders andendframing. -
Directory Hotlist (
Ctrl+D) saves named local directories in grouped menus; Configure supports add, rename, remove, drag reorder, groups, and numbered shortcut indices. The same hotlist is available from Commands; Add Current Directory is offered only when the active pane is local. -
View > Toggle Directory Tree (
Ctrl+F8) attaches a synchronized sidebar with a divider and remembered width; it auto-collapses below 900 pt window width and returns when the window is widened. View > Choose Directory from Tree… (⌥F10) opens the tree chooser sheet. Both reveal and select directories through typed pane navigation. -
A full-width command line sits beneath both panes and above the F-key bar; its prompt tracks the active pane path and truncates long paths from the head. Local
cd, existing-item open, bounded asynchronous shell output in a hidden-until-used resizable drawer (Ctrl+O), Stop, and Run in Terminal are supported. Archive and remote panes retain typedcdnavigation and clearly disable shell execution.Ctrl+Returninserts the current local filename;Ctrl+Shift+Returninserts its full path;Escreturns focus from the command line to the active pane. -
The compact, configurable SF Symbols button bar sits beneath the toolbar, spans the window, and includes an Edit buttons… affordance. An empty bar stays hidden unless explicitly enabled; visibility is persisted. User-command buttons support shell, open-application, and internal actions, use local active/other-pane paths and safely shell-quoted
%substitutions, and provide an editor for add/edit/remove/reorder. Archive/remote contexts do not expand pane parameters. -
Privacy-conscious signpost intervals around listings, file operations, batch rename, and both search modes; intervals contain no paths. Progress callbacks are coalesced before reaching the UI.
-
Recursive copy preserves symlinks without traversing them. The streaming fallback copies bytes and uses public Darwin
COPYFILE_METADATAsupport for stat, ACL, and extended-attribute metadata; fixture tests verify file and directory xattrs plus file permissions/modification time. Same-volume moves use exclusive atomic rename; cross-volume moves copy first and remove the source only after a successful copy. APFS clone attempts fall back to streaming copy. -
Commander shortcuts when a file table has focus:
Tabswitches panes; File > New Tab (⌘T), Close Tab (⌘⌥W), and Navigate > Next/Previous Tab (⌘⌥→/⌘⌥←) operate on the active pane without changing the existing⌘WClose Window command.Returnopens local folders/default apps or enters ZIP archives and their directories; archive..exits to its containing local folder.Spacepreviews local files or computes directory size,Insertmarks and advances,⌘Aselects all,⌘=/ keypad+selects a wildcard group,⌘-/ keypad-unselects a wildcard group, and keypad*inverts selection.F3inspects one selected file,F4edits a local file,⇧F4creates a text file and edits it,Backspaceor⌘↑goes to parent,⌘Rrefreshes,⌘⇧Mopens Batch Rename,F2renames,F5copies/extracts/transfers,F6moves/transfers (between local panes both first open an editable destination sheet; see below),⇧F6renames in place with the base name selected,F7creates a folder, andF8deletes remote selections or applies the configured local delete behavior (Trash by default; permanent deletion requires confirmation); archive mutations are read-only.⌥F5packs selected local items as ZIP into the other pane and⌥F9unpacks selected ZIPs.⌃F/⌃Nopens remote connection profiles; Disconnect is available from the Commands menu. Swap Panes:⌘U; Target = Source:⌘⌥S. -
Advanced navigation shortcuts:
Ctrl+Dopens the local-directory hotlist;Ctrl+F8toggles the synchronized tree sidebar;Ctrl+Otoggles command output;⌥F10opens the tree chooser sheet;⌘⌥1/⌘⌥2/⌘⌥3select Full / Brief / Thumbnails (Total Commander Ctrl+F2 / Ctrl+F1 / Ctrl+Shift+F1);⌘⌥Btoggles Branch View (TC Ctrl+B);⌘⇧⌥Bstarts selected-directories Branch View;⌘⌥Qtoggles Quick View Pane (TC Ctrl+Q);⌘ReturnorCtrl+Returninserts the selected local filename, andCtrl+Shift+Returninserts its full path, in the command line. -
Built-in actions have stable command IDs across menus, toolbar, F-key bar, keyboard routing, and the command palette. App > Settings… (
⌘,) opens General, Panels, Operations, Viewer/Editor/Terminal, Keyboard, Remote, Automation, and Advanced panes. Configure startup locations, hidden files, quick search, pane fonts/density/date/size/icon/sort behavior and independent left/right column sets, checksum verification, APFS clone use, Trash versus confirmed permanent deletion, viewer and editor routing and the Terminal bundle ID, remote TLS/timeouts, logging, and keyboard presets/shortcuts. Pane display settings apply immediately; copy verification and clone preferences are snapshotted when each operation is enqueued. Navigate > Show Command Palette (⇧⌘P) filters currently available commands and puts recently used commands first. -
Startup-location fields accept local paths,
archive:/path/to/file.zip!/inner/path, orremote:<profile-id>:/path; remote references persist only a profile ID and path, never credentials. -
Between two local panes, F5 and F6 open a destination sheet prefilled with the other pane's folder. Relative paths resolve from the source pane's folder and
~expands to Home. A trailing/or an existing folder receives the items under their own names. For one item, another path supplies its new location and name, including a name in the same folder. Multiple items require an existing folder. Errors stay in the sheet. Return starts the transfer with progress, Queue (F2) submits the edited destination directly to the background queue, and Escape cancels. Return or F2 during input-method composition commits the text first. When Settings > Operations > Confirm copy/move destination is off, or either pane shows an archive or remote location, the transfer starts directly with progress. -
Pane transfers support local file-URL clipboard paste, queued copy/cut/paste and drag/drop; Shift-drag moves, while ordinary cross-pane drag copies. Archive and remote drag-outs use file promises materialized on demand. Mark > Compare Directories (
Shift+F2) marks unique/newer files between local panes, with optional size and content comparisons; Show Only Selected filters the listing until Restore View.Ctrl+↑opens the directory under the cursor (or current directory) in a new tab, withCtrl+Shift+↑targeting the other pane; tabs can be reordered by dragging, double-clicked empty tab-strip space creates one, and middle/Option-click closes a tab. Narrow pane widths hide Attributes, then Ext; windows at or below 760 pt show date-only metadata.
F2 and Shift+F6 edit one selected item’s name with its base name selected. A rename stays in that item’s containing folder, including in Branch View. When you confirm it, it runs outside the transfer list. A rename reports a busy error if an active operation uses the source or destination, or if the remote session is busy. Active transfers reserve their destination directory because they can write staged files and choose alternate names. A transfer that would overlap a rename waits until the rename finishes. The operation.rename automation API method uses the normal queue.
An occupied name opens a conflict sheet. The sheet offers Keep Both (the item gets a free name such as name (2)), Skip, and Cancel. Overwrite is offered only for a file renamed onto a file where the location replaces it in one step: local folders, writable archives (the archive is rewritten to a staged copy), and SFTP servers with the posix-rename@openssh.com extension. It is never offered on FTP or on other SFTP servers, and a folder is never replaced or merged by a rename, whichever side it is on; use F6 to merge folders. The answer holds for the items the sheet showed: if the item being renamed, the item that has the name, or the archive file was replaced or changed while the sheet was open, the rename fails and nothing is replaced.
New Folder (F7, and operation.mkdir in the automation API) onto a name that is already taken, by a file or a folder, reports that the name exists and changes nothing. It never asks and never replaces, also inside an archive.
Cancellation is cooperative. Copying or moving a folder onto an existing folder merges the two: files that exist only in the destination are kept, new entries are added, and only file clashes or file/folder type clashes ask. The conflict sheet shows both sides' size and modification date and offers Overwrite, Skip, Keep Both (writes name (2).ext), Overwrite All Older, and Cancel; “Apply to all remaining conflicts in this operation” turns Overwrite, Skip, or Keep Both into a choice for the rest of that operation only. A file and a folder never replace each other. A merging move removes only the source entries it transferred, so skipped items stay in the source folder; source and destination folders are held open by descriptor, and an entry renamed or replaced while the sheet is open is kept rather than removed. Overwrite re-checks immediately before the swap that the destination is still the item shown in the sheet, unchanged (same file, size, and modification and change times). If it is not, because another file took the name, the file was written to, or only its permissions or a Finder tag changed, nothing is replaced and the sheet opens again for that item, headed “The existing item changed” and showing its current size and date; an earlier “apply to all” answer does not answer it. This also holds for a download from FTP or SFTP and for Pack onto an existing archive, so a file that took the name or was written to during the transfer is never overwritten without a new answer. An item whose destination changes again after each of three such questions fails. Keep Both skips names that the same operation will still write into that folder. Archive and remote destinations keep their existing conflict scope and offer Overwrite, Skip, and Cancel (with apply to all) without Keep Both or size and date details. One kind of server is different: an SFTP server that has neither the posix-rename@openssh.com extension nor a checksum extension cannot replace a file safely, so an upload onto an existing file offers Keep Both (the upload gets a free name such as name (2).ext), Skip, and Cancel there, and no Overwrite; OpenSSH's server has the extension and is not affected. Otherwise extraction from an archive into a local folder merges. Cancel Active dismisses a conflict sheet belonging to the active background operation and cancels that operation. Application termination cancels and dismisses any conflict decision before waiting for queued operations to settle. An incomplete regular-file copy is removed; completed earlier items remain. A cancelled recursive directory copy retains its partially created destination tree and reports the location. A cross-volume move keeps its source until copying has completed; a source-removal failure is reported separately from the completed destination copy. A move from an FTP or SFTP server first renames the remote file to a hidden name of its own (.wscommander-move-…, kept within the 255 bytes a file name may have), downloads it from there, and deletes that name afterwards, so a file someone else puts under the original name during the move is not deleted. Before it deletes, it checks that the file under the hidden name still has the content it downloaded: with a checksum computed by the server where the server offers one, and otherwise by reading the file a second time and comparing it with the local copy. A move from a server without checksum commands, which includes OpenSSH's SFTP server, therefore transfers each file twice. If the content differs or cannot be compared, the file is not deleted and the move reports “… was copied, but its source was kept”. If the move fails or is cancelled the file gets its name back, and if that is not possible the message names the hidden file. A temporary file that a failed transfer could not remove from the destination folder is named, with its full path, in the failure. Temporary files and folders are removed only while they are still the ones the operation created: if another program renamed one away and put something else under its name, that item is left alone and the failure names it. The same holds for what is inside a temporary folder: only what the operation itself put there is copied on, uploaded, or deleted, and anything another program put into the folder stays and is named. On a server that cannot rename the file aside (for example an FTP server without MLST/MLSD), the move copies the file, keeps the source, and says so. Delete-to-Trash uses the macOS Trash and returns the resulting location. Overwrite copies to a hidden sibling and then swaps it into place, so a failed or cancelled overwrite leaves the existing destination intact.
The AppKit UI supports ZIP, plain TAR, TAR.GZ, TAR.XZ, TAR.BZ2, standalone gzip/xz/bzip2 streams, and bsdtar-backed formats when the host reader supports them. Pack/Unpack options run through the queue; creation is runtime-gated for ZIP, TAR, compressed TAR, and 7z. In-place mutation supports ZIP and the TAR family, with Core coverage for ZIP, plain TAR, TAR.GZ, TAR.XZ, and TAR.BZ2. Debug and Release smoke covers ZIP browse/extract/pack/unpack, ZIP F5-add/F8-delete, nested ZIP navigation, and TAR.GZ/CPIO Return/F5 extraction. Core tests also verify 7z selected/all extraction, XAR and ISO9660 extraction, and gzip/xz/bzip2 stream extraction. Non-UTF-8 bsdtar member names display with a Latin-1 fallback; individual extraction is rejected with an explanation, while extract-all works. External definitions provide RAR/RAR5/CAB/LZH and other formats when their tools resolve; real installed-tool behavior is recorded with verification evidence, not assumed. FTP and SFTP profiles support connection, listing, queued upload/download, remote folder creation, rename, delete, and disconnect. A remote rename never replaces an existing entry by itself, and never deletes one to make room. FTP has no rename or upload that refuses an existing name, so WS Commander writes under a name without a decision only after the server has shown that name to be unused with both machine-readable answers: MLST for the exact name answers “no such file” (550), and the folder's MLSD listing is understood completely and does not contain the name, also not in another letter case. LIST output fills the pane but is never proof that a name is unused (its format is not specified, it leaves dot files out, and names with spaces or link targets are ambiguous), and neither is a 550 reply to SIZE. An MLSD reply counts only when every record follows the RFC 3659 grammar; one ls -l line in it makes the listing unfit as proof. Without that proof a rename asks first: a warning says that the server cannot confirm the name is unused and that continuing might replace an existing item, with Continue and Cancel. Nothing answers that warning for you, also not an automation client with every switch on. A name the server does report as taken is the usual conflict (Keep Both, Skip, Cancel; FTP never offers Overwrite for a rename). An upload goes through the conflict sheet (Overwrite, Skip, Cancel) even when the name may be new, so a server without MLST and MLSD asks for every upload and warns for every rename; files copied out of an archive are asked about one by one in the same way. An upload checks the name again after the data has arrived, before the staged file gets its final name; Overwrite replaces only an entry the server reports as a file and never moves a folder aside. A file created on the server between that check and the rename, which are several FTP commands apart, can still be replaced. An upload arrives under a temporary name and is then renamed; what is checked before that rename depends on the server (table below). A file that had to be set aside to be replaced is put back only while the server shows that the temporary name still holds it; otherwise it stays there and the failure names it. If the connection is lost before a rename is answered, the failure says where the file may be. An upload that fails or is stopped deletes its temporary file on the server only after the check in the table. Remote-to-remote operations remain unsupported.
Uploads to FTP and SFTP servers, in the app (F5/F6) and through the automation API alike. A server "has checksums" when it computes a cryptographic checksum of a file (SFTP check-file or md5-hash; FTP HASH, XSHA256, XSHA512, XSHA1, XMD5); OpenSSH's SFTP server and vsftpd have none.
| Server has checksums | Server has none (OpenSSH) | |
|---|---|---|
| Copy to a new name | The temporary file is compared by the server's checksum, then renamed. | Uploaded and renamed without a comparison, at full speed. |
| Copy that replaces a file (Overwrite) | Compared by checksum, then replaced. | SFTP with posix-rename@openssh.com (OpenSSH has it): the temporary file is read back and compared, then replaced in one step. SFTP without it: no Overwrite; the sheet offers Keep Both, Skip, and Cancel. FTP: read back and compared, then replaced. |
| Move (F6) | The source is removed after the server's checksum of the uploaded file matched it. | The move only copies. The file is uploaded, the source is kept, and the result says “… was copied; its source was kept because the server cannot verify the upload.” Delete the source yourself once you have checked the upload. |
| Cancelled or failed upload | Its temporary file is deleted after the server's checksum matched, also when the upload was interrupted. | Its temporary file is read back and compared, then deleted. |
Reading a file back transfers it a second time; that now happens only when a file is replaced, or an upload is cleaned up, on a server without checksums. Such a server leaves this open, which was accepted: another client of the server that swaps the hidden temporary file while it is read back has its file put in the place of the file you replace, or deleted by the cleanup; and one that puts its own file under the temporary name of an upload to a new name has that file published under the new name. Nothing of yours is deleted on that: a move keeps its source there. The smoke uses an injected in-process SFTP transport backed by /usr/libexec/sftp-server; it does not establish behavior against arbitrary external servers. FTP/TLS behavior and live server interoperability remain unobserved. In-process plug-ins remain out of scope; extension routes are documented below.
Archive format matrix and external definitions
| Backend | Formats | Availability and observed behavior |
|---|---|---|
| Native ZIP/TAR readers | ZIP, plain TAR | Built in; browse and safely extract. ZIP and TAR support staged in-place mutation. |
| System bsdtar | TAR.GZ, TAR.XZ, TAR.BZ2, CPIO, AR, XAR, ISO9660, 7z and other supported formats | Verified on this host: TAR.GZ/TAR.XZ/TAR.BZ2, CPIO, AR, XAR, ISO9660, and 7z listing/extraction. In-place mutation is available only for the writable TAR family. Other formats depend on the /usr/bin/tar build. |
| External definitions | RAR, CAB, LZH/LHA, ARJ, ACE, SIT/SITX, 7z and formats supplied by user definitions | The Unarchiver CLI, unrar, 7zz or 7z is used only when the executable resolves from an absolute path or /opt/homebrew/bin, /usr/local/bin, /usr/bin. Definitions with both add and delete templates may mutate; otherwise they are read-only. |
| Compression streams | standalone gzip, xz, and bzip2 | Single-entry virtual files; extraction is supported. |
Native ZIP/TAR and bsdtar are selected before a matching external definition. External extraction runs out of process into a private directory. Absolute/traversal paths, symlinks, and requested entries missing from the staged output are rejected before staged output is committed. Tool failures include bounded stderr; missing tools produce an installation hint. Built-in definitions are tested against recorded lsar -j, unrar lt, and 7zz l -slt output formats using fake executables that validate the expected argv behavior; the external tools themselves are not installed on this host.
The Debug and Release home-safety AppKit smokes use a fake definition through ExternalArchiverStore, open its archive in a pane, enter a nested folder, copy one entry to the other pane and verify its bytes, then confirm that deleting the read-only entry is rejected.
User definitions are stored in ~/Library/Application Support/Wscommander/archivers.json as a versioned JSON document; restart WS Commander after editing this file to reload definitions. They replace built-ins with the same id; an invalid definition is skipped and reported with its id and validation reason. Corrupt documents are preserved as backups. Definitions contain argument arrays, not shell commands. Each template item becomes one argv element; {entries} expands to separate elements, and other tokens are replaced once from the template without rescanning substituted path values. Recognized tokens are {archive}, {destination}, {sourceDirectory}, and {password}. Put -- before filenames for tools that support it. Executables are never resolved through the shell or inherited PATH.
Example definition:
{
"schemaVersion": 1,
"definitions": [
{
"schemaVersion": 1,
"id": "my-archive-tool",
"displayName": "My Archive Tool",
"extensions": ["arc", "multi.part.arc"],
"magic": { "offset": 0, "hexBytes": "41524331" },
"executable": "/opt/homebrew/bin/my-archiver",
"templates": {
"list": ["list", "--json", "{archive}"],
"extractAll": ["extract", "--output", "{destination}", "{archive}"],
"extractEntries": ["extract", "--output", "{destination}", "{archive}", "--", "{entries}"],
"test": ["test", "{archive}"],
"add": ["add", "{archive}", "{entries}"],
"delete": ["delete", "{archive}", "{entries}"]
},
"password": ["--password", "{password}"],
"listParser": { "kind": "lsarJSON" }
}
]
}
listParser supports The Unarchiver's lsar -j JSON, line-oriented regex with named groups, and structured unrarTechnical/sevenZipTechnical records. The built-in parsers expose paths, file sizes, modified dates, directories, encryption and supported symlink metadata. The optional password template describes a tool's argv password flag, but WS Commander has no interactive external-password provider yet; encrypted entries fail closed. Do not store fixed secrets in definitions. If a future caller passes a password to a tool that requires argv, the operating system may expose it to same-user process inspection; WS Commander never logs password values.
Viewer extensions use Quick Look (already used by Lister and Thumbnails); content extensions are planned as Spotlight-attribute columns. Filesystem plug-ins are not loaded in-process; use mounted volumes or File Provider.
SFTP supports SSH key/agent authentication and password authentication. Passwords are held in the Keychain only when “Remember password in Keychain” is selected; otherwise a one-shot same-user Unix-domain socket transports them from the app's SSH_ASKPASS helper to OpenSSH without putting them in arguments, environment variables, logs, or files. The app executable detects askpass mode before starting NSApplication. SFTP always uses StrictHostKeyChecking=yes with the user's ~/.ssh/known_hosts; an unknown host key is scanned and its SHA256 fingerprint is shown for explicit Trust and Connect / Cancel confirmation before a non-overwriting append. Changed host keys are refused and must be investigated manually. A first connection requires checking the displayed fingerprint against a trusted source.
Accessibility
Secondary windows expose localized labels for controls and result tables, logical key-view loops, and announcements for meaningful search, rename-preview, and command-operation results. In the main workspace, pane tables identify their side and location, the active pane is announced on switches, rows expose name/kind/marked state alongside size/date cells, and tabs expose selection state. The function-key bar, toolbar, volume selector, command line, and operations panel expose accessibility labels/help. Tab switches panes; Control-L focuses the command line, Control-Shift-T focuses the active pane's tab strip, and Command-Shift-O opens the operations panel. Marking, pane-location, and operation transitions are announced. No live VoiceOver session or manual VoiceOver workflow has been observed.
Build
Requires Xcode with the macOS SDK. From the repository root:
xcodebuild build \
-project Wscommander.xcodeproj \
-scheme Wscommander \
-configuration Debug \
-destination 'platform=macOS' \
-derivedDataPath build/DerivedData \
CODE_SIGNING_ALLOWED=NO
Building a release
./Scripts/build-release.sh builds the universal Release WS Commander.app into build/DerivedData/Build/Products/Release/ and signs it with an installed Apple Development or Developer ID Application identity (see below). The first numbered release displays 1.0.1 in the app and wsc --version. Each successful run increments the last number by one. The internal CFBundleVersion starts at 2 because 1.0.0 used build 1. The About panel copyright is NSHumanReadableCopyright in Sources/WscommanderApp/Info.plist, translated in InfoPlist.xcstrings.
Use the central Mac release checkout for distribution. The script keeps the last successful CFBundleVersion in wscommander-release-build-number in the Git common directory (git rev-parse --git-common-dir), shared by that checkout and its linked worktrees. Calls sharing the counter wait for each other, and the script updates it atomically after a successful build and version check. A failed build or version check leaves the number available for the next run. Each worktree reuses its own app output path. Keep the counter when moving the release checkout so that numbering continues. Direct Xcode builds and tests use the project defaults and leave the counter alone.
To test release numbering in a QA worktree, point WSCOMMANDER_RELEASE_COUNTER_FILE at a fresh file path in an existing directory and use the same path for each build. This keeps the production counter available for distribution.
Release signing enables Hardened Runtime. Developer ID builds also receive an Apple secure timestamp for notarization.
Run swift Scripts/generate-app-icon.swift to regenerate the brushed-metal app icon in Sources/WscommanderApp/Assets.xcassets/AppIcon.appiconset. Edit the generator and commit the regenerated PNGs.
The generator also accepts an output directory and a finish (glass-white, glass-dark, glass-red, or glass-blue). For example, swift Scripts/generate-app-icon.swift build/GlassBlue.appiconset glass-blue exports the blue glass icon.
Stable local signing and file access
macOS associates Files & Folders privacy grants with an app's code signature. A stable signature keeps grants across rebuilds; an ad-hoc build loses them on every rebuild.
Run the Release build helper from the repository root:
./Scripts/build-release.sh
The script prefers an installed Apple Development identity, then a Developer ID Application identity, and accepts --identity "<full identity name>" to choose a specific installed identity. It prints the app path and designated code requirement. If no supported signing identity is available, it warns that the ad-hoc build will lose Files & Folders grants on each rebuild.
For access to protected folders without per-folder prompts, grant WS Commander Full Disk Access once in System Settings → Privacy & Security → Full Disk Access. The app declares localized usage descriptions for Desktop, Documents, Downloads, network volumes, and removable volumes.
Appearance
Choose a workspace theme in View > Theme or Settings > Panels. The default WS Commander (System) follows the system appearance. WS Commander Light and WS Commander Dark let you set it explicitly. macOS and Glass also offer System, Light and Dark appearances. Glass uses AppKit's glass material on macOS 26 and later, with interactive glass on macOS 27 and a system material on older versions. Commander Classic, Nord, Dracula and Solarized Light color the file panes and workspace.
To create a named preset, use Settings > Panels > New Theme… and choose a base. Set the font and size, then inherit or override the workspace, panel background, alternate row, text and accent colors. Saved themes appear in View > Theme and Settings > Panels, where you can edit or remove them.
Direct Copy between mounted SMB shares
Use Direct Copy (SMB) when the Mac hosting the source share already has the destination share mounted. F5 copies selected files and folders from that Mac's local folder to its destination SMB mount. SSH carries the worker, control messages, metadata fingerprints, and progress. File contents travel directly from the source Mac to the destination SMB server.
-
Use a trusted, noninteractive SSH alias for the source Mac. Its host key must already be known, and both SMB shares must already be mounted in WS Commander. The source Mac needs a local directory that corresponds to the root of the source share and its own mount of the destination share.
-
Save a route JSON file on the Mac running WS Commander, for example at
~/Library/Application Support/Wscommander/direct-copy.json. Use the mount paths and the server and share names reported by/sbin/mount -t smbfson each Mac. Omit anyaccount@prefix. The two destination mounts can report different spellings of the same server.{ "schemaVersion": 1, "sshAlias": "source-mac", "sourceMount": "/Volumes/Downloads", "sourceShare": "//source-mac.local/Downloads", "destinationMount": "/Volumes/Media", "destinationShare": "//nas.local/Media", "sourceMacFolder": "/Users/example/Downloads", "sourceMacDestinationMount": "/Volumes/Media", "sourceMacDestinationShare": "//nas._smb._tcp.local/Media" } -
Show the button bar from View > Show User Command Bar, then choose Edit buttons… > Add. Choose the Direct Copy (SMB) action, enter the route JSON file path, and save the button. A previously configured Direct Copy button also enables F5 on its route.
-
Open source and destination folders in opposite panes, select files or folders directly inside the source pane folder, and press F5. The transfer uses Direct Copy when the source and resolved destination match the configured route. The button starts the same operation using the opposite pane. Either pane may show a subfolder of its configured mount.
Direct Copy uses the transfer sheet and Operations window. Queue (F2) in the destination sheet submits it to the background queue. F2 from the progress sheet hands off an active copy, and a queued pause takes effect between top-level selected items. The progress display includes bytes written as the source Mac copies each item.
Confirm that sourceMacFolder exports the configured source share and that the two destination share addresses refer to the same SMB share. Both Macs verify the configured mounts. The source Mac compares the selected names, types, file sizes, and whole-second modification times with the mounted selection, including entries inside folders. A matched route reports a failed connection or validation without relaying file contents. An unreadable or invalid route can block F5 between SMB locations until the configuration can be checked. F5 uses the regular copy when it can rule out a configured route for the selected paths. When Verify copied files with SHA-256 is enabled, the source Mac checks the bytes written by reading the copy back from its NAS mount.
Choose an existing destination folder. Direct Copy keeps names and includes nested and empty folders. It refuses symbolic links and special files. It copies file contents with the destination's default permissions. An existing destination name causes that copy to fail. A newly created folder must still be empty when the worker opens it. During the interval between SMB folder creation and that first observation, another client can substitute an empty folder that the worker cannot distinguish from the one it created. If a transfer stops or fails, completed items remain and the current file or folder can be incomplete. Check the destination before retrying.
The bundled helper accepts --verify-sha256 immediately before the route JSON path. Run /usr/bin/perl Tests/wsc/test-direct-copy.pl for the route, copy, and cancellation fixtures. The fixtures use temporary directories and open no SSH connections.
Physical function keys
When the top row controls media, hold Fn or Globe to send F1–F12 to WS Commander. The physical keyboard mode is a system setting under System Settings > Keyboard > Keyboard Shortcuts > Function Keys. Apple's function-key guide
For bare F-keys only in WS Commander while the system is set to media keys, a keyboard remapper can target the frontmost bundle io.wsagency.Wscommander. In Karabiner-Elements, scope the rule to that bundle and send the corresponding fn + F-key. Karabiner function keys · Application condition
Languages
WS Commander ships in English and Croatian. macOS follows the system language by default; to choose a language for WS Commander only, open System Settings → General → Language & Region → Applications, add WS Commander, and select English or Croatian. For a one-off Croatian launch from Terminal, use:
open -na "build/DerivedData/Build/Products/Debug/WS Commander.app" --args -AppleLanguages '(hr)' -AppleLocale hr_HR
Strings not yet localized fall back to English.
Run
After building:
open "build/DerivedData/Build/Products/Debug/WS Commander.app"
The unhosted core suite exercises typed local/archive/remote navigation and v1–v6 workspace persistence, provider listings and capabilities, archive extraction, SFTP-backed queued transfers and remote mutations, queued ZIP creation with byte progress, pause/resume, cancellation cleanup, folder merges and per-file conflict decisions, fixture file operations, search, batch rename, Inspector/checksum, and watcher behavior. It also covers sorting/filtering, workspace migrations, cancellation/rollback, paged text/hex reads, encoding detection, cross-page searches, line offsets, sparse-file random access, SHA-256 vectors, FIFO queue aggregation/pause/resume/cancellation, and a bounded real-filesystem FSEvents notification. Spotlight queries are intentionally not tested against temporary directories because their indexing is eventually consistent. Build and run the suite directly:
xcodebuild build-for-testing \
-project Wscommander.xcodeproj \
-scheme Wscommander \
-destination 'platform=macOS' \
-derivedDataPath build/DerivedData \
-only-testing:WscommanderCoreTests \
CODE_SIGNING_ALLOWED=NO
xcrun xctest build/DerivedData/Build/Products/Debug/WscommanderCoreTests.xctest
Core tests also cover column availability, legacy column defaults, typed layout keys and default inheritance after reset, sort-column direction, metadata-cache identity/LRU/invalidation, stale/offscreen metadata publication rejection, ubiquitous-status mapping, and whether a transfer source requires coordination.
The unhosted AppKit smoke target compiles production AppKit sources, launches AppDelegate under an owner-only smoke home, and exercises stale-listing errors, real-pane navigation/tabs, queued operations, conflicts/cancellation, Quick Look, direct and Indexed search, batch preview, Inspector, FSEvents, archive/remote workflows, ZIP browse/extract/pack/unpack with unzip -t validation and partial-Pack cleanup, Return/F5 TAR.GZ and CPIO navigation/extraction with byte checks, F5 add/F8 delete in a writable ZIP, nested ZIP navigation, FTP dialog validation, injected local SFTP transfers, and utility actions. It also covers hotlist add/persist/navigate, tree reveal/select and chooser, command-line cd/shell output/Terminal handoff and filename insertion, and a hostile %N user command that must not execute injected shell syntax. Window smoke asserts full-width F-key layout with the tree open/closed and the bar at the window bottom, hidden-idle/visible-on-command output with pane/drawer sizing, tree-width persistence, Tab focus routing and Escape focus return. Throwaway light/dark visual-review previews are produced separately and are not written by routine smoke runs.
Debug and Release home-safety smokes cover rich pane columns, Created/Kind/Permissions/Finder Tags/Dimensions cell values, Kind and Dimensions sorting, column reorder persistence across navigation reload, archive hiding of unsupported columns, and disabled iCloud download commands for ordinary local files. They also cover parent navigation, Insert/Select Group, F7, volume navigation, Swap Panes, paused transfers, utility engine round trips, menu-driven split/combine, checksums, comparison, sync, duplicate selection, metadata, links, encodings, clipboard export, and selection restore. Real iCloud/File Provider behavior is not testable in this environment; menu validation remains checked for local, archive, and remote locations. The --phase transfer-destination smoke enables the F5/F6 destination sheet and checks a same-folder F5 copy under a new name, in-sheet errors for an overlong name and a missing folder, Escape cancelling without changes, Return during an input-method composition committing it without confirming, a Shift+F6 rename with the base name selected and confirmed by Return, a rename onto an existing name that asks first and keeps both files on Skip, an F2 rename of a folder onto an existing folder that offers no Overwrite and keeps the folders apart, and an F6 move into the other pane under a new name; the other smoke flows run with the sheet turned off.
The --phase interactive-rename AppKit smoke drives F2 and Shift+F6 in both keyboard presets, including Fn-marked events and Brief View. It checks same-folder Branch View rename, rejected path inputs, a changed source, a read-only folder, a paused transfer, and a download held at a real SFTP READ over local pipes. An in-process FTP stub checks occupied and unconfirmed names and selection in the originating pane. The local fixture exercises the provider used for mounted SMB shares. No SMB volume is mounted during the smoke.
The --phase text-editor smoke lane opens a CRLF Windows-1252 fixture with F4, types through the application's event routing (F8 and Space must not reach pane commands; ⌘Z undoes), saves with ⌘S and checks the bytes and file mode on disk, then covers F4 focusing an open file, external-change Reload, Keep Editing followed by ⌘S (Cancel keeps the external bytes; Overwrite saves), Edit-menu Select All acting on the key editor with pane fallback, the dirty-close and quit prompts, the mixed line-ending confirmation, Makefile/.command files opening without execution, Save As re-keying an editor to its new path and refusing a file already open in another editor window (quit still stops for the other, dirty editor), the binary-file sheet, and Shift+F4. The smoke app is not frontmost, so editor shortcuts are routed by the editor's local key monitor rather than AppKit's key-window path.
xcodebuild build \
-project Wscommander.xcodeproj \
-scheme WscommanderAppSmoke \
-destination 'platform=macOS' \
-derivedDataPath build/DerivedData \
CODE_SIGNING_ALLOWED=NO
build/DerivedData/Build/Products/Debug/WscommanderAppSmoke
Tests/WscommanderAppSmoke/verify-home-safety.sh \
build/DerivedData/Build/Products/Debug/WscommanderAppSmoke
The smoke creates and removes its own unique home when launched directly. verify-home-safety.sh pre-creates and owns a separate /Users/Shared/wscommander-smoke.* home, launches the smoke with an ordinary fake HOME, and traps exit, hangup, interrupt, and termination to stop the child and remove only that run's home. It also checks that the ordinary HOME marker and existing workspace file remain untouched and that no fixtures were written there. Pass either Debug or Release smoke binary to this regression script. Add --phase pane-columns to exercise AppKit header drags, column toggles, responsive hiding, cross-pane propagation, selection, default inheritance, and restoring the saved layout in a fresh pane.
The shared scheme also contains a host XCUITest configured to exercise Tab pane switching and path navigation. It was not run for the AppKit smoke integration; the unhosted smoke target avoids Accessibility permission and UI-test hosting requirements. If needed on a macOS host where Xcode UI automation is enabled, the XCTest target can be run separately:
xcodebuild test \
-project Wscommander.xcodeproj \
-scheme Wscommander \
-destination 'platform=macOS' \
-derivedDataPath build/DerivedData \
-only-testing:WscommanderUITests \
CODE_SIGNING_ALLOWED=YES \
CODE_SIGN_IDENTITY=-
Workspace settings are stored at ~/Library/Application Support/Wscommander/workspace.json.
The app is named WS Commander, but its bundle identifier (io.wsagency.Wscommander), the wscommander:// URL scheme, the executable inside the bundle, and the data folders below keep the Wscommander spelling, so settings and integrations from earlier builds carry over.
The hotlist and user-command JSON stores are ~/Library/Application Support/Wscommander/hotlist.json and ~/Library/Application Support/Wscommander/usercommands.json; the app injects their locations so tests can isolate persistence.
Application preferences for startup behavior, pane presentation, Full-view column layouts, operations, external applications, remote defaults, logging, keyboard presets and per-command bindings are stored in versioned JSON at ~/Library/Application Support/Wscommander/settings.json. Older settings retain their saved left and right column choices as fallback layouts. When those choices are absent, both panes start with Name, Ext, Size, Modified, and Attributes. Malformed and unsupported-version documents are preserved as uniquely named backups and reported during launch; tests inject isolated store URLs.
Successful batch renames persist the last undo log at ~/Library/Application Support/Wscommander/rename-undo/last.json; the undo store accepts an injected directory URL for isolated use.
Rename presets and remembered rules use versioned JSON at ~/Library/Application Support/Wscommander/rename-presets.json and rename-settings.json; both Core stores accept injected file URLs.
Credential-free recent network servers use versioned JSON at ~/Library/Application Support/Wscommander/recent-network-servers.json; the app injects the file URL so smoke runs use their isolated HOME.
Finder, Dock, command-line, and URL integration
WS Commander accepts folders and files opened from Finder or dropped onto the Dock icon. Use open -a "WS Commander" /path/to/folder from Terminal to open a folder in the active pane; a file is revealed and selected. Multiple selected locations are routed to the active pane and then the other pane.
The registered wscommander URL scheme accepts wscommander://open?path=<percent-encoded-absolute-path>&pane=active|left|right&tab=new and wscommander://reveal?path=<percent-encoded-absolute-path>. The pane and tab parameters are optional for open; pane defaults to active, and tab=new opens the folder in a new tab (for a file, a new tab at its folder with the file selected). tab=new is accepted but ignored for reveal. Only absolute local file paths and these two actions are accepted.
Finder Services are declared for Open in WS Commander and Reveal in WS Commander for files and folders. The smoke exercises the services-provider callbacks and bundle declarations, but Finder's actual Services-menu appearance and Dock drops are not observed.
wsc terminal launcher
The app bundle contains a wsc command at WS Commander.app/Contents/Resources/bin/wsc. It needs only the tools of a stock macOS install. Link it into a folder on your PATH:
ln -s "/Applications/WS Commander.app/Contents/Resources/bin/wsc" /usr/local/bin/wsc
# or, without administrator rights:
mkdir -p ~/.local/bin && ln -s "/Applications/WS Commander.app/Contents/Resources/bin/wsc" ~/.local/bin/wsc
# ~/.local/bin is not on the default zsh PATH; add it once:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
Adjust the path if the app is installed elsewhere, and re-create the link if you move it. The launcher addresses the app by its bundle identifier (io.wsagency.Wscommander), so a renamed copy still works. If several copies are installed, macOS chooses which one opens.
wsc # open the current folder in the active pane (launches and activates the app)
wsc DIR # open DIR in the active pane
wsc DIR1 DIR2 # open DIR1 in the left pane and DIR2 in the right pane
wsc -t DIR # open DIR in a new tab of the active pane (with two paths: a new tab in each pane)
wsc FILE # open the file's folder with the file selected
wsc --help # show usage
wsc --version # show the version
wsc mcp # run the MCP server for AI agents (see Automation API and MCP server)
wsc guard print <claude-hook|claude-settings|codex|prompt>
# output AI agent guardrails that enforce WS Commander MCP
wsc guard install <claude-code|codex> [--dry-run]
# install Claude Code PreToolUse hook / settings or Codex execpolicy rules
mcp and guard are reserved as the first argument; open folders with those names as wsc ./mcp and wsc ./guard.
Relative paths, a leading ~ (also when quoted), and names with spaces, non-ASCII letters, or % # ? & + are passed to the app exactly. Use -- before a name that starts with -, and ./~ for a file literally named ~. A missing or empty path is reported on stderr with exit status 1, and nothing is opened. A path containing .. is resolved physically, so link/../item means the item next to the link's target. Run Tests/wsc/test-wsc.sh, Tests/wsc/test-wsc-mcp.sh, and Tests/wsc/test-wsc-guard.sh to check launcher URLs, MCP helper lookup, and wsc guard against stubs and isolated fixtures. Pass "build/DerivedData/Build/Products/Debug/WS Commander.app/Contents/Resources/bin/wsc" to check a built copy.
Automation API and MCP server
WS Commander can be driven by scripts and AI agents through a local automation API, and ships an MCP server for it. The API is off by default. The design is in ADR 0007 and the method reference in dev-docs/automation-api.md.
Turn it on in Settings > Automation:
- Enable local automation API (read and navigate) starts a private Unix socket at
~/Library/Application Support/Wscommander/ipc/api.sock(owner-only; connections from other users are closed; nothing listens on the network). Clients can read pane state, list folders, archives and connected remotes, read file info and bounded text, search, compute checksums, preview directory comparisons, and navigate panes, tabs and selection. - Allow file changes additionally lets clients queue copy, move, rename, new folder, pack, extract, Trash and delete, and control the queue. Every operation runs through the normal operation queue: it has a row in the Operations window and can be paused or cancelled there.
- Allow destructive operations without confirmation removes the confirmation step. Without it, Trash and delete always show WS Commander's confirmation sheet naming the requesting client, an existing destination opens the usual conflict sheet (or is skipped or kept as
name (2)when the client asks for that), and a request to overwrite is refused. A rename onto a name that is already taken is such a conflict too, also on FTP and SFTP.
/, top-level folders, volume roots, the home folder and the folders that contain it cannot be moved, renamed, trashed or deleted through the API, whatever the switches say and whatever path is used to name them. The path is checked again immediately before each step that renames, moves away, or removes it, also after a conflict sheet was open; a folder that a merging move or a recursive removal (the end of a move, a delete) holds open is checked where it is at that moment, before each entry is taken out of it, not only by the path it had. This protection applies to API requests only: the same operations started by you in the app (F6, F8, …) are not checked against it.
A request that changes files is checked again in the moment WS Commander queues it or runs its command. If its client has disconnected, the request was cancelled, or a switch it needs was turned off in the meantime (also while a Trash or delete confirmation was open), nothing is queued and no command runs. An operation that is already in the Operations window and has not started is withdrawn (it ends as cancelled) when you turn off the API, "Allow file changes", or, if it relied on it, "Allow destructive operations without confirmation"; turning the switch on again does not bring it back. An operation that is already running is not cancelled, but it does not keep what was turned off, and it asks again after every wait, right before the change that follows. With "Allow file changes" or the API off, it stops before its next file, overwrite, or removal, keeps the source of a move, and reports “Stopped: permission revoked” for what it did not do. A local copy finishes the file it is writing; a download, an upload, or an archive that was still under its temporary name is not put in place and the temporary file is removed. With only "Allow destructive operations without confirmation" off, it goes on, but an overwrite request no longer overwrites by itself, and neither does an "Overwrite All" you gave while the switch was on: the next conflict opens the conflict sheet, also for the file that was in transit, and an unconfirmed Trash or delete stops before its next removal. Turning the switch on again does not restore this for an operation that is running. Disconnecting a client does not withdraw what it queued. A client can pause, resume, cancel, and remove only operations that were queued through the API; the operations you started are listed for it and are yours to control. After Disconnect Remote, an operation a client queued for that server does not reconnect: it fails with “Remote location disconnected.” That holds until your Connect has got in: while it is still connecting, and after it failed, the server counts as disconnected.
A client has the file access WS Commander has, including Full Disk Access if you granted it. While a client is connected, the main window's subtitle names it. Settings > Automation lists the connected clients and the recent API calls; the full log is ~/Library/Application Support/Wscommander/automation-audit.jsonl. Remote passwords and Keychain items are never returned, and the API never opens files in other applications or runs shell commands.
A client can also invoke a built-in command by its id (run_command), but only a command that cannot change files: navigation, view, selection, tab, sorting, and window commands. It cannot open Quick Look or the Quick View pane, or switch the Lister to Web or Preview mode: those show a file with WebKit or Quick Look, which fetch what the file refers to from the network. A Quick View pane you opened does not follow a cursor a client moved: it shows “Preview paused: an automation client changed the cursor or the selection. Move the cursor to preview again.” until you move the cursor yourself. A client can move the Lister to the next or previous file and reload it; the Lister then shows that file itself, an HTML file as its source, until you choose Web or Preview or move to a file yourself. Everything that creates, changes, moves, renames, links, trashes, or deletes is refused there whatever the switches say, which includes Copy and Move to Other Pane, Change Attributes, the link commands, Synchronize Directories, Find Duplicate Files, the checksum commands, Save Selection, the clipboard commands, Split, Combine, Encode, Decode, and Batch Rename with its undo. File changes go through the dedicated tools (copy, move, rename, create_directory, pack, extract, trash, delete), which are the ones that stop when you turn a switch off. The allow-list is in dev-docs/automation-api.md.
Through the API, archives are handled only by WS Commander's own code: ZIP and TAR can be extracted and changed, a compressed TAR (.tar.gz, .tar.xz, .tar.bz2) and a gzip, xz, or bzip2 stream can be extracted, and Pack creates ZIP, TAR, compressed TAR, and 7z. A client cannot extract 7z, RAR, ISO, CAB, LZH, XAR, AR, or CPIO archives, a TAR with names that are not UTF-8, or a format of an external archiver, and cannot change a compressed TAR: those need bsdtar or an external archiver to write files by path, which WS Commander does not do for a client. An archive can expand to any size, so what clients extract is limited, for ZIP, TAR, compressed TAR, and gzip, xz, and bzip2 streams: all their operations together hold at most 8 GiB of extracted data at a time and leave 1 GiB free on the volume they write to; a compressed TAR counts twice while it is extracted (its decompressed archive and its entries), so it needs room for its data twice. An archive beyond that fails with “… the archive expands beyond the allowed size”, and you can extract it in the app. They work as before when you use them in the app; what that leaves open there is described in ADR 0007 under "UI-only, not covered by the automation guarantees".
If a staged file must be copied into place while extracting through the API, WS Commander checks the space on the destination volume and counts the copy while it is being written. Files already delivered remain if a later copy cannot fit.
MCP clients
The MCP client starts wsc mcp over stdio. The bundled helper connects to WS Commander over its private Unix socket, so the client and the running app share the same Mac and macOS user account. Enable the local API in Settings > Automation before calling tools. The bridge supports MCP revision 2026-07-28 and the earlier initialize-based revisions back to 2024-11-05.
Use View MCP Configuration… in Settings > Automation to preview JSON or Codex TOML. Copy copies the displayed text, including the path to this copy of WS Commander. Add the ws-commander server to any existing entries in your client's settings. The commands below use the path for a copy in /Applications.
Run this in Terminal to add the server to Claude Code for your macOS user. Use /mcp in Claude Code to check it. Claude Code MCP guide
claude mcp add --transport stdio --scope user ws-commander -- "/Applications/WS Commander.app/Contents/Resources/bin/wsc" mcp
Use the JSON preview for these clients.
| Client | Configuration |
|---|---|
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json. Restart Claude Desktop. Claude Desktop setup |
| OMP (Oh My Pi) | ~/.omp/agent/mcp.json, .omp/mcp.json for a project, or ~/.omp/profiles/<name>/agent/mcp.json for a named profile. Reload with /mcp reload and check with /mcp list. OMP MCP guide |
| Pi | Install MCP support with pi install npm:pi-mcp-adapter, add the JSON to ~/.pi/agent/mcp.json (or .pi/mcp.json for a project), and restart Pi. Pi MCP Adapter |
| Antigravity App | In Customizations > Installed > MCP Servers, use Copy Config File Path to find the file to edit. Antigravity MCP guide |
| Antigravity IDE | Open the agent menu, then MCP Servers > Manage MCP Servers > View raw config. Antigravity MCP guide |
| Antigravity CLI | Add the JSON to ~/.gemini/config/mcp_config.json or .agents/mcp_config.json for a workspace. Use /mcp to check and reload the server. Antigravity MCP guide |
{
"mcpServers": {
"ws-commander": {
"command": "/Applications/WS Commander.app/Contents/Resources/bin/wsc",
"args": ["mcp"]
}
}
}
For Codex, add the Codex (TOML) preview to ~/.codex/config.toml, or use .codex/config.toml in a trusted project. Codex MCP guide
[mcp_servers.ws-commander]
command = "/Applications/WS Commander.app/Contents/Resources/bin/wsc"
args = ["mcp"]
You can also register the server from Terminal with codex mcp add ws-commander -- "/Applications/WS Commander.app/Contents/Resources/bin/wsc" mcp. Use /mcp in Codex to check it.
The tools are get_state, list_directory, get_selection, get_file_info, read_text_file, search_start, search_results, search_stop, checksum, compare_directories, list_operations, get_operation, list_commands, list_remote_profiles (read-only); navigate_pane, activate_pane, select_entries, open_tab, close_tab, select_tab, run_command (change the view only; run_command refuses the commands list_commands marks denied, which is every command that can change files); and copy, move, rename, create_directory, pack, extract, trash, delete, control_operation (need "Allow file changes"). File operations return an operationId immediately; poll get_operation.
Without MCP, any program can use the socket directly with one JSON-RPC 2.0 object per line:
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"app.state"}' \
| nc -U "$HOME/Library/Application Support/Wscommander/ipc/api.sock"
Checks: the Core suite covers validation, permission gating and error mapping for every method, the socket, and the MCP messages, and runs the built wsc-mcp against a stub endpoint (xcrun xctest -XCTest WscommanderCoreTests.MCPBridgeProcessTests build/DerivedData/Build/Products/Debug/WscommanderCoreTests.xctest). Tests/wsc/test-wsc-mcp.sh checks that wsc mcp finds the helper, also through symbolic links. Tests/wsc/test-wsc-guard.sh checks template parity, non-destructive installs, and PreToolUse block/allow rules. The --phase api AppKit smoke enables the API in its owned home and drives it through the real socket: navigation, listing, selection, refused mutations, a queued copy, the conflict policy, a rename onto a taken name (including a folder onto a folder, which is not merged), the refusal of the home folder through a symbolic link, the refusal of file.move, the utilities, and the other file-changing commands through run_command, an extraction that needs bsdtar being refused while a compressed TAR is extracted, the Trash confirmation, a command that is not invoked when its permission is withdrawn before the invoking turn, a queued copy that is withdrawn when "Allow file changes" is turned off while the client's running copy stops and a copy the user queued finishes, a running overwrite copy that opens the conflict sheet once "Allow destructive operations without confirmation" is turned off, the warning before a rename the server cannot vouch for (Cancel and Continue), cancellation, the refusal to control a copy the user queued, an HTML file a client moves to or reloads in the Lister being shown as its source while Web, Preview, and Quick Look are refused, and the audit log. Real MCP clients (Claude Code, Claude Desktop, Codex) have not been observed against it.
Enforcing WS Commander MCP for AI Agents (wsc guard)
Giving an agent both a shell tool and wsc mcp only helps if the agent cannot silently bypass wsc mcp via rm -rf, mv, cp, scp, sftp, rsync, or inline Python/Node deletions. WS Commander bundles a 4-layer defense in wsc guard (canonical templates in Scripts/agent-guard/):
- Tool deny list (
~/.claude/settings.json): Blocks obvious shell commands such asBash(rm *),Bash(/bin/rm *),Bash(sudo rm *),Bash(rmdir *),Bash(unlink *),Bash(scp *),Bash(sftp *),Bash(ftp *),Bash(rsync *), andBash(ditto *). - PreToolUse AST / segment hook or Codex
execpolicy:force-wscommander.jstokenizes unquoted shell segments (sparing strings likegit commit -m "avoid rm -rf"), strips wrappers (sudo,env, paths), blocks destructivefind -delete,xargs, and inline Python/Node/Ruby/Perl deletion calls, and directs the model tomcp__ws-commander__*. For OpenAI Codex,codex-wscommander.rulesapplies Starlarkprefix_rule(..., decision = "forbidden")rules in~/.codex/rules/wscommander.rules. - Global agent instructions (
CLAUDE.md/AGENTS.md): Instructs agents to route bulk, destructive, archive, and remote transfers through WS Commander and prefertrashoverdelete. - WS Commander's own server-side safety: Off-by-default permission switches,
ProtectedLocationsblocking/, volume roots, and$HOME, confirmation sheets, conflict checks, and append-onlyautomation-audit.jsonlauditing.
wsc guard install claude-code --dry-run # preview Claude Code hook + settings merge
wsc guard install claude-code # install ~/.claude/hooks/force-wscommander.js + merge settings (creates .bak)
wsc guard install codex --dry-run # preview ~/.codex/rules/wscommander.rules
wsc guard install codex # install Codex execpolicy rules
Public Docs MCP, REST API & Agent Discovery
wscommander.com also hosts zero-auth, read-only interfaces so coding agents can fetch the latest release SHA-256, benchmarks, CLI docs, and setup snippets automatically:
- Public Docs MCP (Streamable HTTP):
https://wscommander.com/api/mcp— listed in the Official MCP Registry ascom.wscommander/docs(server-card). - Open Read-Only REST API & OpenAPI 3.1:
https://wscommander.com/openapi.json(/api/v1/release,/api/v1/benchmarks,/api/v1/tools,/api/v1/docs,/api/v1/setup/{client}). - NLWeb v0.55 & Machine Indexes:
https://wscommander.com/ask,/llms.txt,/llms-full.txt, and Markdown content negotiation (Accept: text/markdown).
Shortcuts and App Intents
WS Commander provides these App Intents for Shortcuts automation: Open Folder in WS Commander, Reveal in WS Commander, Get Current Folder, Get Selected Files, Calculate Checksum, and Find Files. The open/reveal actions route through the same ExternalOpenRequest handler used by wscommander:// links; checksum and find actions use the Core checksum and search engines without opening the app. The App Intents have been exercised in-process by the AppKit smoke. Invocation from the Shortcuts app, Spotlight, or Siri has not been observed.
Websites (marketing-web and design-web)
Both the product site and its companion design system live in this repository as Astro 5 static SSG + Cloudflare Workers deployments adhering to WCAG 2.2 Level AA (prefers-reduced-motion + explicit motion pause control, dark/light themes, keyboard navigation, verified contrast ratios):
marketing-web/— Product website and edge Worker for https://wscommander.com featuring an interactive hero, feature explorer, verified Apple Silicon benchmarks,wsc mcp/wsc guardsetup, notarized GitHub Release downloads, Markdown content negotiation,/api/v1/*REST API,/api/mcpDocs MCP,/askNLWeb search, and in-page WebMCP tools.design-web/— Design system gallery for https://design.wscommander.com inspired by https://design.ws.agency/, exposing shared tokens (public/tokens.css), typography, all 5 embedded Dock icon finishes, WCAG 2.2 AA contrast audits, and interactive UI component specimens.
# Type-check and build either site locally
(cd marketing-web && npm ci && npx astro check && npm run build) # outputs to marketing-web/dist/
(cd design-web && npm ci && npx astro check && npm run build) # outputs to design-web/dist/
Releases, License & Credits
- Download & Issues: Binary universal builds (Apple Silicon + Intel, Apple Developer ID signed and notarized) and bug reports / feature requests are hosted at github.com/wsagency/wscommander (Releases · Issues).
- License: Released under the MIT License.
- Author: Developed by Kristijan Lukačin (@klukacin).
- Agency: Made with love by WS Agency (WEB solutions Ltd). Need an AI project, autonomous agent architecture, or custom native macOS software? Contact WS Agency (
hello@ws.agency).
No installation packages available.