AffrescoUI lets users and AI agents change native apps while they run

AffrescoUI lets users and AI agents change native apps while they run

AffrescoUI, a project published on GitHub, describes itself as a native UI engine for applications that keep changing while they run. An app is a program in AffrescoUI Lisp, a sandboxed dialect of Clojure, made of named definitions for its window, views, state, behaviour, commands, keys, settings and text. The engine builds those definitions into one document and draws it with C++ and OpenGL, with no browser engine or web view. Lisp is the standard format, but the document can also be written directly in JSON.

The README says both people and AI agents can change a running app. Users ask in plain words ("add a Blocked column", "dim the lights at sunset", "warn me when a streak breaks") or point at the part they mean, and see the result live before deciding. Each change is checked against the app's permissions and previewed when it needs approval. It then applies in place within milliseconds, with no rebuild or restart. Users can keep a change or undo it, even after later edits.

Control works much like version control. Permission rules deny a change, send it for review or allow it, and budgets cap how much a connected peer can change. A proposal behaves like a branch or pull request: the agent can keep refining it while the user previews it live and checks the diff. The user then accepts it, chooses "Always allow" for that part of the screen, or rejects it with a reason. Accepted changes become commits on main, with SHA-256 ids, the author and the approver. An agent can change an app but can never approve its own changes.

A run of reviewed changes can be exported as a change set, a portable file that works like a plugin for anyone with the same app. Features can also move between apps: the planetarium example uses the presentation editor's slide sorter. Thirteen example apps ship in the examples/ folder with no native code of their own, and each has an AI assistant in its bottom-right corner. That assistant can use Claude Code or GitHub Copilot with the user's own sign-in, or a local model through Ollama, LM Studio or llama.cpp. A Launcher, itself an AffrescoUI app, opens the examples and the user's own apps and creates new ones.

The stated aim is apps as complex as everyday professional tools, built and changed the same way.

Key facts

  • Apps are written in AffrescoUI Lisp, a sandboxed Clojure dialect (or directly in JSON), and drawn with C++ and OpenGL without a browser engine or web view
  • Permission rules deny, ask about or allow each change, and an agent can never approve its own changes
  • Accepted changes become commits on main with SHA-256 ids, author and approver; any commit can be undone while keeping later changes
  • Thirteen example apps include an assistant that runs on Claude Code, GitHub Copilot or a local model via Ollama, LM Studio or llama.cpp
  • Building requires CMake 3.25 or later and a C++23 compiler; the v2.0.0 downloads are not yet code-signed

Why it matters

The project starts from the observation that most software is fixed when it ships, so every change waits for the next release. AffrescoUI apps are meant to keep evolving, shaped by their users. Because every app uses one format and one engine, a feature built for one app can move into another. The README applies the idea to prototypes too: they are tried in the running app with the user's work in place, so when one is right, it is already the app.

The other notable part is how agent edits are governed. Changes arrive as revisions, pass permission rules and, where required, wait for a person to review them. A change's author is set by the connection, never by what a peer claims. Rules judge what a change does, not how it is written.

Who it affects

Clojure programmers are the most direct audience: the README says anyone who writes Clojure can already read and write these apps. It also says programming is not required to build one, since a user can describe what they want and have an AI agent build it step by step. People who use such apps can reshape them by asking. Those who work with Claude Code, GitHub Copilot or local models can connect them as the app's assistant, and Claude Code or similar agents can also connect through an MCP server. Agents can use apps as well as change them: an app's commands are tools an agent lists and runs in its own name, under the app's run rules, and it can undo its runs.

How to use it

To build from source you need CMake 3.25 or later and a C++23 compiler. CMake fetches the pinned dependencies. Run cmake -S . -B build && cmake --build build, then start ./build/affrescoui_launcher. The Launcher opens every example and your own apps, makes new ones (blank, from an example or from a description), lists a catalogue of apps and features to install after review, and sets the AI. A key, if one is needed, stays in the system keychain.

To connect an agent through MCP instead, the README gives claude mcp add affrescoui -- python3 /path/to/AffrescoUI/mcp/affrescoui_mcp.py. As a first test, open the Flow example and ask its assistant to "add a Blocked column between In progress and In review". The change comes back as a proposal to accept. Launch options include an accept edits mode, which applies changes that no rule covers, and loading a change set at start. A plan mode lets agents only propose.

How solid is it

This account rests on the project's own README, so the descriptions of speed, safety and behaviour are the project's claims. The README says changes apply within milliseconds, but the portion reviewed here gives no exact latency figure, benchmarks or comparisons with Electron or other UI frameworks. That portion also offers no adoption data or third-party reactions. On engineering practice, it says CI builds and tests the project on Linux and Windows and builds it on macOS, where it is developed. The test suite covers unit tests, every app's scenarios and a rendering check that compares each frame with a golden image, pixel for pixel. Apps as complex as professional tools are described as an aim.

Risks and caveats

The v2.0.0 downloads are not code-signed, so macOS and Windows warn on first open that they cannot verify the developer. Signed builds are promised for a later release, and building from source avoids the warning. How tightly agents are held depends on the settings: choosing "Always allow" stops further prompts for that part of the screen, and accept edits mode applies any change that no rule covers. One of the README's MCP setup commands, which pushes requests into a Claude Code session, uses a flag named --dangerously-load-development-channels. The portion of the README reviewed here states no license, so check the terms before reusing the code.

“An agent can change your app, but it can never approve its own changes.”

— AffrescoUI README