# Harness & NanoHarness Desktop App

> Native desktop & mobile workspace for coding agents. Graff is built in, and Harness runs Claude Code, Codex, Cursor, Grok, Hermes, Pi, Devin and OpenCode sessions in one native window across macOS, Windows, Linux and iOS.

Canonical page: https://codegraff.com/harness
Keyboard shortcuts page: https://codegraff.com/shortcuts
NanoHarness source: https://github.com/justrach/nanoharness
Legacy workspace source: https://github.com/justrach/harness

## Workspace & focus capabilities

- **Native Zig GPU workspace**: Rendered by nanoui at 120Hz ProMotion frame pacing on macOS and native DirectWrite/GPU on Windows, with every session's files, diff review, browser and terminal beside it.
- **Minimal black-canvas full screen** (Ctrl+Cmd+F): Removes chrome over a pure black backdrop with a top bezel handle for floating tabs and a left bezel handle with hover-edge slide-over sidebar reveal.
- **Two-pane Cmd+K command switcher** (Cmd+K): Live conversation preview pane beside searchable open tabs, split panes, workspace commands, chat history and external tool sessions with inline split, rename, duplicate and close actions.
- **Visual tab overview grid & Ctrl+Tab HUD** (Cmd+Shift+\): Spatial overview grid of open workspaces with live excerpts and quick split/close actions, paired with a Ctrl+Tab visual tab cycle HUD and magnetic 1/3, 1/2 and 2/3 split divider snaps.
- **Interactive artifacts & Cloud Computer**: Built-in show_artifact tool renders private or public HTML, SVG and Markdown cards inline, alongside Cloud Computer management in Settings and mobile follow-ups on iPhone and iPad.
- **Formally checked shell invariants**: Core NanoHarness frame scheduling, shortcut partition, scroll-follow, UI mode FSM and split-chip conservation laws are checked continuously in Lean 4.

## Downloads and building from source

