跳到正文
Elon Musk· @elonmusk · X·· 2026-08-01AI 评分30
AI 导读

马斯克转发推荐write-legible-c插件,该插件通过18项检查清单约束Grok 4.5生成严格C11代码,确保每个函数不超过25行、嵌套不超过2层。插件作者称,降低模型感知复杂度可将LLM任务性能提升最高21%。

正文 · 原文

Cool

引用tetsuo@tetsuoai
grok plugin marketplace add 7etsuo/write-legible-c grok plugin install write-legible-c --trust Grok Build with Grok 4.5 is producing the most beautiful C I have ever seen come out of a model. Every function under 25 lines with one job. Nesting never past depth 2. Zero naked literals. Every failure greps to a single producing line and the happy path runs straight down the left margin. Code you can read at 2am with the pager going off. It took a standard to get there. I shipped it as a Grok Build plugin. write-legible-c gates Grok with strict C11 machine legibility every time it touches a .c or .h file. Every function is an orchestrator, a leaf, or an adapter, never a mix. A TRY macro that makes the forgotten check bug impossible to hide. An 18 item checklist the model runs before it shows you code. Clean code is a performance feature too: rewrites that cut model perceived complexity lift LLM task performance by up to 21 percent. Full 18 section standard inside.
在 X 查看被引用的帖子

来源:Elon Musk · x.com