Open Source · npm · Free

Redline

Mark up a running web UI, and let your AI agent apply the changes, right from the page.

Redline

Commenting on a button: the popover names the element and its source, App.tsx:35

Why it exists

Catch the feedback while you are looking at it

The best feedback comes in the moment: you are clicking through the app and something is off. That is when it should be captured, on the page and with the detail that makes it useful, not rewritten from memory in a chat later.

Feedback is lost between seeing and writing

You spot something while using the app, then switch to a chat or a ticket to describe it. By then the detail has faded, or the note never gets written.

“The button on the right” is not a spec

Words and screenshots show what is wrong, not where it lives. The agent has to guess the component, the line and the content file, and it often guesses wrong.

The context disappears

Viewport, theme, scroll position and console errors decide what you saw. A bug that only shows in dark mode at phone width is easy to lose in a message.

How it fits together

Start with Redline. Add the rest when you need it.

Redline is one core package and three optional ones. Most people only need the first. The others are there for when the agent should run from the page, when a team reviews together, or when the notes belong in your own systems.

Redline

Start here
@umage.ai/redline

The overlay, the dev-server plugins, the agent guide, the MCP server and the CLI. Pin comments, text changes and sketches on the running app; every note is saved as markdown with the source file and line, for any coding agent to work through.

Always. This is Redline, and on its own it is the whole loop: point, note, let the agent apply it.

Install →

Add only what you need

Agent panel

New
@umage.ai/redline-agent

Your own agent CLI, run from the overlay. Apply notes with one click, see on the page whether the agent is working, waiting or done, answer its questions in a card, and see what it changed. Local dev only.

Add it when you want notes applied without opening a terminal.

Why we built it →

Team hub

Reference server
@umage.ai/redline-hub

A shared note server: projects, a personal token per reviewer, live notes for everyone, and an MCP endpoint per project for the agent. Run it as it is, or use it as the template for your own.

Add it when several people review the same app.

Your own systems

@umage.ai/redline-overlay

A documented protocol for note stores, and the overlay as browser modules. Send notes to tickets or a CMS, or run review on a deployed site behind your own login.

Add it when the feedback should land where your team already works.

Beyond your own dev server →
What's included

Point at it, and the agent finds it

Press Alt+Shift+R in the browser, or tap the launcher on a phone, and pick a mode. Every note is saved by your dev server as markdown under .redline/, next to the code.

Three ways to give feedback
  • Comment: click an element and type. Alt+click widens to the parent; Shift+click comments on the whole page
  • Text: edit any text in place; it is saved as a diff of old and new, or, with directEdit on, written straight into the source file when the text is static
  • Sketch: draw boxes, arrows, freehand and labels in six colours on top of the page
  • Labels: tag a note Bug, UX, Idea or Copy, or your own, and the agent reads the label first
  • Works on phones and tablets too, and open menus and dropdowns stay open while you pick
Everything an agent needs to find the code
  • Source file:line and the component chain, for React, Vue, Svelte, Solid, Preact, Astro, Next.js and Angular
  • The URL, a CSS selector, XPath and test id
  • Viewport, theme and recent console errors
  • A screenshot with the target outlined in red
Any coding agent, a loop that closes itself
  • npx redline init installs the guide for Claude Code, Codex, Cursor, Copilot, Gemini CLI and others that read AGENTS.md
  • The agent ticks each note and replies inline; replies appear live in the overlay
  • An optional MCP server lets agents list, read and close notes as tools
  • Markdown is the source of truth, so notes are plain files you can read and diff
Run the agent from the page
  • Apply notes sends the open notes from every page to your agent, or a single note straight from the toast when you save it; Alt+Shift+A opens the agent toolbar from anywhere
  • Status on the page: a light sweeps round the toolbar while the agent works, it glows orange when it waits for you and turns green when done; with the overlay closed, a ring on the launcher
  • Its questions in a card, with the diff, every option and a field for your own answer (Claude Code and ACP agents; other CLIs get Allow and Deny)
  • Its terminal one click away (>_), to watch it work or prompt it directly
  • Sessions get Redline's tools: the agent reads the open page's DOM and console, and the notes panel shows which note it is on
  • A fresh session per prompt with only its notes, several at once, or one session that keeps its context; optionally each in its own git worktree and branch
  • What it changed, on each session's tab: the files, with the diff, and the images and links it pointed at
  • Claude Code, OpenCode, any terminal program or ACP agent, with their own permission prompts; pick the CLI, model and effort under ⚙
  • Your own prompt buttons, and your own rules for the sessions it starts
Review together
  • A hub for shared notes: projects, a personal token per reviewer, and notes that show up live for everyone
  • An MCP endpoint per project; when the agent closes a note, the reviewer's pin turns green
  • Allowed sites per project, so nobody files notes from production by mistake
  • One SQLite file and no dependencies; any server that speaks the documented protocol works the same way
