explainx.ai350K+ learn from us
TrendingAI News TodayExplainx for Business
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

follow on google

Add explainx.ai as a preferred source

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

community

Join the community

learn

mind: share how you thinkpathways — start freeworkshopsbootcampscoursescompare Explainxcertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcpestacktoolsmdx readeragentsllmsdesignsdictionarypeopleagi trackerfelony benchranks

company

aboutvisionmissionteaminstructorsteach on explainxpartnershipscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

explainx.ai

On this page

  • TL;DR architecture
  • Live edits without rebuilds
  • MCP integration for builders
  • Clojure familiarity and JSON parity
  • Example applications (not toys)
  • Token economics for agent edits
  • Build and ship today
  • What developers are saying on Hacker News
  • Module map for contributors
  • Security model in plain language
  • Launcher catalog and cross-app features
  • Lisp vs JSON for agent cost
  • Accessibility and automation hooks
  • Packaging roadmap
  • Walk through Flow Kanban as a developer
  • VERSION_CONTROL and change sets
  • WebAssembly and remote documents
  • Conformance and tooling
  • When AffrescoUI is the wrong tool
  • Forge IDE: why a full IDE matters in a UI engine
  • Learning path for teams
  • How AffrescoUI compares to other agent UI stacks
  • Related reading
← Back to blog

explainx / blog

AffrescoUI: Clojure Native Apps You Reprogram With AI While They Run

AffrescoUI, Clojure, MCP, AI Agents, Open Source

Part of Model Context Protocol (MCP)

AffrescoUI is a C++ OpenGL engine where apps are Clojure Lisp screens; MCP agents propose revisions you approve in milliseconds. 13 example apps, 177 GitHub commits, HN Nov 28.

Nov 28, 2026·8 min read·Yash Thakker
add explainx.ai
go deep
AffrescoUI: Clojure Native Apps You Reprogram With AI While They Run

AffrescoUI asks: what if native applications were documents agents could patch live — with your approval? The GitHub repository RiccardoSottini/AffrescoUI implements a C++/OpenGL engine where each app is a Lisp program (or JSON twin) reconciled in place when users or MCP agents submit versioned revisions.

It hit Hacker News November 28, 2026 with the pitch “Why stop at Emacs?” — native performance, Clojure familiarity, AI reshape while running.

TL;DR architecture

table · 2 cols
LayerRole
AffrescoUI LispSandboxed Clojure-dialect programs: defscreen, defview, defcommand, …
Screen formatJSON schema documents the engine layout + binds + events
Version control (modules/vcs)Allow / ask / deny permissions, proposals, history
Channel + MCPAgents connect; commands become tools
RendererOpenGL native widgets via theme kits
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

Live edits without rebuilds

Classic desktop dev freezes UI at compile time. AffrescoUI’s loop:

  1. User or agent asks in natural language (“add a Blocked column”).
  2. Agent proposes a JSON Patch-style revision on node IDs.
  3. VCS checks app permissions — auto-apply or preview.
  4. Format runtime reconciles the document in milliseconds.
  5. User keeps or undos — even after later edits.

Change sets export like portable plugins — features hop between apps (example: Sinopia slide sorter installed into Orrery planetarium).

That is a different axis than Prospero Skeeto imgui harness (code generation) or web v0 clones (DOM hot reload).

MCP integration for builders

MCP server layer connecting external coding agents to AffrescoUI app commandsMCP server layer connecting external coding agents to AffrescoUI app commands

The mcp/ server is the agent-facing surface:

  • App commands register as MCP tools
  • Agents execute under agent authority, not user credentials
  • Undo applies to agent runs per VERSION_CONTROL.md

Pair with OpenGame Nexu MCP templates and Muxlio durable workflows when you orchestrate multi-step edits.

For security, compare MCP misbinding: AffrescoUI’s permission table is per-app — miswired tools still need human review.

Clojure familiarity and JSON parity

LISP.md and CONFORMANCE.md document 163/186 everyday Clojure forms matching standard values — deliberate omissions listed in differences.md.

Each example/ app ships lisp/ and json/ folders; the Launcher settings pick which loads. Tests claim pixel-identical first frames and shared history.

Calamaio text editor is Lisp-only — a stress test for live reprogramming from inside the app.

Example applications (not toys)

Component-based native UI examples AffrescoUI ships in its Launcher catalogComponent-based native UI examples AffrescoUI ships in its Launcher catalog