- [Harness for macOS](https://codegraff.com/download/harness-macos?from=llms) (Apple Silicon DMG, macOS 12+)
- [Harness for Windows](https://codegraff.com/download/harness-windows?from=llms) (Windows x64 portable zip)
- [Latest desktop releases](https://github.com/justrach/nanoharness/releases/latest)

Build NanoHarness from source:

```sh
git clone https://github.com/justrach/nanoharness && cd nanoharness
./scripts/run-macos-dev.sh # macOS (Linux: cargo build -p harness; Windows: cargo run --locked -p harness)
```

## Default keyboard shortcuts

### Chats and sessions

| Action | macOS | Windows |
| --- | --- | --- |
| New chat (rebindable) | Cmd+T | Ctrl+Shift+T |
| Command switcher (tabs, sessions, commands) | Cmd+K | Ctrl+K |
| Visual session overview grid | Cmd+Shift+\ | Ctrl+Shift+\ |
| Next session (visual Ctrl+Tab HUD) (rebindable) | Ctrl+Tab | Ctrl+Tab |
| Previous session (visual Ctrl+Tab HUD) (rebindable) | Ctrl+Shift+Tab | Ctrl+Shift+Tab |
| Jump to session 1–9 in the sidebar (rebindable) | Cmd+1–9 | Ctrl+1–9 |
| Archive session (rebindable) | Cmd+Shift+A | Ctrl+Shift+A |
| New project (rebindable) | Cmd+Shift+N | Ctrl+Shift+N |
| Open the model picker (rebindable) | Cmd+/ | Ctrl+/ |
| Jump to the message box | Cmd+L | Ctrl+Shift+L |
| Settings | Cmd+, | Ctrl+, |

### Command switcher (while Cmd+K is open)

Act on the highlighted open tab, split pane or saved session directly from the two-pane preview.

| Action | macOS | Windows |
| --- | --- | --- |
| Split highlighted session right | Cmd+D | Ctrl+D |
| Rename highlighted session | Cmd+R | Ctrl+R |
| Open sibling draft tab in the same project | Cmd+Shift+D | Ctrl+Shift+D |
| Close open tab/pane or archive session | Cmd+Backspace | Ctrl+Backspace |

### Chat tabs

| Action | macOS | Windows |
| --- | --- | --- |
| New chat tab | Cmd+T | Ctrl+Shift+T |
| Next chat tab | Cmd+Shift+] | Ctrl+Page Down |
| Previous chat tab | Cmd+Shift+[ | Ctrl+Page Up |
| Go to chat tab 1–8 | Ctrl+1–8 | Alt+1–8 |
| Go to the last chat tab | Ctrl+9 | Alt+9 |

### Split panes

Put chats side by side in one window, resize them cleanly (with magnetic 1/3, 1/2 and 2/3 divider snaps), and move focus between them.

| Action | macOS | Windows |
| --- | --- | --- |
| Split the chat to the right | Cmd+D | Ctrl+Shift+O |
| Split the chat down | Cmd+Shift+D | Ctrl+Shift+E |
| Close the pane (back to one column) | Cmd+W | Ctrl+Shift+W |
| Next pane | Cmd+] | Ctrl+Win+] |
| Previous pane | Cmd+[ | Ctrl+Win+[ |
| Move to the pane in that direction | Opt+Cmd+← → ↑ ↓ | Ctrl+Alt+← → ↑ ↓ |
| Grow the pane in that direction | Ctrl+Cmd+← → ↑ ↓ | Ctrl+Win+Shift+← → ↑ ↓ |
| Make all panes the same size | Ctrl+Cmd+= | Ctrl+Win+Shift+= |
| Zoom the pane (and back) | Cmd+Shift+Enter | Ctrl+Shift+Enter |

### Panels

| Action | macOS | Windows |
| --- | --- | --- |
| Toggle the left sidebar (rebindable) | Cmd+B | Ctrl+B |
| Toggle the right sidebar (rebindable) | Cmd+R | Ctrl+R |
| Toggle the files panel (rebindable) | Cmd+E | Ctrl+E |
| Toggle the terminal (rebindable) | Cmd+J | Ctrl+J |
| Save file (rebindable) | Cmd+S | Ctrl+S |

### Message box

Enter sends by default. In Settings → Shortcuts you can make Enter add a new line and send with Cmd+Enter or Ctrl+Enter instead.

| Action | macOS | Windows |
| --- | --- | --- |
| Send | Enter | Enter |
| Always send (with an empty box, sends the latest queued message) | Cmd+Enter | Ctrl+Enter |
| New line | Shift+Enter | Shift+Enter |
| Bring back an earlier prompt from this chat (↑ at the start, ↓ at the end) | ↑ ↓ | ↑ ↓ |
| Accept the highlighted completion, or indent a list item | Tab | Tab |
| Outdent a list item | Shift+Tab | Shift+Tab |
| Close the completion menu, or stop editing a queued message | Esc | Esc |
| Undo | Cmd+Z | Ctrl+Z |
| Redo | Cmd+Shift+Z | Ctrl+Shift+Z |
| Move by word | Opt+← → | Ctrl+← → |
| Delete a word | Opt+Backspace | Ctrl+Backspace |
| Start or end of the line | Cmd+← → | Home or End |
| Start or end of the message | Cmd+↑ ↓ | Not on this platform |

### Terminal

While the terminal has focus.

| Action | macOS | Windows |
| --- | --- | --- |
| Split the terminal right (rebindable) | Cmd+D | Ctrl+Shift+D |
| Split the terminal down (rebindable) | Cmd+Shift+D | Ctrl+Alt+Shift+D |
| Close the terminal split | Cmd+Shift+W | Ctrl+Shift+W |
| Copy the selection | Cmd+C | Ctrl+Shift+C |
| Paste | Cmd+V | Ctrl+Shift+V |

### Browser

While the built-in browser has focus. It shows pages on macOS and Linux.

| Action | macOS | Windows |
| --- | --- | --- |
| Reload the page (rebindable) | Cmd+Shift+R | Ctrl+Shift+R |
| Focus the address bar | Cmd+L | Ctrl+L |
| New browser tab | Cmd+T | Ctrl+T |
| Close the browser tab | Cmd+W | Ctrl+W |
| Back | Cmd+[ | Ctrl+[ |
| Forward | Cmd+] | Ctrl+] |

### App and window

| Action | macOS | Windows |
| --- | --- | --- |
| Minimal full screen | Ctrl+Cmd+F | F11 |
| Bigger text | Cmd+= | Ctrl+= |
| Smaller text | Cmd+− | Ctrl+− |
| Actual size | Cmd+0 | Ctrl+0 |
| Capture an Appshot (turn on in Settings → Appshots) (rebindable) | Ctrl+Opt+Space | Not on this platform |
| Minimize | Cmd+M | Not on this platform |
| Close the window | Cmd+Shift+W | Not on this platform |
| Hide Harness | Cmd+H | Not on this platform |
| Quit Harness | Cmd+Q | Not on this platform |

### Pickers, menus and the file tree

| Action | macOS | Windows |
| --- | --- | --- |
| Move up | ↑ or Ctrl+P | ↑ or Ctrl+P |
| Move down | ↓ or Ctrl+N | ↓ or Ctrl+N |
| Choose | Enter | Enter |
| Pick model 1–9 in the open model picker | Cmd+1–9 | Ctrl+1–9 |
| Close | Esc | Esc |
| Collapse or expand a folder | ← → | ← → |

## Frequently asked questions

### Which coding agents can run inside Harness?

Graff is built in, and Harness also runs Claude Code, Codex, Cursor, Grok, Hermes, Pi, Devin and OpenCode sessions in one native window on macOS, Windows and Linux.

### How does minimal full-screen mode work in NanoHarness?

Press Ctrl+Cmd+F on macOS (or F11 on Windows) to hide the window chrome over pure black. Hover the top edge or click the top bezel pill to peek at tabs and controls, hover or click the left bezel handle to peek or dock the sidebar, or drive navigation via Cmd+K.

### What can the Cmd+K command switcher do besides switching sessions?

The two-pane Cmd+K switcher previews live transcripts and session metadata on the right while letting you open, split beside the current pane (Cmd+D), rename (Cmd+R), open a new sibling tab in the same project (Cmd+Shift+D), or close/archive (Cmd+Backspace).

### How do I switch between many open workspaces visually?

Press Cmd+Shift+\ (Ctrl+Shift+\ on Windows) for the visual session overview grid with live previews, or press Ctrl+Tab / Ctrl+Shift+Tab for the floating visual tab cycle HUD. Drag split dividers to snap magnetically at 1/3, 1/2 and 2/3.

### What are Harness interactive artifacts?

Agents running in Graff or Harness can call show_artifact to emit rich HTML, SVG or Markdown previews as interactive cards directly inside the conversation transcript across desktop and iOS.

### Do I need a Codegraff account or cloud subscription to run Harness?

No. Harness starts without an account and keeps local sessions on your machine. You can bring your own provider keys or ChatGPT/Codex, Grok or Kimi subscriptions, or connect a Codegraff account for Cloud Computer, hosted artifacts and mobile sync.
