Skip to content

Add native Windows app with a private Linux VM - #268

Merged
simularlyon merged 20 commits into
mainfrom
feat/windows-native-app
Nov 26, 2026
Merged

simularlyon merged 20 commits into
mainfrom
feat/windows-native-app

Conversation

@simularlyon

@simularlyon simularlyon commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds the native WinUI 3 app for Windows, now matching the current macOS app. New conversations default to Private, and saved Sai conversations retain their target and session.

  • Private runs a Debian desktop in an app-managed WSL 2 distro, with in-app setup and a Hyper-V option. Claude Code, Codex, DeepSeek and the built-in Agent S loop run there with Ollama or OpenRouter.
  • This PC uses Claude Code with Ollama or OpenRouter. The app shows the exact command or change for approval before state-changing actions.
  • Cloud supports Sai computers and Simular Box. Box agents use Claude Code with Ollama or OpenRouter, with a live screen, wake and stop.

Matching macOS

  • First launch: "Set up your first agent", then "Get your agent ready", where the private computer sets up while the model downloads. Nemotron 3 Nano 4B is the default model.
  • Models: one browser for every model choice. It lists the whole Ollama library (download size, inputs, installed, "May not fit in memory") and every OpenRouter model (context, price, ZDR availability), each labeled with the agents that use it. Agent S checks the Ollama version a model needs before downloading it.
  • OpenRouter: Zero Data Retention is requested by default for every OpenRouter agent. The proxy forwards only model requests and adds provider.zdr.
  • Chat and composer:
    • Tool steps fold into one row, with expandable Tool, Input and Output.
    • Copy code, jump to latest, sample tasks, and Approve for this task for Sai.
    • Follow-ups queue while a turn runs, with Stop & send.
    • A status bar shows what keeps the agent from working.
  • Agents: Agent Settings, rename, color, new conversation, drag to reorder, and badges showing local or hosted inference.
  • Computer panel:
    • Take over the private computer (mouse and keyboard).
    • Maximize, and a resizable split.
    • A dock on the private desktop.
  • Context: Action items, Open work, Memory (ported from macOS, including its wire format), and Session and instructions.
  • Settings: Computer, Accounts with key checks, ZDR, Ollama status and Check for Updates…. The accent is black/white, as on macOS.

Windows build, setup, and verification steps

Validation

  • The portable .NET suite passes 313 assertions. They cover:
    • saved conversations, harnesses, Markdown, model routing and approvals
    • Box MCP session recovery
    • the macOS-ported memory, ZDR policy, Ollama catalog and memory estimate, tool-step titles and take-over input.
  • The x64 build passes the native startup smoke test locally: New agent, the Box name field, Settings key fields and clean exit. The test starts past first-launch setup with its own data folder.
  • On a WSL Private computer, checked by hand: Take over input and the frame stream, the dock, the Ollama library listing, and a Claude Code turn through OpenRouter.
  • Windows CI publishes and smoke-tests the unpackaged x64 build.

Remaining draft checks

  • On a clean Windows host, verify WSL and Hyper-V guest setup, first launch, a full Private task, take over, stop, shutdown and reset. Record startup time, memory and disk usage.
  • Verify authenticated Sai and Box turns, session resume, wake, live view and stop. Verify This PC approvals, the follow-up queue, memory proposals and hosted-model routing with ZDR end to end.
  • Verify clean-machine installation, accessibility, scaling and release signing.
  • Not yet on Windows:
    • steering a running DeepSeek turn
    • several agents working at once
    • Codex/DeepSeek and account sign-in on This PC and Box
    • 1Password, guest file sharing, take over on a Box
    • a Windows release download for Check for Updates…

🤖 Generated with Claude Code

@simularlyon simularlyon changed the title Add native Windows app with WinUI 3 (Sai cloud first) Add native Windows app with a private Linux VM Nov 21, 2026
simularlyon and others added 8 commits November 21, 2026 18:10
Add a WSL 2 Private computer that works on Windows 11 Home and ARM64, with the
Hyper-V VM kept for PCs that ran setup-private-vm.ps1. New agent > This PC now
installs Ollama with winget, downloads a vision model and creates the guest from
one checklist. The sidebar groups agents into Private and Cloud rows with
avatars, and the window gains the computer and context panel and the app icon.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With a saved Sai key and no Private computer, New agent starts on Cloud, so the
smoke test failed on developer machines. Choose This PC explicitly; the check
still covers both the setup checklist and the local model picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Private agents can now use the same coding-agent harnesses as the macOS app,
running inside the WSL guest with the host's Ollama. Choose one in New agent
or switch it from the model menu; older agents keep the built-in loop.

