Desktop Apps
~9 min readUpdated: November 2026

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

Prospero Native ImGui C++ AI Coding Harness Architecture in Smoke Monkey

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Exampleprospero-compatible-harness.ts
prospero-compatible-harness.tstypescript
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);
Video Guides

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 / SubsystemImplementation DetailSecurity / Operational Behavior
GUI RendererDear ImGui Docking + SDL3 (macOS/Linux) / D3D11 (Win)Passive event-driven redraw; 0% idle GPU usage
Built-in Shelllibunabashed 0.7.2 (Bash 5.3, +1.7 MB stripped)Custom fibers on x86-64; glibc getcontext on Linux
Secrets Handlingkey = env:NAME or key = file:PATHPlaintext API keys disallowed in prospero.ini
Desktop Controlprospero-desktop helper over pipesTiered prompts: observe, input, windows
Remote Sessionsprospero attach via ssh -T, wsl.exe, docker execEngine 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.

bash
# 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.

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness