Prospero Native ImGui Coding Harness: C++20 Architecture, Unabashed & Desktop Control

Prospero (`skeeto/prospero`) is a public-domain C++20 coding harness built on Dear ImGui, SDL3, and `libunabashed` that runs as a single native executable without Node.js, Electron, or background daemons. Featuring passive GPU rendering, SSH/WSL remote attach, and OS-level desktop control, it speaks both OpenAI Chat Completions and Anthropic Messages APIs.
Prospero Native ImGui Coding Harness: C++20 Architecture, Unabashed & Desktop Control: Prospero (`skeeto/prospero`) is a public-domain C++20 coding harness built on Dear ImGui, SDL3, and `libunabashed` that runs as a single native executable without Node.js, Electron, or background daemons. Featuring passive GPU rendering, SSH/WSL remote attach, and OS-level desktop control, it speaks both OpenAI Chat Completions and Anthropic Messages APIs. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Single Native C++20 Binary: Built with Dear ImGui (docking), SDL3, FreeType, md4c 0.6, mbedTLS, Wuffs 0.4, and `#embed`—zero runtime VM or webview memory tax.
- Built-In Bash 5.3 Library (`libunabashed`): Ships an embedded bash interpreter (+1.7 MB stripped) using fibers so shell commands execute cross-platform without subshell bloat.
- Headless & 3-Hour Persistent Attach: `prospero attach` over `ssh -T`, `wsl.exe`, or `docker exec` survives dropped links and window closures.
- Sandboxed `prospero.ini` Includes: Supports SHA-256 pinned remote config URLs while stripping dangerous keys (`command`, `trust = yes`, `[desktop]`, `file:` secrets) from included files.
import { createAgent } from '@smoke-monkey/harness';const nativeHarnessBridge = createAgent({agentId: 'prospero-session-bridge',provider: 'custom',baseUrl: 'http://127.0.0.1:8080/v1',model: 'local-gguf',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'ask',run_command: 'ask',},mcpServers: {prosperoDesktop: {command: 'prospero-desktop',args: ['--stdio-bridge'],},},});async function runNativeBuildLoop() {const out = await nativeHarnessBridge.run('Configure CMake with -DPROSPERO_GUI=OFF -DPROSPERO_STATIC=ON, run unit tests, and inspect headless diagnostics.');console.log('Build Verification:', out.summary);}runNativeBuildLoop().catch(console.error);
Watch: Related Video Guides
Introducing Omi CLI: an AI coding agent in your terminal
I Built My Own AI Coding Agent (100% Local & FREE)
What Is Prospero? Native Systems Engineering Meets Agent Harnesses
Prospero (skeeto/prospero) is a public-domain (UNLICENSE) native AI coding harness written in C++20 by Christopher Wellons. Unlike Electron or browser-based IDE wrappers, Prospero compiles into a single executable with passive Dear ImGui rendering—consuming zero GPU or CPU cycles when idle—and connects to any OpenAI-compatible (llama.cpp, vLLM, LiteLLM) or Anthropic Messages endpoint.
Its dependency graph is pinned by URL and SHA-256 at CMake configure time: Dear ImGui (docking), SDL3, FreeType, md4c 0.6, mbedTLS + cpp-httplib (or WinHTTP on Windows), Wuffs 0.4 for memory-safe image decoding, and libunabashed 0.7.2 for an embedded bash 5.3 shell.
Build Targets, Desktop Permission Tiers & Remote Attach
Prospero separates its GUI from a pure headless engine (-DPROSPERO_GUI=OFF). On Windows, the headless binary is completely CRT-free—importing only kernel32, advapi32, and winhttp—allowing cross-compilation even for Windows XP i686 via Toolchain-Mingw32.cmake.
| Feature / Subsystem | Implementation Detail | Security / Operational Behavior |
|---|---|---|
| GUI Renderer | Dear ImGui Docking + SDL3 (macOS/Linux) / D3D11 (Win) | Passive event-driven redraw; 0% idle GPU usage |
| Built-in Shell | libunabashed 0.7.2 (Bash 5.3, +1.7 MB stripped) | Custom fibers on x86-64; glibc getcontext on Linux |
| Secrets Handling | key = env:NAME or key = file:PATH | Plaintext API keys disallowed in prospero.ini |
| Desktop Control | prospero-desktop helper over pipes | Tiered prompts: observe, input, windows |
| Remote Sessions | prospero attach via ssh -T, wsl.exe, docker exec | Engine outlives SSH disconnect and keeps state for 3h |
When teams share include = https://... configuration files, Prospero enforces a strict trust boundary: remote includes can declare HTTP MCP URLs and model endpoints, but cannot inject command MCP servers, trust = yes, [remote], [container], [desktop], or file: secret paths.
macOS Screen Recording Grant Persistence
When building Prospero from source on macOS, pass `-DPROSPERO_SIGN_IDENTITY=NAME` so `Prospero.app` and `prospero-desktop` retain Accessibility and Screen Recording permissions across local rebuilds.
Compiling Prospero & Running Headless Remote Engines
Compiling requires CMake 3.25+ and a C++20 compiler supporting #embed. Distribution packagers can pass -DPROSPERO_DEPS=LOCAL on Ubuntu 26.04 or Fedora to link system SDL3, FreeType, and mbedTLS.
# Build full native GUI + built-in bash 5.3 on macOS/Linux
git clone https://github.com/skeeto/prospero.git && cd prospero
cmake -B build && cmake --build build
# Build static headless engine for remote Linux servers
cmake -B build-headless -DPROSPERO_GUI=OFF -DPROSPERO_STATIC=ON
cmake --build build-headless
# Start a session rooted in the current repository
./build/prospero .Comparing Native C++ Harnesses with Smoke Monkey Canvas
Prospero excels as a lightweight, single-developer native cockpit—especially for C/C++ and Win32/GUI debugging via prospero-desktop. Smoke Monkey Harness and Smoke Monkey Canvas complement this model for TypeScript/Node teams needing multi-agent spatial orchestration, parallel git-worktree swarms, and 2,500+ MCP tool integrations across browser and cloud sandboxes.
Frequently Asked Questions
Q:What LLM providers work with Prospero out of the box?
None are pre-configured by default. You configure `[endpoint NAME]` and `[model NAME]` in `prospero.ini` for any OpenAI Chat Completions API (llama.cpp, vLLM, LiteLLM) or Anthropic Messages API (including extended thinking and prompt caching).
Q:How does Prospero protect against malicious remote `include` configs?
Included files can be pinned to a SHA-256 hash and Prospero silently strips privileged directives from them—ignoring `command`, `cwd`, `trust = yes` in `[mcp]`, `[desktop]`, `[remote]`, `[container]`, `file:` secrets, and custom `[ui] editor` commands.
Q:What is libunabashed in Prospero?
It is an embedded, from-scratch Bash 5.3 library (`unabashed` 0.7.2) linked directly into the binary (`prospero --bash`), adding ~1.7 MB stripped while avoiding external shell discrepancies across Linux, macOS, and Windows.
Q:Can Prospero run headless over SSH or inside WSL/Docker?
Yes. Building with `-DPROSPERO_GUI=OFF` creates a headless engine, and `prospero attach` connects over `ssh -T`, `wsl.exe -d DISTRO`, or `docker exec -i NAME`, keeping session state alive for up to 3 hours if the connection drops.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.