The README groups professional demos:

table · 2 cols
AppCategory
ForgeIDE with LSP, debugger, terminal
TemperaImage editor — agents propose only, human reviews
Modello3D modeller, glTF import
HavenSmart home automation graph
FlowKanban with timeline and burndown

Tempera’s “agents may only propose” rule is a product pattern worth copying in regulated UIs.

Token economics for agent edits

BENCHMARKS.md argues node-id patches shrink prompts:

  • ~28 tokens typical edit
  • ~27 tokens partial re-read after commit

Contrast with full-file codegen in Claude Code sessions — AffrescoUI optimizes for incremental UI state, not greenfield repos.

Build and ship today

Recommended path (unsigned binaries warn on macOS/Windows):

bash
cmake -S . -B build && cmake --build build && ./build/affrescoui_launcher

Requirements: CMake 3.25+, C++23.

WebAssembly and VS Code extension live under web/ and editors/ for alternate hosts.

What developers are saying on Hacker News

The November 28 thread is early but repeats Emacs comparisons, security of live eval, and whether Lisp UI scales.

AffrescoUI’s answer in repo docs: sandboxed interpreter, no direct FS/network, explicit host capabilities.

Treat HN enthusiasm as “try the Launcher”, not production sign-off.

Module map for contributors

The README’s module list is the integration guide:

table · 2 cols
ModuleResponsibility
modules/coreInterfaces between render, vcs, channel, services
modules/lispReader + interpreter → document tree
modules/formatValidation, expressions, in-place reconcile
modules/vcsPermissions, proposals, commits
modules/channelLocal sockets, processes, live protocol
modules/renderLayout, text shaping, accessibility, GL
modules/scene3d / imaging3D and tiled images for Tempera/Modello
mcp/MCP server wiring for external agents
apps/serverWebSocket document server for shared sessions

Contributors choosing agent features should touch mcp/ + modules/vcs first — that is where dangerous actions get gated.

Security model in plain language

ARCHITECTURE.md states Lisp cannot touch FS, network, or processes. Side effects flow through host-granted steps validated against who authored the running code.

Implications:

  • Malicious agent proposals should fail permission checks, not silently chmod your home directory.
  • Features with Lisp code in change sets run under feature author authority — review change set imports like npm dependencies.
  • Shared WebSocket server mode needs the same session trust as any collaborative editor.

Compare Claude Cage VM isolation: AffrescoUI sandboxes language, not entire OS.

Launcher catalog and cross-app features

The Launcher is itself a screen document with:

  • App grid and new app from description
  • Catalogue of installable features (reviewed like PRs)
  • Global AI provider setting for each app’s assistant corner

Installing Sinopia’s slide sorter into Orrery demonstrates feature contracts — agents can request cross-app plugins, but humans approve installs.

Lisp vs JSON for agent cost

Because tests show AI edits Lisp as cheaply as JSON, teams can pick by human maintainability:

  • Lisp for symbolic refactors (defn, defview boundaries).
  • JSON for tools that only speak JSON Patch.

clj-kondo config under editors/ helps CI lint Lisp programs before agents touch production documents.

Accessibility and automation hooks

ACCESSIBILITY.md and modules/automation scenarios (scripted input, golden images) mean AffrescoUI targets real desktop QA, not only demo GIFs.

Wire automation before you let unattended agents drive Tempera-class apps — same lesson as mobile agent testers for Claude Code.

Packaging roadmap

v2.0.0 binaries exist but lack code signing on macOS/Windows; README recommends source builds for daily use.

Packaging/ and CMake targets produce affrescoui_launcher — plan internal distribution via signed builds if you ship customer-facing agents.

Walk through Flow Kanban as a developer

Flow (examples/flow/) is the README’s Kanban demo — boards, swimlanes, timeline, burndown. The Lisp source shows small pure functions over column state (for example cards-of, next-order in flow.lisp) bound to labels and repeaters in defscreen.

A typical agent edit loop:

  1. Open Flow from Launcher.
  2. Point the assistant at “Blocked” column missing.
  3. Agent proposes a defview + state key patch.
  4. Preview shows new column; accept commits to vcs history.
  5. Export change set to install the same feature in another app.

That is product management velocity without Electron reload. Document your permission table before you grant auto-apply on production boards.

VERSION_CONTROL and change sets