- Port the macOS harness commands and the Claude Code, Codex and DeepSeek
  stream parsers to AgentS.Core, with per-harness sessions saved per agent.
- Install Node 22, the three CLIs, simulang and the macOS web/ui screen tools
  into the guest before the first harness turn.
- Relay the guest's 127.0.0.1:11434 to the host's Ollama over wsl.exe stdio,
  since a WSL guest can't reach the host's loopback. No firewall or admin.
- Run harnesses on an app-owned 32K-context Ollama variant: the OpenAI
  endpoint otherwise uses Ollama's 4K default, which Codex and dsh overflow.
- Give simulang a namespaced X socket so `ui tree` works on the WSLg guest.
- Stream tool calls and answers into the chat, refresh the screen while the
  harness works, and stop the turn's whole process group on Stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A multi-line TextBox handles Enter before KeyDown, so the composer listens on
PreviewKeyDown: Enter sends and Shift+Enter still adds a line. Chat and
composer text move to 16px, and muted text gets more contrast in both themes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Like This Mac on macOS, a This PC agent works on the PC itself with the
installed Claude Code CLI, and every action waits for the person.

- Claude Code's PreToolUse hook asks the app over a tokened loopback port;
  the chat shows the exact command or change with Allow, Allow for this task
  and Deny. Only looking (pc apps/tree/screenshot) runs without asking.
- `pc`, a PowerShell UI Automation tool (apps, open, focus, tree, click,
  type, key, screenshot), stands in for the Mac's `mac` tool with nothing
  to install. Claude Code runs with Agent S's own profile.
- OpenRouter as a model provider: the key stays in Credential Locker and a
  loopback proxy with a per-launch token adds it, so agents never see it.
  Private agents stay on Ollama, as on macOS.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Markdown: agent and Sai replies render as native rich text: headings,
emphasis, inline code, fenced code blocks, nested and task lists, quotes,
tables, rules and links (http, https and mailto only). Streaming replies
re-render as they grow, and previews strip the Markdown.

OpenRouter for the Private computer: Claude Code, Codex and DeepSeek in the
WSL guest can use OpenRouter as well as Ollama. The relay forwards a second
guest port, 11435, to the app's OpenRouter proxy, so the guest only gets the
proxy's per-launch token and never the key. The built-in loop stays on
Ollama.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bring the Windows app to parity with the current macOS app:

- First launch: set up the first agent, then get the private computer
  and model ready side by side. Nemotron 3 Nano 4B is the default model.
- Models: one browser with the full Ollama library (download size,
  inputs, installed, memory fit) and every OpenRouter model (context,
  price, ZDR availability), each labeled with the agents that use it.
  Ollama version checks and downloads with progress.
- OpenRouter: Zero Data Retention is requested by default; the proxy
  forwards only model requests and adds provider.zdr. Every Private
  harness, the built-in loop included, can use OpenRouter.
- Chat: folded tool steps with Tool/Input/Output, copy code, jump to
  latest, sample tasks, and "Approve for this task" for Sai.
- Composer: follow-up queue with Stop & send while a turn runs, per-agent
  drafts, and a status bar for what keeps the agent from working.
- Agents: Agent Settings, rename, color, new conversation, reorder,
  inference badges, and links in empty sidebar sections.
- Computer panel: take over the WSL private computer, maximize, a
  resizable split, and a dock (tint2) on the private desktop.
- Context: action items, open work, agent memory, and session and
  instructions. Memory is ported from macOS with its wire format.
- Settings: computer, accounts with key checks, ZDR, Ollama status and
  update checks. Black/white accent as on macOS.

The core tests grow from 157 to 313 assertions, and the smoke test
starts past first-launch setup with its own data folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simularlyon
simularlyon marked this pull request as ready for review November 26, 2026 06:28
@simularlyon
simularlyon merged commit 5b4b54d into main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant