AI 工具2026-05-09 08:00·Simon Willison Blog

Simon Willison 热议 Claude Code 输出 HTML 的"不合理有效性":放弃 Markdown,拥抱 HTML 富文本解释

Simon Willison 于 5 月 8 日撰文,讨论 Anthropic Claude Code 团队成员 Thariq Shihipar 提出的观点:向 Claude Code 请求 HTML 格式输出而非 Markdown,可以利用 SVG 图表、交互式组件、页内导航等 HTML 特性,大幅提升解释内容的可读性和交互性。Simon 已用 GPT-5.5 成功实践,生成了 Linux 安全漏洞的交互式 HTML 解释页面。

一个看似简单的输出格式选择,正在改变 AI 辅助工作的体验。

核心观点

  • HTML vs Markdown:Markdown 的 token 效率在 GPT-4 时代很重要(8192 token 限制),但在 Claude 时代,HTML 的丰富表达能力远超 token 成本的代价
  • HTML 的优势:SVG 图表、交互式组件、页内导航、颜色编码、边注等
  • 实践案例:用 GPT-5.5 生成 Linux copy.fail 漏洞的交互式 HTML 解释,效果显著

提示词示例

Help me review this PR by creating an HTML artifact that describes it. Render the actual diff with inline margin annotations, color-code findings by severity.

趋势意义

随着上下文窗口扩大(Claude 200K+),token 效率不再是首要考虑因素。HTML 作为 AI 输出格式,正在成为"富文本解释"的新标准。

来源: Simon Willison Blog
链接: https://simonwillison.net/2026/May/8/unreasonable-effectiveness-of-html/