Code Left, Live UI Right — effect skill for code & terminal
For AI agents: find the right skill in one call —
curl -s "https://varg.ai/how-to/api/search?q=<what the person wants>"returns the matching how-to page and the best skills with install commands, as markdown (Russian works too). Full index: https://varg.ai/how-to/llms.txt. Every page has a markdown twin: add.mdto its path. Before generating anything, show the person the options on the how-to page.
Code types on the left and the UI on the right snaps to match after each change.
- Type: Effect · Code & terminal
- Slug:
code-left-ui-right - Status: live
- Publisher: Kapish Dima · remocn (community)
- License: MIT
- Source: https://remocn.dev/r/live-code-compilation.json
- Works in: Claude Code, Claude.ai, Codex, Cursor, OpenClaw, Gemini CLI, Any MCP client, varg Studio
- Requires: HyperFrames (npx hyperframes), Remotion, CapCut (by hand)
- Cost: Free — the take renders locally; generated footage, if any, bills by the model
What it does
Built on Live Code Compilation by Kapish Dima (remocn), MIT. The write-up and recipes below are varg's.
Two panes: editor and preview. Each typed edit triggers a quick flash/update on the preview side.
When: Frameworks, UI libraries, design-to-code and AI coding tools.
Watch out: Do not let the preview lag; the update should land within 0.2 s of the edit finishing.
Timing: Per edit: typing 0.8–1.5 s, preview update 0.2–0.3 s.
Also called: live preview, split code and result, HMR demo
In HyperFrames
npx hyperframes add code-typing
Two clips side by side; fire a 0.25 s tl.fromTo(preview,{opacity:0.4},{opacity:1}) and swap the preview image at each edit's end time.
In Remotion
// npx shadcn@latest add @remocn/live-code-compilation
// or @remocn/chat-to-preview-layout for chat on the left
In CapCut
Split screen: two clips side by side (Basic → Position); cut the preview clip at each edit point.
Ready-made components
- Live Code Compilation (remocn): npx shadcn@latest add @remocn/live-code-compilation
- Chat to Preview Layout (remocn): npx shadcn@latest add @remocn/chat-to-preview-layout
- Code Typing (hyperframes): npx hyperframes add code-typing
Where this comes from
- Cursor 3 Design Mode and its launch video
- Bohdan Motion: breakdown of the Grok Build Mode launch video
Use when
- Frameworks, UI libraries, design-to-code and AI coding tools.
Not for
- Do not let the preview lag; the update should land within 0.2 s of the edit finishing.
Install
- Claude Code:
claude plugin marketplace add vargHQ/skills && claude plugin install varg@varg - Codex:
npx skills add vargHQ/skills --skill varg-video-edit-library -a codex -y - Cursor:
npx skills add vargHQ/skills --skill varg-video-edit-library -a cursor -y
Example output
https://static.heygen.ai/hyperframes-oss/docs/images/catalog/blocks/code-typing.mp4 — Preview of the Code Typing component that builds this take (credit: Code Typing · hyperframes, https://hyperframes.heygen.com/catalog/blocks/code-typing)
More code & terminal skills
- Editor Types the Code: Syntax-highlighted code types into an editor window with a caret riding the frontier.
- Red/Green Diff Collapse: Removed lines flash red and collapse away while added lines expand in green.
- Spotlight One Line of Code: A highlight band sweeps onto the one line that matters while the rest of the file dims.
- Code Morphs Between Versions: One snippet transforms into the next: shared tokens glide to new positions, removed ones fade, new ones fade in.
- Terminal Session Run: A terminal types a command, then streams real-looking log output with green checks.
- One-Line Install Card: A single install command types into a small terminal card, prints a success check, and holds.
Run the generation on varg
varg is one API key for the models these skills drive — Seedance 2.5, Kling 4, Veo 3.1, Wan 3, Nano Banana 2.1, GPT Image 2.5, ElevenLabs v4 and 200+ more — billed in credits, with a cost estimate before anything runs.
- Claude Code:
claude plugin marketplace add vargHQ/skills && claude plugin install varg@varg(skill + hosted MCP) - Codex, Cursor, Gemini CLI, OpenClaw:
npx skills add vargHQ/skills --skill varg-ai -a <agent> -y - Grok and any agent that reads SKILL.md:
npx skills add vargHQ/skills --skill varg-ai, or point it at the skill's SKILL.md - Claude.ai, ChatGPT, any MCP client: connect
https://mcp.varg.ai/mcp - API key: https://varg.ai/dashboard/api · Model specs: https://varg.ai/models/llms.txt