# WS Commander — Complete Technical Reference

> WS Commander (`v1.0.10 Beta`, build `11`) is a free (`$0 USD`), MIT-licensed native macOS (`13.0+`) dual-pane file manager built in pure Swift 5 and AppKit with zero third-party dependencies, Apple Developer ID notarization, Darwin syscalls, Direct Copy (SMB) offload, a parallel `Run Now` queue, Smart App Uninstaller, Safe Cleaner, `wsc guard` agent file guardrails, and a built-in 30-tool local MCP server (`wsc mcp`).

## 1. Release, Checksum & Platform Facts

- **Product:** WS Commander `1.0.10 Beta` (build `11`, released `2026-12-04`)
- **Supported macOS:** macOS `13.0` or later (verified through macOS `27.2`), Universal Binary (`arm64` + `x86_64`)
- **Signing & Notarization:** Signed with Developer ID (`WEB rjesenja d.o.o. (5X68L55TNU)`), notarized by Apple (`Accepted`, stapled)
- **Download URL:** `https://github.com/wsagency/wscommander/releases/download/v1.0.10/WS-Commander-1.0.10-universal-notarized.zip`
- **SHA-256 (`WS-Commander-1.0.10-universal-notarized.zip`):** `54977cc1c5f69c0381dbaf8552b60762389a9d859ecd6f400400b10f892c11e3`
- **License & Price:** MIT Open Source, `$0 USD` forever, zero telemetry, zero ads, no account required
- **Maintainer & Publisher:** Kristijan Lukačin (`@klukacin`) · WEB solutions Ltd (WS Agency), Markuševečka cesta 115, HR-10000 Zagreb, Croatia · `hello@ws.agency`
- **Source & Org:** `https://github.com/wsagency/wscommander` · `https://github.com/wsagency`
- **Website & Design System:** `https://wscommander.com` · `https://design.wscommander.com`

Verify locally in Terminal:

```bash
shasum -a 256 ~/Downloads/WS-Commander-1.0.10-universal-notarized.zip
# 54977cc1c5f69c0381dbaf8552b60762389a9d859ecd6f400400b10f892c11e3
spctl -a -vv "/Applications/WS Commander.app"
# accepted · source=Notarized Developer ID
```

## 2. Core Capabilities

### Keyboard & Dual-Pane Workflow
- Orthogonal dual tabbed panes with per-tab back/forward history and per-location column memory
- Classic Total Commander shortcuts: `F3` Lister, `F4` Editor, `F5` Copy, `F6` Move, `F7` New Folder, `F8` Delete, `Insert` Mark, `+`/`-`/`*` wildcard/invert selection, `Tab` switch panes
- Automatic per-app IOKit `F1`–`F12` hardware key switcher (enables standard function keys while WS Commander is focused, restores media keys when switching away)
- Branch View (`⌥⌘B`), Quick View (`⌥⌘Q`), Directory Tree (`⌃F8`), Directory Hotlist (`⌃D`), Live Quick Filter, Command Line with output drawer (`⌃O`), User Command Bar, Multi-folder `Space` sizing

### Darwin File Engine & Parallel Transfer Queue
- Calls Darwin directly: `getattrlistbulk`, APFS `clonefile`, `fcopyfile(COPYFILE_DATA)`, descriptor-relative `openat`
- Cooperative mid-file cancellation, editable `F5`/`F6` destination, optional post-copy SHA-256 verification
- Interactive Conflict Sheet with live file-identity re-checks (`Apply to All`, `Keep Both`, `Overwrite Older`)
- Parallel `Run Now` queue + `F2` mid-flight handoff from foreground copy/move dialogs; disjoint paths run concurrently while overlapping targets stay safely serialized
- **Direct Copy (SMB) Offload:** Copies between two mounted NAS/SMB shares directly from Source Mac -> NAS over SSH with metadata fingerprint verification, avoiding double hops through the workstation

### Lister (`F3`), Editor (`F4`), Archives, Network & Cleanup Utilities
- **6-Mode Random-Access Lister:** Text, Hex, Image, Preview, Web, and Markdown (bounded CSP for Markdown images, linear-time syntax highlighting, `1 GiB+` Boyer–Moore–Horspool raw-byte Text/Hex Find)
- **Native Atomic Editor (`F4`):** Encoding auto-detection (`UTF-8`, `UTF-16`, `Latin-1`, `Windows-1250/1252`, `MacRoman`), mixed line-ending detection, live Markdown split preview, external-edit guard, atomic saves preserving ACLs and xattrs
- **Archives as Folders:** Inline ZIP/TAR editing (`F5` add, `F8` delete, `F7` mkdir), plus `bsdtar` reading/extracting for `.tar.gz`, `.tar.xz`, `.tar.bz2`, `7z`, `CPIO`, `AR`, `XAR`, `ISO9660`
- **Remote Protocols:** SFTP (SSH key, ssh-agent, AskPass, interactive host-key Trust UI), FTP/FTPS (explicit TLS + `MLST`/`MLSD`), Bonjour `Browse Nearby` (SMB, AFP, WebDAV, SFTP, FTP)
- **Utilities:** Batch Rename (`⌘⇧M` regex/masks/counters/cycle-safe staging/Undo), Synchronize Directories, Duplicate Finder, Compare Directories (`⇧F2`), Verify/Create Checksums (9 algorithms: `CRC-32`, `MD5`, `SHA-1`, `SHA-256`, `SHA-512`, `SHA3-256`, `SHA3-512`, `BLAKE3`, `xxHash`), Split/Combine & Base64/UUE/XXE, Change Attributes (`⌘⌥A`), Smart App Uninstaller (`.app` bundles, Library caches, Containers, LaunchAgents, `.pkg` receipts moved via Trash), and Safe Cleaner & Project Purge (marker-verified `node_modules`, `target`, `.build`, `DerivedData` + JSON whitelist)

