ALL INTELLIGENCE
Hacker News AIT2·Tools

AffrescoUI Lets AI Rewrite Native Apps at Runtime

Original title: Why stop at Emacs? Native apps you or an AI reprogram in Clojure while they run
58AI Score

AffrescoUI is a native UI engine that defines applications in a Clojure dialect and renders them natively, letting users ask an AI assistant to add or change features while the app runs; a demo turns an image editor into a 3D modeller and presentation tool on the fly. Version 2.0.0 is out but unsigned, so building from source is recommended.

Related Entities

Full Report

Contents2 sections

AffrescoUI ### Any application, defined in one format and rendered natively. Its users reshape it live, just by asking an AI. Vision · Applications · Architecture · Lisp (Clojure) · How it works · Quick start · Documentation https://github.com/user-attachments/assets/6fa000e1-b364-4c9d-b3a6-a0d22d408525 The demo: an image editor given a 3D modeller's and a presentation app's features by asking its assistant, a new app made from a name and a description, a small change to a home app, and the Launcher with its apps.


[!WARNING] The v2.0.0 downloads are not code-signed yet, so macOS and Windows warn that they can't verify the developer when you first open them. Signed builds will come in a later release.

Best today: build from source. It's one command, gives an optimised build for your machine, and never shows that warning (you need CMake 3.25+ and a C++23 compiler):

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

AffrescoUI is a native UI engine whose applications are defined in Lisp. AffrescoUI Lisp, a sandboxed dialect of Clojure, is the standard: an application's window, views, state, behaviour, commands, keys, settings and text are all named Lisp definitions, which the engine builds into one document, draws in C++ and OpenGL, and keeps running. If you write Clojure, you can already read and write these apps. JSON is supported too: the same document can be written directly in JSON, and every example ships both. People and AI agents change an application while it runs: each change is checked against the app's permissions, previewed if it needs approval, and applied in place in milliseconds, with no rebuild, no restart and nothing lost.

The vision

Software is frozen at build time: it does what its makers shipped, and every change waits for the next release. AffrescoUI applications keep evolving while they are used, shaped by the people who use them.

  • One format for every application. A to-do list and a professional design tool are written the same way and rendered by the same native engine. A feature built for one application can move into another.
  • Complex applications, built by anyone. No programming needed: describe what you want, and an AI agent builds it with you, step by step, from a simple board to a full workbench.
  • The people who use an app can change it. Ask the app itself, in plain words: "add a Blocked column", "dim the lights at sunset", "warn me when a streak breaks", or point at the part to change and ask. You see the change live, then keep it or undo it, even after later changes. Nothing changes without your approval.
  • Prototyping without stopping. Every idea is tried in the running application: no rebuilding, no restarting, no reloading, and your work stays where it was. When the prototype is right, it is already the app.

How an application grows

An application starts from a document, then grows by being talked to: "add a filter to this list", "make the sidebar collapsible", "show the total in red when it's negative". Each request becomes a reviewed revision. A run of revisions becomes a change set, a portable file that works like a plugin, and whole features move between applications: the planetarium below reuses the presentation editor's slide sorter. A person's own version of an app is shared as one file too, and every install is a proposal they review before it lands.

Diagram

The direction: applications as complex as the professional tools people use every day, in one format, rendered natively, and shaped by the people who use them while they run.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)