这是 Simon Willison 发布的一篇信息,发布时间为 2026 年 7 月 16 日:/2026/Jul/16/。
以每月 10 美元赞助我,即可获得经过策划的本月最重要大型语言模型动态的电子邮件摘要。
While exploring the codebase:https://simonwillison.net/2026/Jul/15/grok-build/ for the newly open-sourced Grok CLI coding agent I came across xai-grok-markdown/src/mermaid.rs:https://github.com/xai-org/grok-build/blob/b189869b7755d2b482969acf6c92da3ecfeffd36/crates/codegen/xai-grok-markdown/src/mermaid.rs, a "self-contained terminal renderer for Mermaid diagrams" written in Rust.
I figured it would be fun to try that out in a browser via WebAssembly. Here's the prompt:https://github.com/simonw/tools/pull/293#issue-4897479396 I ran in Claude Code for web (Fable 5), and this is what the resulting tool looks like:
Auth{Authenticated?} Auth -->|yes| Rate{Rate limit OK?} Auth -->|no| R401[401 Unauthorized] Rate -->|yes| H(Handle request) Rate -->|no| R429[429 Too Many Requests] H -.-> Log[Audit log] H ==> Resp[200 OK]. Below the code are controls labeled Max width: Fit output panel, Copy as text, and Copy link to this diagram. The rendered flowchart on a dark background flows top-down: Request received leads to Authenticated?, which branches yes to Rate limit OK? and no to 401 Unauthorized. Rate limit OK? branches yes to Handle request and no to 429 Too Many Requests. Handle request connects with a dotted arrow to Audit log and a thick arrow to 200 OK." src="https://static.simonwillison.net/static/2026/grok-mermaid-wasm.png" />
This is a beat by Simon Willison, posted on 16th July 2026:/2026/Jul/16/.
Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.
情报判断
Aioga 编辑摘要
xAI 新近开源的 Grok CLI 编码智能体代码库包含一个 Rust 编写的 Mermaid 终端渲染器,可将图表转换为适合终端展示的 Unicode 框图。Simon Willison 又借助 Claude Code for web 将其编译为 WebAssembly,使工具能够在浏览器中运行。