## 3. Verified Apple Silicon Benchmarks

Measured on `Mac17,2` (Apple Silicon `arm64`), macOS `27.2.1`, local APFS, Core sources + harnesses compiled with `swiftc -O` (`Benchmarks/` in GitHub repository):

- Find Files content scan (`4,000` files): `664.9 MB/s` (`30.9×` vs `21.5 MB/s` baseline)
- CRC-32 checksum (`256 MiB`, `zlib.crc32_z`): `15,667.6 MB/s` (`26.4×` vs `593.7 MB/s`)
- Lister Go-to-Line (`2M` lines, `memchr`): `9,419.5 MB/s` (`25.9×` vs `364.2 MB/s`)
- Parallel ZIP Deflate create (`200 × 256 KiB` entries): `2,675.5 MB/s` (`8.8×` vs `302.8 MB/s`)
- `1 GiB` Whole-Word Lister Find (BMH + Unicode bounds): `3,231.2 MB/s` (`6.6×` vs `487.6 MB/s` ICU regex)
- `100,000`-entry directory listing (`getattrlistbulk`, `256 KiB` buffer warm p50): `0.136 s` (`5.3×` vs `0.724 s` `lstat`)
- `1 GiB` streaming copy (`fcopyfile(COPYFILE_DATA)`): `4,145 MB/s` (`0.259 s` p50)
- `1 GiB` Lister Find (ASCII / UTF-8 CI): `4,361 MB/s` / `3,329.3 MB/s`
- Binary Compare (`256 MiB`): `21,133.7 MB/s` (`3.9×` vs `5,451.5 MB/s`)
- Duplicate Finder (`75 MiB`): `3,804.7 MB/s` (`3.1×` vs `1,233.0 MB/s`)
- BLAKE3 (`256 MiB`): `1,596.6 MB/s` (`1.54×` vs `1,033.8 MB/s`)
- Directory listing `1,000` / `10,000` entries: `2.53 ms` / `11.54 ms`

## 4. `wsc` CLI & Local 30-Tool MCP Server

CLI binary location inside app bundle: `/Applications/WS Commander.app/Contents/Resources/bin/wsc`

```bash
ln -s "/Applications/WS Commander.app/Contents/Resources/bin/wsc" /usr/local/bin/wsc
wsc .
wsc ~/left ~/right
wsc -t ~/Downloads
wsc --version
wsc mcp
wsc guard install claude-code --dry-run
wsc guard install claude-code
wsc guard install codex
wsc guard print <claude-hook|claude-settings|codex|prompt>
```

### Security Model (`wsc mcp`)
- **Local Unix Socket Only:** `~/Library/Application Support/Wscommander/ipc/api.sock` (`0600` inside `0700` dir); no TCP/network listener
- **Three Off-by-Default Switches:**
  1. Enable local automation API (read & navigate)
  2. Allow file changes
  3. Allow destructive operations without confirmation
- **Protected Paths:** `/`, top-level system directories, volume roots, and `$HOME` refused for move, rename, Trash, and delete (even through symlinks)
- **Double Verification & Audit Log:** File-changing requests are re-checked at execution; all calls log to `~/Library/Application Support/Wscommander/automation-audit.jsonl`. Passwords and Keychain secrets are never exposed.

### All 30 Local MCP Tools
- **Read-Only (`14`):** `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`
- **View-Only (`7`):** `navigate_pane`, `activate_pane`, `select_entries`, `open_tab`, `close_tab`, `select_tab`, `run_command`
- **File-Changing (`9`):** `copy`, `move`, `rename`, `create_directory`, `pack`, `extract`, `trash`, `delete`, `control_operation`

## 5. Online Public Agent & Developer Interfaces (`wscommander.com`)

- **Public Streamable HTTP Docs MCP:** `https://wscommander.com/api/mcp` ([server-card](/api/mcp/server-card)) with tools `search_wscommander_docs`, `get_release_manifest`, `get_mcp_setup_guide` and resources `wsc://docs/overview`, `wsc://docs/benchmarks`, `ui://wscommander/release-card`
- **Public Read-Only REST API (`/api/v1/*`):** `/api/v1/release`, `/api/v1/benchmarks`, `/api/v1/tools`, `/api/v1/docs`, `/api/v1/docs/{slug}`, `/api/v1/setup/{client}` ([OpenAPI 3.1](/openapi.json))
- **NLWeb v0.55:** `POST /ask` & `GET /ask?query=...` (supports `prefer.streaming: true` SSE)
- **WebMCP:** Registers `get_latest_release`, `search_wscommander_docs`, `get_benchmarks`, `get_mcp_setup_config`, `list_local_mcp_tools` via `document.modelContext.registerTool()`
- **Discovery Manifests:** `/.well-known/ard.json`, `/.well-known/ai-catalog.json`, `/.well-known/api-catalog`, `/.well-known/agent-skills/index.json`, `/.well-known/agent-card.json`, `/.well-known/mcp/server-card.json`, `/schemamap.xml`
