Video: Building a tool to copy-paste share terminal sessions using Claude Code for web

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Shows a concrete, reusable pattern: build single-file browser tools by prompting Claude Code to combine existing tools in a repo, avoiding manual glue work.

Read this as

Simon Willison published an 11-minute video showing him build a small web tool using Claude Code, an AI coding assistant. The tool turns copied terminal output into shareable web pages by converting it to HTML, saving it to GitHub Gist, and returning a link. He demonstrates the whole process from a single detailed written prompt to a finished app. It matters because it shows ordinary professionals how AI can automate small repetitive computer chores.

This is a workflow demonstration, not a product launch: Willison shows how a carefully detailed prompt to Claude Code, Anthropic's coding agent, produced a working terminal-to-HTML sharing tool in one session. The key reusable idea is prompting by reference, telling the agent to copy patterns from existing tools in the same repo rather than describing everything. Cost is minimal and risk low; anyone maintaining a tools collection gains practical prompting technique.

Willison vibe-coded a terminal-to-html tool via Claude Code for web, prompted to combine rtf-to-html.html's RTF parsing with openai-audio-output.html's Gist-saving flow. The tool handles three paste formats: RTF from macOS terminal clipboards, plain HTML, or plain text wrapped in <pre> tags. GitHub OAuth runs through a minimal Cloudflare Worker; deploys use GitHub Actions plus Cloudflare Pages, and docs are auto-generated by his llm tool running Claude Haiku 4.5. The working tool is live at tools.simonwillison.net.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Claude Code rtf-to-html terminal-to-html GitHub Gist gistpreview.github.io Descript

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading