New
Apps 6,419Makers 6,403This week 7
Promote your app−30%
PixelAgent screenshot 1
5views in
the last 30 days

PixelAgent

Point at running UI code and let your AI agent write the exact diff

Built with Claude Code

by bryanooh Β· Unclaimed Β· from USUnited States Β· added Oct 29, 2026
no ratings0 comments

I got tired of describing pixels to my AI agent.

🎬 Live demo + video β†’ bryangarage.dev/pixelagent

The live DOM layer for vibe coders. Point at running code β€” not a screenshot. Your AI agent writes the exact diff.

Status

0.1.22 beta on npm β€” npm install gets the current release (see below). See CHANGELOG.md.

  • Annotate (click β†’ note β†’ copy) β€” primary path, works day one.
  • Edit + Apply β€” secondary beta surface. Source resolution works on React 18 (via fiber) and React 19 (via the new dev-only Vite plugin).

Install

npm install pixelagent

That's all you need β€” annotate works immediately, and npx pixelagent setup wires up MCP auto-apply (the server runs via npx, no extra install). Add @pixelagent/mcp only for the React 19 source plugin below.

In your app:

import { PixelAgent } from 'pixelagent';

export default function Layout({ children }) {
  return (
    <>
      {children}
      {process.env.NODE_ENV !== 'production' && <PixelAgent />}
    </>
  );
}

React 19 β€” opt into source resolution

React 19 removed fiber _debugSource. To recover exact-file Apply payloads, install the MCP package and add its dev-only Vite plugin:

npm install -D @pixelagent/mcp
// vite.config.ts
import { pixelagentSourcePlugin } from '@pixelagent/mcp/source-plugin';
import { pixelagentVitePlugin } from '@pixelagent/mcp/vite-plugin';
import react from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [
    pixelagentSourcePlugin({ projectRoot: __dirname }), // must run before react()
    react(),
    pixelagentVitePlugin({ projectRoot: __dirname }),
  ],
});

Production builds are never transformed (apply: 'serve').

Two modes

Annotate in 30 seconds

  1. Click Annotate on the floating toolbar.
  2. Click any page element β†’ type a Note β†’ Add.
  3. Session opens on the right; click toolbar Copy or session Copy all (same markdown).
  4. Paste into your agent chat.

No verbosity or viewport toggles β€” context is included automatically.

Edit + Apply

  1. Click Edit on the toolbar β†’ click an element.
  2. Tweak font / spacing / color in the side panel β€” changes preview live on the DOM.
  3. Click Apply β†’ payload is sent to MCP (auto-patches the source) or copied to clipboard (paste into your agent).

Quick start (from source)

git clone https://github.com/BryanOoh/pixelAgent.git && cd pixelAgent
npm install
npm run build
npm run dev              # demo at http://localhost:5173
npm test                 # 80 tests
npx pixelagent setup     # configure MCP for Claude Code / Cursor

Project structure

pixelAgent/
└── packages/
    β”œβ”€β”€ shared/            # @pixelagent/shared β€” types & DOM utilities
    β”œβ”€β”€ pixelagent/        # React component
    β”œβ”€β”€ mcp/               # @pixelagent/mcp server (+ vite-plugin, source-plugin)
    β”œβ”€β”€ cli/               # npx pixelagent setup
    └── demo/              # Vite dev fixture

Packages

Package Description
pixelagent React component β€” floating toolbar, annotate + edit panel
@pixelagent/mcp Local MCP server + dev-only Vite plugins (apply, source)
@pixelagent/cli npx pixelagent setup β€” configure MCP for Claude Code / Cursor
@pixelagent/shared Types and DOM utilities

Feedback

This is 0.1.x beta β€” feedback shapes 0.2. Please open an issue for bugs, ideas, or framework support requests.

License

MIT β€” see LICENSE.

Description taken from the repository README.

Ratings

–
0 ratings
5 0
4 0
3 0
2 0
1 0

Rate this app

Sign in to rate

Comments 0

Sign in to comment

No comments yet.

Related apps

#frontend Β· #dom Β· #dev-tools