Annotate the UI of your running web app. AI agents apply the changes back to source.
Landing & demo → · Setup · CLI · API · Skills
90-second demo: watch on the landing page · inline GIF
Annotask is a dev-only tool. You open /__annotask/ next to your running app, mark up the UI, and the tool produces structured tasks. An AI coding agent reads those tasks over MCP, CLI, or HTTP, applies code changes to source, and ships them back for accept/deny in the browser.
Supports Vue, React, Svelte, SolidJS, Astro, plain HTML, and htmx on Vite. Webpack support is available through AnnotaskWebpackPlugin for the non-Astro integration path.
You in the browser Your coding agent
------------------ -----------------
Open /__annotask/
Annotate, inspect, edit,
or create audit fixes --> Reads tasks over MCP / CLI / HTTP
Locks task: in_progress
Pulls extra context only when needed
Applies code changes
Marks task review-ready
Review in the task drawer <--> Answers questions / retries denied work
Accept or deny changes
Annotask has three user-facing surfaces.
- Annotate: pins, arrows, drawn sections, text highlights, screenshots, route-aware tasks, viewport capture.
- Design: tokens, live inspector, layout overlay, detected component catalogs, in-repo component examples.
- Audit: accessibility, data sources, API schemas, detected data/state libraries, performance findings, console errors.
Tasks can carry grounded context when available:
- source file and line
- component references and examples
- viewport and route
- screenshots
- color-scheme detection
- interaction history
- element context
- data context and API schema links
Install:
npm install -D annotaskVite:
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { annotask } from 'annotask'
export default defineConfig({
plugins: [vue(), annotask()],
})Webpack:
import { AnnotaskWebpackPlugin } from 'annotask/webpack'
export default {
plugins: [new AnnotaskWebpackPlugin()],
}Start your dev server, then open http://localhost:5173/__annotask/.
Connect an agent over MCP:
npx annotask init-mcp --editor=claudeOr install the bundled skills:
npx annotask init-skills- MCP:
POST /__annotask/mcpwith 21 tools for tasks, design spec, components, screenshots, code context, data context, data sources, API schemas, runtime endpoints, interaction history, and rendered HTML. - CLI:
annotask status,tasks,task,design-spec,components,component-examples,data-context,data-sources,runtime-endpoints,interaction-history,rendered-html,api-schemas,resolve-endpoint,init-mcp,init-skills,mcp, and more. - HTTP + WebSocket: local API under
/__annotask/api/*and live updates on/__annotask/ws.
Canonical task types live in src/schema.ts:
annotationsection_requeststyle_updatetheme_updatea11y_fixerror_fixperf_fixapi_update
Statuses:
pendingin_progressappliedreviewaccepteddeniedneeds_infoblocked
Typical path:
pending -> in_progress -> review -> accepted | denied
\-> needs_info
\-> blocked
applied exists as an optional intermediate automation state and is accepted by the API, CLI, and MCP layers.
- Route-aware task filtering and editable route bar
- Screenshot uploads and automatic cleanup on acceptance
- Variant-aware design spec with
themes[],defaultTheme, and per-theme token values - Workspace-aware scanning across monorepos and MFEs
- MFE filters in the shell's Components and Audit data views
- Component examples from real in-repo usage
- Data-source discovery, binding analysis, and endpoint-to-schema resolution
- Runtime endpoint monitoring — the iframe's actual fetch/XHR/beacon calls surface as a runtime catalog alongside the static scan
- Local
axe-coreaccessibility scanning - Performance snapshots, findings, and session recording
- Console error and warning capture with one-click fix tasks
- Always-captured interaction history and rendered-HTML sidecars per task
- 18 built-in shell themes plus custom theme editing across 63 CSS variables
| Framework | Vite | Webpack |
|---|---|---|
| Vue 3 | Yes | Yes |
| React | Yes | Yes |
| Svelte | Yes | Yes |
| SolidJS | Yes | Yes |
| Plain HTML | Yes | No |
| Astro | Yes | No |
| htmx | Yes | No |
Annotask is dev-only. It does not run in production builds.
Annotask is workspace-aware. When the project lives inside a pnpm, npm, Yarn, Bun, or Lerna workspace, server-side scanners can walk sibling packages for:
- component libraries used by adjacent MFEs
- project data sources and bindings
- API schemas
- workspace package metadata and MFE ids
For MFE setups, child apps can point at a root Annotask server with annotask({ mfe, server }) or new AnnotaskWebpackPlugin({ mfe, server }).
- SETUP.md
- docs/setup.md
- docs/cli.md
- docs/api.md
- docs/skills.md
- docs/component-discovery.md
- docs/architecture.md
- docs/development.md
pnpm install
pnpm build
pnpm dev:vue-vite
pnpm typecheck
pnpm test
pnpm test:e2eUseful extras:
pnpm dev:shellfor standalone shell UI workpnpm test:e2e:stressfor the stress-test environmentpnpm stress-test:up/pnpm stress-test:downfor Docker-based stress services
src/plugin/- Vite integration and transform pipelinesrc/server/- HTTP API, WebSocket server, persistence, scannerssrc/mcp/- embedded MCP serversrc/webpack/- Webpack plugin and loadersrc/shell/- Vue shell UI served at/__annotask/src/cli/-annotaskCLIsrc/schema.ts- canonical task, report, design-spec, and context typesskills/- bundled/annotask-initand/annotask-applyskillsplaygrounds/simple/- single-framework demosplaygrounds/stress-test/- multi-MFE, multi-service stress lab

