AIToday
AI Coding AssistantsZenn AI/MLPublished: Oct 18, 2026, 22:00 JST

HtmlDrag shows scoped AI edits that spare surrounding page

HtmlDrag shows scoped AI edits that spare surrounding page

3 Key Points

  1. What happened

    In a demo on a fictional "Asterlane" page with three service cards, HtmlDrag selected only the middle card and sent a 931-character prompt with guard clauses, renaming it "Support triage agent" and replacing its list items.

  2. Why it matters

    The approach keeps neighboring cards and the page's shared styles unchanged, so teams can update live pages without regenerating the whole document.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, in your inbox every morning.

Context & Analysis

The demo uses a fictional "Asterlane" studio page with three service cards to show the scoped workflow. The starting middle card reads "An AI assistant for everyday customer questions and a more organized support inbox." The prompt asked for a rewrite in 20–28 words based on three facts: categorize incoming requests, draft replies using approved help content, and hand sensitive cases to a human. The output came back at 16 words. The author attributes this to token-based prediction and advises against retrying the prompt. Editing directly in the visual editor brought the description to 22 words. A version snapshot, Saved version v3, was then committed.

The piece links this to a broader pattern in frontend tooling. It cites Lovable's preview toolbar recommending direct element specification and Bolt's Visual Edits release on September 3, 2026, which centers on selecting DOM nodes to avoid full code regeneration. HtmlDrag's export strips editing attributes and outputs clean HTML, but the author notes the demo stopped at the export dialog without downloading or deploying. For production, the recommendation is to open the HTML locally and verify relative asset paths and measurement tags before publishing.

FAQ
Can I edit just one card with AI without regenerating the whole page?
Yes. Import your existing HTML into HtmlDrag, select only the target card container, and add guard clauses to the prompt. The AI's scope is limited to that DOM tree, so surrounding cards and layout stay intact.
Does selecting or locking DOM elements fully isolate styles?
No. DOM selection limits the markup being edited, but rendering still uses shared CSS. With Tailwind, you must explicitly tell the prompt to keep existing classes and not add global CSS.
What should I do if the AI misses the requested word count?
LLMs predict token by token, so strict word counts have误差.

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleOnlyFans creators question Meta's Muse sexting while Instagram restricts them