Daily Tech Briefing
AI 科技速览

每天 5 分钟内学习 AI。获取最新的人工智能新闻,理解其重要性,并学习如何将其应用于您的工作。

AI 快讯
Dev.to AI · 2026/8/4 13:48:26

I measured how much my coding agent actually knows about my stack. It was 40%.

AI 中文解读
编程AI助手看似胸有成竹,实际对你项目的了解可能只有四成。一位开发者做了个实验:给AI出了30道关于自家技术平台的问题,结果正确率才40%。更扎心的是,AI答错时语气和答对时一样笃定,完全看不出哪些信息来自过时的训练数据。 传统的补救办法是给AI塞一堆项目说明文件,但作者发现这招有硬伤:文件内容会悄悄过期,而且没人知道这些资料覆盖了哪些知识盲区。于是他开发了一个叫mozg的工具,核心思路是让AI的知识库定期“参加考试”——输入文档网址后,系统自动生成约30道考题,知识库每次更新完都要答题打分,答错的问题会直接列出来告诉你该补什么资料。 更妙的是,AI在实际使用中遇到答不上来的问题,也会自动变成新考题,下次抓取资料时有针对性去找答案,用的人越多,知识库就越聪明。这对依赖AI写代码的开发者是个提醒:别被AI的自信语气带偏,关键信息还是得核实。对于普通人来说,这个思路也适用——凡是AI给的信息,最好留个心眼,必要时让它“考试”检验一下。
<p>My coding agent answers every question about my stack with total confidence. Last month I finally asked the question that should have been first: <em>how much of that is true?</em></p> <h2> The experiment </h2> <p>I took the platform docs my agents rely on daily — a games platform's RGS API, its math SDK, the approval checklist — wrote down what an agent <em>should</em> be able to answer, generated ~30 control questions from that, and graded the agent's answers against the actual docs.</p> <p>It scored around 40%. The worst part wasn't the score — it was that every wrong answer <em>sounded exactly like every right one</em>. Same confidence, same fluency, same code blocks. The model's training data was simply older than the docs, and nothing in the conversation could tell me which answers were from 2024.</p> <h2> Context files don't fix this </h2> <p>The standard fix is a CLAUDE.md / skills folder / a memory MCP server. I had all three. Three problems survived:</p> <ol> <li> <strong>You pay for every word, every session</strong> — the whole file rides along whether the task needs it or not.</li> <li> <strong>They rot silently.</strong> A file written in March is confidently wrong by June, and nothing tells you.</li> <li> <strong>You can't measure them.</strong> Nobody knows what a folder of markdown actually covers until the agent fails in production.</li> </ol> <h2> So I made the knowledge sit an exam </h2> <p>I built <a href="https://mozg.sh" rel="noopener noreferrer">mozg</a> around one mechanism: every knowledge base ('brain') is scored against its own purpose.</p> <ul> <li>Paste one docs URL. The crawler finds every page (GitHub tree, llms.txt, sitemap, or a link walk) and extracts it into atomic, searchable notes.</li> <li>The goal you wrote becomes ~30 exam questions. The brain sits them after every ingest. 'Trained 87%' is a measured number, and the failed questions are listed right on the brain's page.</li> <li>The exam deliberately asks about things the brain does NOT cover yet. The failures are the point — they tell you exactly what to feed it next.</li> </ul> <p>Agents connect over MCP (one command in Claude Code / Codex / Cursor) and search server-side — the context cost of an answer is the three notes it actually needed, not the 700 the brain holds.</p> <h2> The part I didn't plan: it learns from being used </h2> <p>Once real agents were querying brains, the logs contained something better than any test I could write: <strong>the questions the brain failed to answer.</strong> Now every search that returns nothing becomes an exam question automatically, and the next re-read of the sources goes hunting for it. Corrections agents file become owner-reviewed notes. The tenth user gets a measurably better brain than the first.</p> <p>That same exam turned out to be a curriculum: <a href="https://learn.mozg.sh" rel="noopener noreferrer">learn.mozg.sh</a> serves any brain as a spaced-repetition course — read, recall, quiz — with the brain's exam as the final. The scoreboard shows your percentage next to your agent's. Beating your own agent is weirdly motivating.</p> <h2> Honest limitations </h2> <ul> <li>The judge is a model, so scores wobble ±3-4 points (majority voting tames most of it).</li> <li>A brain is only as good as its sources — the exam tells you <em>that</em> material is missing, not where to find it.</li> <li>For stable, well-known knowledge (Python stdlib), a brain adds nothing — models know it. Brains earn their keep where docs move faster than training cutoffs.</li> </ul> <h2> Try it </h2> <p>The catalogue has free, no-card brains for exactly those fast-moving stacks: Next.js App Router, Expo/React Native, Svelte 5, Tailwind v4, the MCP spec itself. Connect one to your agent in a minute: <a href="https://mozg.sh" rel="noopener noreferrer">https://mozg.sh</a> — or study one yourself at <a href="https://learn.mozg.sh" rel="noopener noreferre
分享
阅读原文