gpui-agentation
GitHub
Copy this page

Point it out.
Build it better.

Visual feedback for your native GPUI app.
Annotate the interface. Give your agent the context.

Add to your app Rust crate v0.7.0
1

A precise place.
A clear comment.
A shorter path to the fix.

See feedback take shape.

Native app · v0.7.0
GPUI Agentation in a running macOS app: colored pins, a green arrow, and a blue selection box connect interface details to four notes in the Comments panel.
Point to the detail. Keep the comment beside it.View full size

The workflow, step by step.

Illustrated demo
Illustrated dashboard annotation sequence: a cursor selects cards, activity rows, an export button, and sidebar icons; comments are typed into amber popovers and saved as numbered pins.
Inspect. Comment. Hand off.

An illustrated look at the workflow. The installed tools run inside your native GPUI app.

Point to the exact place.

Select a registered component. Keep its bounds and Rust source reference with the comment.

Make the change visible.

Box an area, draw an arrow, or sketch with the pen. Give a visual idea a precise anchor.

Carry the context forward.

Copy structured Markdown or connect an MCP client to read, reply, and resolve feedback.

Small package.
Native feedback.

Add the library to your GPUI app. Install the bridge separately if you want your coding agent to read and respond to annotations through MCP.

Rust 1.95+Kit 0.11.0 · GPUI 0.3.14Debug buildsMIT

01 Add the native library

In your app’s Cargo.toml, enable native and turn off default features. Use the same registry GPUI Kit version in your host. Inspector picking compatibility is handled inside Agentation.

Cargo.toml
[dependencies]
gpui-agentation = { version = "0.7.0", default-features = false, features = ["native"] }
gpui = { package = "gpui-kit", version = "=0.11.0", default-features = false, features = ["component", "assets", "inspector"] }

Host and Agentation must resolve to the same registry Kit version and GPUI backend.

02 Install the optional MCP bridge

Terminal
cargo install gpui-agentation --version 0.7.0 --locked

The default install builds the portable bridge executable. It does not compile GPUI or GPUI Kit and does not launch your app.

Wire it in once.

Keep the integration at your application root. Register meaningful component boundaries you want to select, rather than wrapping every widget.

These instructions target the 0.7.0 Agentation API. Gate all annotation imports, initialization, fields, and render hooks with #[cfg(debug_assertions)]: release builds expose no annotation API.

  1. Initialize Agentation

    Configure gpui_agentation::Assets on your Application, then call gpui_agentation::init(cx) in the launch callback. Standalone hosts let Agentation initialize Kit. Existing Kit hosts use init_with_options with HostMode::KitInitialized and an explicit renderer policy. Keep one Kit Root around the host view; release builds initialize Kit directly.

  2. Mount once per window

    Root initialization · debug only
    let feedback = gpui_agentation::Agentation::mount(
        "My app", "gpui://my-app/home",
        "target/agentation/feedback.json", 4748, window, cx,
    )?;
  3. Render your screen

    Root render · debug only
    self.feedback.root(
        "home", "Home screen", content, window, cx,
    )

    Ordinary controls need no wrappers. Add target(id, label, child) only for finer inspection targets. Keep IDs stable and unique.

Give your agent
the whole comment.

Run your native app in debug mode, then add the installed bridge to an MCP client that supports stdio servers. The bridge forwards requests to the app’s local listener.

MCP client configuration · JSON
{
  "mcpServers": {
    "gpui_agentation": {
      "command": "gpui-agentation",
      "args": ["--url", "http://127.0.0.1:4748/mcp"]
    }
  }
}

Use your client’s equivalent server configuration if its schema differs. The agent can read pending annotations, acknowledge them, reply, and resolve or dismiss feedback. Keep the native app running while using these tools.

Loopback only. No API key. Browser origins are rejected by the native API. The site’s illustrations do not connect to your local server.

View the MCP metadata

Give your agent
a working guide.

Two reusable skills help your agent install gpui-agentation and explore feedback from a running app. Choose the workflow you need.

Setup skill ↗
gpui-agentation-setup guides native library integration, screen registration, and debug and release verification.
Exploration skill ↗
gpui-agentation-explore discovers MCP tools, reads sessions and pending notes, exports Markdown, and guides requested fixes through acknowledgment, replies, and verified resolution. It also explains the native drawing tools and API limits.

Install them from skills.sh in your app’s folder with npx skills add emmanuel-defreitas/gpui-agentation, then choose the skills and agents. Add --skill gpui-agentation-setup for one skill, or -g to install for every project. Start a new conversation and invoke /gpui-agentation-explore or /gpui-agentation-setup.

Try: “Use gpui-agentation-explore to discover my app’s MCP tools and summarize pending feedback without changing notes.” Connect the running debug app’s MCP server first; installing a skill provides instructions, not a server connection.

The linked skills track the dev branch. Use the skill from your host’s gpui-agentation revision when working with a pinned version.

Make it fit your app.

The integration points are small and explicit. Start with the defaults and adjust the context your agent needs.

App name & route
Name the app when mounting. Call set_route(url, window, cx) on navigation to group saved feedback by screen.
Selectable components
Choose which component roots to register with target(id, label, child). Keep IDs stable and unique within the window.
Storage
Set a local JSON path when mounting. Use one running app process per store file; keep feedback files out of version control.
Local port
Change the mount port if 4748 is in use, and match it in your MCP client’s --url. A busy port leaves local notes usable.
Drawing tools
Use Inspect, Box, Arrow, and Pen in the native toolbar. Four built-in color swatches distinguish drawing strokes.
Build features
Use native for the debug library, default mcp for the bridge, or both when developing this package.

Version 0.7.0 does not expose a public toolbar layout or custom palette builder.

A familiar idea.
A native implementation.

Inspired by Agentation and its approach to giving agents precise visual feedback. Thank you for the inspiration.

gpui-agentation is an independent Rust implementation for GPUI. It is not affiliated with Agentation and does not implement its complete protocol. The native interface uses GPUI Kit components; upstream licenses and attribution are preserved.