Platform overview

Agentic UI

What if you could redesign an interface simply by describing what you want?

View on GitHub
npm
npm i @vickywitviky/visual-ai-editor

Experience

Agentic UI explores a new way of working with digital interfaces combining visual selection, natural language and AI assisted code generation to make interface changes more intuitive.

Instead of navigating through layers of code or manually adjusting every property, select an element, describe the change and let AI help translate your intent into implementation.

The concept

Traditional interface development often requires switching between design tools, code editors and browser previews. Even a seemingly small visual adjustment can involve multiple steps.

Agentic UI explores a different interaction model bringing the editing experience closer to the interface itself.

By combining direct visual interaction with AI assisted code generation, the experiment aims to reduce the distance between an idea and its implementation.

The principle is simple interact with what you want to change, explain what you want, and review the result.

How it works

Agentic UI explores a four-step interaction workflow.

  • Select an interface element directly within the browser. The selected element becomes the focus of the editing experience.
  • Use natural language to explain the intended change.
  • AI interprets the request and generates a proposed implementation change. The intention is to translate visual instructions into actionable code modifications.
  • Review the proposed change and apply it to the interface. The result can be inspected visually, keeping the editing process connected to the actual interface.

Demo

Select an element, describe a change, then review and apply the proposed update.

Keep the control simple

The control rail is intentionally small. It has only the controls needed to work with the editor: show or hide annotation markers, retry changes that need to be applied, and clear saved changes.

The goal is not to hide useful power. It is to show that power at the moment it becomes useful. The page remains the main character; the editor is there to support it.

The interaction needed to be within 200ms–300ms. I used 200ms and subtle spring animation so it feels more like real physics. This can be used on mobile as well.

Motion with a reason

The motion is not there to make the editor look fancy. It has a job: opening motion confirms that a selection created the popup, closing motion makes dismissal feel deliberate, and the selected element remains visible behind the popup.

Small transitions like these add up. They make an overlay feel like part of the page rather than a separate system placed on top of it.

A marker is more than a pin

Every successful edit leaves behind a small marker. At first, it is easy to think of this as a simple annotation pin. In practice, it is the history of the work.

A marker says that someone made a deliberate change here. Opening it reveals the request, the applied result, and the actions available next: undo or delete.

This makes the editor useful for two kinds of collaborators. A non-technical teammate can see that feedback was acted on; a technical teammate can inspect exactly which element was touched and move the idea into product code.

Undo reverses the visible change but keeps the annotation around. Delete removes both the marker and its saved edit. Clear removes every saved edit in one conscious action. That distinction gives people room to explore without making their work feel fragile.

Agentic UI marker history

Remembering work across a refresh

Applied edits are saved through the editor’s server endpoint. When the page loads again, the editor restores both the change and its marker.

This was important because a successful change should not feel temporary just because the browser refreshed. Persistence turns the editor from a quick visual experiment into a useful conversation artifact: a small record of decisions that can be revisited later.

Working with AI without giving it too much power

I use gemma4:e2b to translate everyday requests into small CSS or text changes for the selected element. The model proposes a patch, and the editor validates it before applying it. This keeps AI useful without giving it open-ended control of the webpage.

The editor only accepts CSS properties for appearance and layout, or plain text for visible copy. It does not execute JavaScript. It cannot change navigation, authentication, form submissions, product data, or page structure. Unsafe values, URLs, scripts, and imports are rejected before a patch reaches the page.

The editor is forgiving about harmless formatting differences from models. It can understand normal JSON, fenced JSON, direct CSS objects, and simple CSS declarations such as color: red. If a response cannot be used, the request remains in the popup so the person can adjust their wording and try again.

Challenges

Building an interface that responds to natural language introduces challenges beyond traditional UI development

Natural language instructions can be ambiguous. The system needs enough context to understand which element and which property the user wants to change.

A visual modification should not unnecessarily disrupt surrounding components, layout or existing behaviour.

Any AI generated code needs to be reviewed and validated rather than assumed to be correct.

A successful change isnt only about modifying an element. It should also preserve the overall design language.

The experience should reduce repetitive work while keeping users involved in important decisions. These challenges shape the direction of the experiment and highlight opportunities for further development.