VERSION_CONTROL.md defines three permission levels:

  • Allow — low-risk cosmetic tweaks.
  • Ask — structural layout changes.
  • Deny — commands agents must never invoke.

Change sets bundle commits for catalogue install. Treat them like signed plugins: read Lisp included in the bundle before approve.

Feature Sinopia → Orrery migration in the README is the reference story for cross-app reuse.

WebAssembly and remote documents

The web/ target compiles a WASM build; apps/server serves shared persistent documents over WebSocket.

Teams building multiplayer agent UIs should compare latency of websocket reconcile vs local channel sockets — AffrescoUI supports both through modules/net.

Conformance and tooling

CONFORMANCE.md tracks Clojure cross-dialect tests; everyday.lisp runs in CI. Doxygen and clang-format configs signal C++ contributors are expected alongside Lisp authors.

If you already use benjitaylor skills patterns or replica skill cloning, port skill text into AffrescoUI assistant prompts — but keep permissions stricter than CLI skills.

When AffrescoUI is the wrong tool

Skip it if you need:

  • Mobile-first UI (GL desktop focus).
  • Maximum web npm ecosystem (no React tree).
  • Battle-tested accessibility certification without reading ACCESSIBILITY.md yourself.

Choose it when you want native GL performance, incremental agent diffs, and Clojure-shaped screen code.

Forge IDE: why a full IDE matters in a UI engine

Forge is AffrescoUI’s stress test — explorer, tabs, LSP, debugger, integrated terminal, SCM, and command palette in one screen document. It proves the engine is not limited to toy widgets.

For agent evals, Forge is the demo where tool latency and multi-pane layout mirror real knowledge work. If your coding agent can propose a debug panel through MCP and pass vcs Ask, you have evidence the permission model survives complex UIs.

Learning path for teams

  1. Build Launcher from source and open Streak or Flow (smaller surface).
  2. Read SCREEN_FORMAT.md + one examples/*/lisp/index.screen.lisp.
  3. Connect Claude Code or Cursor MCP to mcp/ with Ask-only defaults.
  4. Graduate to Tempera or Forge once undo/revert muscle memory exists.

Link AI builder workshops when onboarding non-Clojure teammates — they still need agent governance, even if syntax is new.

How AffrescoUI compares to other agent UI stacks

table · 3 cols
ApproachStrengthTrade-off
AffrescoUINative GL, incremental diffs, MCPYoung ecosystem, build from source
Electron + agentFamiliar web stackHeavy runtime, full reload habits
imgui harnessesFast C++ UI for toolsNot end-user app documents
Figma-like v0Design polishUsually not on-device native

Related reading

  • Prospero Skeeto imgui AI harness
  • OpenGame Nexu MCP game agents
  • Muxlio durable agent workflows
  • MCP misbinding security
  • Janestreet agent skills patterns
  • Replica skill for app cloning
Spotted something out of date? Let us know.
Daily briefFrom Yash · 350K+ students taught

Catch up on AI

One AI story explained in plain English, plus one thing to try. Every day, free. Unsubscribe anytime.

  • ✓ Free
  • ✓ One email a day, no spam
  • ✓ Unsubscribe anytime
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

View Yash Thakker in People in AI →

Related posts

Nov 27, 2026

Muxlio: An Open-Source Durable Workflow Coordinator for Claude, Codex, Cursor and Shell Tools

Muxlio is a new open-source coordinator that turns a multi-step agent job into an immutable plan and a durable run that survives your chat session. This guide explains the plan, run, worker and adapter model, how to install it, how its security policy works, and what its own docs say it has not measured.

Nov 22, 2026

MROffice: Open-Source Office Editors, MCP Tools, and What AGPL Means for Agents

XinaTian's MROffice repo crossed about 1,800 GitHub stars in twelve days in November 2026. It ships six open-source editors under AGPL-3.0, npm React packages, a playground, and an MCP server so agents can read and edit real documents in MR Office. This guide explains what is open, what stays in the paid desktop shell, and how builders should pick embed vs self-host.

Nov 20, 2026

agentes.chat: Self-Hosted Team Chat Where AI Agents Are Teammates

agentes.chat, trending on GitHub with about 1.8k stars, is a self-hosted team chat where AI agents have roles, owners and monthly budgets. Here is what it does, how to install it with Docker Compose, the AGPL terms, and what is still beta.