Dev only by default, wider when you need it
  • Runs only in the dev server (vite dev, astro dev, next dev, ng serve) and answers this machine only; nothing ships to production
  • Vite (React, Vue, SvelteKit, Solid, Preact), Astro, Next.js 15+ and Angular 17+, plus a middleware for other Node dev servers
  • The agent panel is local only, and every call needs a token that lives as long as the dev server
  • Building blocks for review on a deployed site, for signed-in reviewers only, and a documented protocol for sending notes to your own systems
  • Monorepos work out of the box, MIT licensed, on npm
See it in action

A look inside

Text mode

Click any text, rewrite it in place, and press Enter. The note is saved as a diff, so the agent knows exactly what to change.

Sketch mode

When words are slower than a drawing: boxes, arrows, freehand and labels, saved as SVG with a screenshot of the page underneath.

Notes and replies

Every note on the page or across the app, with the agent's reply on each one. Copy a ready-made prompt for your agent from the panel.

Agent panel: questions in a card

The agent asks before it edits. The card shows the diff and every option, on the page, so you answer without opening a terminal.

Agent panel: what it changed

The paperclip on a session's tab lists what that prompt touched: the files it changed, with the diff, and the images and links it pointed at.

Agent panel: settings

⚙ shows what is set at a glance: the CLI and its model, which notes Apply hands over, and how sessions run. Each row opens its options.

Team hub

Shared notes for a team: every reviewer's notes with their screenshots, to reply to, resolve or archive. Agents get the same notes over MCP.

Built for how we work

We build software with AI agents every day, and the slowest part of a UI change was describing it. Redline came out of that: a way to point at the running app and leave the agent a note it can act on without guessing. Every framework it supports is covered by end-to-end tests, and we use it on this site.

Once pointing was easy, the trip to the terminal became the slow part, so the agent moved onto the page as well. The agent panel runs your own agent CLI from the overlay: apply the notes, see when it needs you, answer it there.

See it in a minute

Comment, rewrite, sketch, then the agent picks up the notes and replies in the overlay.
The agent panel: apply the notes from the page, answer the agent's question in a card, see what it changed, or prompt it directly in its terminal. The overlay is real; the CLI in the recording is a scripted stand-in.

Beyond your own dev server

Redline starts on your machine: your dev server, your .redline/ folder, your agent. It doesn’t have to stay there. The notes go through a small, documented protocol to a store, so the same overlay can share notes across a team in dev (the hub is a ready-made server for that), collect feedback from editors and customers on a staging site, or send notes straight into the ticketing or CMS tooling a team already uses. Fitting that into an existing platform is part of the work we do with our clients.

If what you need is feedback on a site that is already live, from people who will never run your dev server, look at AnnotateTheWeb. It grew out of Redline: the same way of pointing at the page, as a hosted service with a Chrome extension, a shared inbox and an MCP server for your agent.

Install

Requires Node 20 or newer.

npm install -D @umage.ai/redline
npx redline init

redline init installs the agent guide (an Agent Skill plus a section in AGENTS.md, and the Claude Code, Gemini CLI or Copilot extras when the repo already uses them) and puts .redline/ in .gitignore. Add --mcp to register the MCP server as well.

Vite: React, Vue, SvelteKit, Solid, Preact

Put Redline first, before the framework plugin, in vite.config.ts:

import redline from '@umage.ai/redline/vite'

export default defineConfig({ plugins: [redline(), react()] })   // or vue(), sveltekit(), solid(), preact()

Astro

import redline from '@umage.ai/redline/astro'

export default defineConfig({ integrations: [redline()] })

Next.js (15+)

Wrap the config in next.config.ts, and put <Redline /> last in the root layout’s <body>. It renders nothing outside next dev:

import { withRedline } from '@umage.ai/redline/next'
export default withRedline(nextConfig)

// app/layout.tsx
import { Redline } from '@umage.ai/redline/next/script'
<body>{children}<Redline /></body>

Angular (CLI 17+)

Swap the serve builder in angular.json; ng build is untouched:

"serve": { "builder": "@umage.ai/redline:dev-server", "options": { "buildTarget": "app:build:development" } }

Optional: the agent panel

Add the package and turn it on. It offers the agent CLIs it finds installed (Claude Code, OpenCode) and runs them on the dev server, for this machine only:

npm install -D @umage.ai/redline-agent
redline({ agent: true })   // or { agent: 'opencode' } for one CLI by name; options for sessions, worktrees, prompt buttons and instructions in the README

Start your dev server, open the app and press Alt+Shift+R. With the agent panel on, Alt+Shift+A opens the agent toolbar.

When you have left some notes, ask your agent to work through the open Redline notes. Full documentation, options and the source are on GitHub.