We're Using AI Wrong. The Chat Window Sucks.

Chat windows are terrible interfaces for doing work.

Ken St. Clair, September 2026

AI chat windows are everflowing rivers where every leaf you drop into that river immediately floats away, and good luck finding it. Type something, the agent responds, and within seconds the answer scrolls up and out of sight.

How often do you go hunting through your endlessly scrolling chat to try and find something that was said just a minute ago? It's almost like we WANT it to look like the Matrix. Never has a good designer said "Let's show the user all the different function calls the backend is making to show this webpage," but that's what a chat window does. It's a terrible UX.

And it doesn't have to be.

A Claude Code terminal window full of scrolling status text and a long summary, with a large red X drawn across the whole thing.
Figure: Who thought this was a good UX for work?

MD is dead. Long live HTML.

Markdown (.md) documents are cool, but they came and went faster than we let our Tamagotchis die in the 90s. Now, HTML as an everyday document is the new sliced bread (yes, thank you Boris).

HTML docs were initially great because they are beautiful and easier to read, but also more functional. First we remembered that HTML allows live elements like interactive graphs. And holy-fricking-cow that's so much cooler than a .doc or .ppt.

Four interactive charts in a two-by-two grid: a horizontal bar chart of rules added by kind, a stacked bar chart of which kinds of rule each phase produced, a bar chart of how many rules reached each home, and a step chart of rules accumulating across 27 hours.
Figure: live Plotly charts inside an HTML report about this site's build.

But local HTML-as-a-document has a secret: you can turn any local HTML page into an interface for your AI.

I'm not the first or only person to have done this. It's a logical next step. A lot of people are figuring it out at the same time because the existing conditions make it only one step away from where we're standing.

The pain is simple and pervasive: I don't want to copy/paste things back and forth from a chat window to a document. And I want to be able to find what we said when we were workshopping that title without scrolling the endless chat.

Enter Lahe

When HTML lives on your machine, it's really easy to inject additional functionality into it. By combining a locally running server with an injected javascript package, you can create a direct interface to your AI, in your browser. This is Lahe, the Live Agentic HTML Editor, a quality of life tool that I built largely to make my own processes better.

A browser window showing a document titled A weekly video series that follows the Startup Studio class, with a review rail on the right holding a note asking whether this is a deprecated version and the agent's reply.
Figure: An AI agent is interacting with me through an injected side rail and we're discussing the current document without me having to ever look at the chat window.

Once we create this pattern, suddenly a whole host of fun new ways of working opens up.

First, I don't actually want that sidebar visible most of the time. Collapse it, get rid of it, and now I'm looking at a document that looks like a webpage, but I can select anything and edit it.

A design document with one section highlighted and a comment box open on it, containing a typed request and an active Send button.
Figure: Collapse the sidebar. When I highlight something and hit a hotkey, I get a comment box.

When building this website, I spent a lot of time creating a style system. This simple-bordering-on-boring set of fonts, colors, and layouts is the result of over 700 comments and edits over the course of two days. Using this document review tool Claude and I iterated over 97 different review pages, 49 different logo options, examined over 85 stock images from Pexels, created 19 original line drawings and 17 original video files

At that clip, the act of just having to switch windows to the chat is enough to significantly hamper the velocity.

What happens when your todo list can take action?

The design process I followed actually used over 120 subagents. And you start to realize, well if I've got a bunch of subagents at my disposal from the browser, can't I do a lot more than edit this document?

Yes. Yes you can. Now your todo list (or "daily briefing" or whatever fun name you're calling it), can create a line item that says "Don't forget you need to email your weekly report" and you can click that item and say "draft that up for me please."

Without ever leaving your todo list. And if you want to take it a step further, well you own the todo list format, so why not just add a button that will trigger the AI to go off and take care of it without you having to say anything at all? With HTML as the medium we have the last 20 years of UX learnings as options for how to interact with AI.

A class punch list open in the browser, with sections Where things are and Done full of checked items, and the review rail on the right holding a comment on one item and a reply from Claude asking which article to pull.
Figure: A todo list with embedded chat

This small change, not having to leave your todo list, is great for reducing task switching. And when you're as ADHD as I am, it keeps you from wandering off on 17 tangents because you opened your email.

One orchestrator, several tabs

It turns out you can also have one agent managing multiple tabs.

While working on this article I said, from within the page, "Help me workshop the title. I want good hooks," and Claude opened another tab for me, where we went through 3 rounds of "more of this, less of that" and finally arrived at a title.

A page of candidate article titles in bordered cards, each with a subtitle and a note, with comment cards from the reviewer attached down the right side.
Figure: I wanted to workshop the title. Isn't this much better than 10 titles in a chat thread? And the same agent managed both windows, so once I identified the winner I just asked it to swap it in on the article page, and it can.

And because it’s so easy, the bandwidth of information between myself and the agent is increasing. So I am giving more and more information about what I want and like, which means I'll get better results from the AI.

At that point I told the second tab, "Ok we found it. Plug this in to the article." I closed the tab and went back to the article, and the title updated on the original tab.

That should feel a little mind-blowing. Tabs open for me automatically when I need a new surface to workshop something, and when we're done and I close them, the final result is automatically plugged back in to the core working document.

Level up with voice

From here the next level is to talk. Use your words. Out loud. If you're not using a voice transcription service yet, it's incredible.

As someone who is very adhd and very physically-oriented, I have long dreamt of being able to pace around the room while getting work done, but I've always been chained to my keyboard. (There's certainly some satisfaction in good, accurate, fast typing though too).

The same document with two reply cards from the agent stacked on the page, the icons in the section changed to filled colored circles, the comment rail open with a fresh empty box, and a dictation waveform overlaid mid-page.
A busy minute. Claude is sending responses to me in the browser, and I'm dictating the next comment.

Add voice transcription and you can walk around your office, microphone in hand, rattling off your outline to an AI that can assemble a structure for you to fill in.

One editor, many formats

Since Lahe is working in HTML, we can now use this editing style for documents, presentations, and even our webpage designs.

A live website open in the browser with the review rail on the right holding a comment thread and the agent's reply, and a terminal sliver at the left edge.
Figure: Use your webpage like normal, but with AI embedded.

When I review new features now, I can comment directly in the HTML as I walk through the feature. Again it's an ostensibly small change, but the impact is pretty great.

Compound knowledge with end of session print outs

I do enjoy writing, but I also don't need to write a quick response email. But in the past I didn't use AI for that because of the obvious AI tells.

Using an editor like this, you get another hidden benefit. Every hand edit you make is tracked, and can be exported at the end of your session. Which means over time you accumulate a series of files that have the diffs between what an AI wrote and how you corrected it. This is incredible data for tone of voice analysis and instruction.

A slide deck open in the browser with a reply toast from the agent in the top right corner and a small review badge in the bottom right.
Figure: a reply toast landing on a slide deck.

Make it better

This is just an open source passion project, so I'd love to see how you would make it better. I've been using this tool pretty much non-stop lately, and I've gotten it to a point that it's pretty nice to use, but as soon as you hand it to someone else they'll find something obvious to improve!

Code is available here on my github, so have a look and customize to your needs! Let me know what you end up adding!

Help other people find the tool by starring the repo! Thanks!

(Article written collaboratively with AI, including 248 human comments/edits.)

Book a call

30 minutes, video or phone

Loading the calendar

Or email me at ken@stclair.ai