live-canvas

live-canvas is a command for coding agents from hamr0/liteagents. It costs 50 tokens per session (9,947 once invoked), scanned A, original, Apache-2.0.

A browser-based workflow for exploring and refining user interfaces through design interviews, generated variations, and click-to-annotate feedback. It streams feedback into the active coding session so interface changes can be made during review.

In plain words
What is it for?
Use it to compare UI variations, collect annotated comments, refine a design interactively, preview the result, and finalise it.
Why use it?
It keeps design discussion and visual feedback connected to the editing session instead of requiring separate, delayed feedback rounds.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/hamr0/liteagents/live-canvas
Clone the repo
git clone --depth 1 https://github.com/hamr0/liteagents

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for live-canvas

README.md
[![agentmods](https://agentmods.dev/badge/commands/hamr0/liteagents/live-canvas.svg)](https://agentmods.dev/commands/hamr0/liteagents/live-canvas)
Your own site
<a href="https://agentmods.dev/commands/hamr0/liteagents/live-canvas"><img src="https://agentmods.dev/badge/commands/hamr0/liteagents/live-canvas.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 9,947 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00050 $0.09947
Opus 5 $0.00025 $0.04973
Sonnet 5 $0.00010 $0.01989
Haiku 4.5 $0.00005 $0.00995

Measured 4d ago against content hash 94eb6866fb35, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

live-canvas scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

packages/ampcode/commands/live-canvas.md · 1,084 lines

How it starts

The opening of the file, as written. The whole thing — 1,084 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Live Canvas Skill

This skill implements a complete design exploration workflow: interview, generate variations, collect feedback, refine, preview, and finalize.

CRITICAL: Cleanup Behavior

All temporary files MUST be deleted when the process ends, whether by:

  • User confirms final design → cleanup, then generate plan
  • User aborts/cancels → cleanup immediately, no plan generated

Never leave .claude-design/ or __live_canvas routes behind. If the user says "cancel", "abort", "stop", or "nevermind" at any point, confirm and then delete all temporary artifacts.


Feedback Modes — always ask the user

Live Canvas supports two feedback transports. The user picks every time — never auto-select.

  • Live channel (Claude Code only): the overlay POSTs each Save to a local MCP channel server; feedback arrives in the active session as a <channel source="live-canvas" ...> tag. Requires the session was launched with live-claude (or claude --dangerously-load-development-channels plugin:live-canvas-channel@live-canvas-marketplace) — channels are still an experimental Claude Code feature and a plain claude session silently drops the notifications. Any qualifying session can claim the channel by calling mcp__live-canvas__channel_open; only one holds it at a time.
  • JSON file (universal): each Save accumulates locally; Submit writes .claude-design/feedback.jsonl (or downloads the JSON). User says "check" or pastes the file when ready. Works in any host.

Host detection — do this first

This SKILL.md is the Claude Code variant of the skill. Same content is mirrored as docs for Droid/Amp/Opencode under packages/<tool>/commands/live-canvas/, but those tools don't support the MCP channel.

If running under Droid, Amp, or Opencode (not Claude Code):

  • Skip the mode question entirely.
  • Announce: 📝 JSON mode (Live channel requires Claude Code).
  • Proceed to Phase 1 with channelUrl omitted in the overlay init.
  • Never mention the channel plugin.

Read the full file on GitHub · 1,084 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 1,084 lines · 50 tokens per session scan A 94eb6866fb35

Subscribe to this mod's changes

live-canvas is a command published in the GitHub repository hamr0/liteagents (22 stars, last pushed today), licensed Apache-2.0. It adds 50 tokens to every session and 9,947 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.