Glean 拾遗
← All issues
#010 7/27–8/2 Published Aug 8

From Magic to Engineering: Agents Come of Age

One subtext runs through this week's picks: agents are coming of age. Anthropic migrates a million lines in two weeks; OpenAI engineers publish their daily Codex workflows; a four-agent pipeline ships features overnight. The conversation has shifted from how clever models are to how dependable the systems around them can be—harness layers, review gates, token economics, and security tooling are now the real frontier. Google's work on symptom assessment and weather ensembles shows what happens when probabilistic systems leave the chat window: uncertainty must be quantified, not avoided. Hassabis asks for a standards body to govern frontier models. Meanwhile, a wave of vendor content from Kimi and Higgsfield proves that narratives are being manufactured as fast as tools. Consider this issue a field guide to telling the two apart.

21 picks 4 sections ~5 hr
Section 01

The Probabilistic Substrate: Models Are Not Programs

3 / 21
x.com · 12 min
01

How LLMs Actually Work — A Beginner's Guide to Next-Word PredictionLLM 如何在底层运作——从预测下一个词开始的新手拆解

This guide explains LLMs as giant autocomplete systems, starting from tokenization through the three-stage training pipeline. Hallucination is framed as a feature of statistical prediction, not a random bug. Practical prompting principles close the loop, making this a plain-language reference for engineers who need the intuition without the math.

x.com · 27 min
02

From GPT2 to Kimi3: A 22,580x Scale-Up with Architectural Evolution从GPT-2到KimiK3:七年规模增长22,580倍的架构演进全解析

This worklog traces the architectural evolution from GPT-2 (2019) to KimiK3 (2026) with code snippets and diagrams. The central claim: progress is not just scale but innovations in state management and retrieval. It covers KV cache bottlenecks, linear attention's fixed-state trade-off, DeltaNet's precise overwriting via delta rule, Gated DeltaNet adding forgetting, KDA/Kimi Linear with per-channel gating, and finally KimiK3's hybrid of KDA and MLA layers, MoE, SiTU activation, and blockwise AttentionRes (AttnRes) for selective depth-wise residual access. Suitable for engineers interested in LLM internals.

x.com · 16 min
03

Why Harness Engineering Is So HardLLM护套工程为何如此困难——从测试到迭代的真实痛点

Based on five months of real-world experience (104 commits), this article dissects the structural difficulties of turning LLM demonstrations into reliable products. Key challenges include: inability to write deterministic tests (same input yields different output each time), silent and graded failures (1% error hidden in 99% correct output), debugging natural language paragraphs instead of code (a single adjective can be a bug), the additive instinct trap (prompt growing from 20 to 200 lines causes contradictions), examples steering harder than rules, unstable model foundation (vendor updates silently shift behavior), slow and expensive feedback loops, and invisible work (outsiders think it's just writing prompts). The author argues that harness engineering (prompts, validators, evals, guardrails) is the true moat, with difficulty stemming from the probabilistic nature of the substrate, which cannot be engineered away but only absorbed. Recommended for LLM app developers, AI engineers, and tech leads.

Section 02

From Demo to Assembly Line: Agent Engineering in the Field

10 / 21
x.com · 17 min
04

Agent Harness Engineering vs. Loop Engineering vs. Graph EngineeringAgent 架构三层次:Harness、Loop 与 Graph 工程区分

A practical guide distinguishing three architecture layers for AI agents: Agent Harness (code, config, runtime around the model), Loop (repeated work-feedback cycles), and Graph (explicit workflow topology). The author explains what each layer owns, common mistakes, and how to choose the right lever when debugging. Includes a symptom-to-layer mapping table and a production-ready checklist. Essential reading for teams moving agents from demos to production.

x.com · 5 min
05

A Guide to Building Personal AI Infrastructure个人 AI 基础设施构建指南

This article presents a systematic guide to building a personal AI digital assistant based on Daniel Miessler's Personal AI Infrastructure (PAI) framework. The core thesis: don't start with tools, start with yourself. It covers the TELOS identity system (10 Markdown files defining mission, goals, beliefs, etc.), a three-tier memory architecture (hot/warm/cold), a decision priority chain (goal → code → CLI → prompt → agent), a user/system separation directory design, and an event hook system. It emphasizes that architecture matters more than model choice—a good context management system with an ordinary model often outperforms a top model without context. Suitable for engineers and knowledge workers who want to build a personalized, continuously learning AI assistant.

x.com · 15 min
06

How Anthropic runs large-scale code migrations with Claude CodeAnthropic 用 Claude Code 实战百万行代码迁移:6 步流程与关键教训

Anthropic engineers used Claude Code (Fable 5 and Opus 4.8) to migrate Bun from Zig to Rust in two weeks, producing one million lines of code with 100% test pass rate; another engineer ported a Python codebase to 165,000 lines of TypeScript over a weekend. The article details a six-step migration process: create rulebook and dependency map, stress-test rules, translate everything (parallel), compile, run, and match behavior. The core insight is to fix the loop that produces code, not the code itself. It discusses when migrations are justified, why AI changes the economics (parallelism, clear context, built-in referee, self-generating queue), and best practices (use smaller models for implementation, largest for review). Concrete token and cost data are provided: Bun migration consumed ~5.9B uncached input tokens and 690M output tokens, costing ~$165k at API pricing.

x.com · 10 min
07

How to build a 4-agent team that ships a feature while you sleep4 个 Agent 串成一条流水线,让你睡醒就能收功能

A local Claude Code pipeline chains four subagents (planner → coder → tester → reviewer) via handoff files under `.pipeline/`, all triggered by a single `/ship` slash command. The Planner writes an implementation spec; the Coder builds to it and outputs a changes summary; the Tester writes and runs tests, stopping on failure without patching code; the Reviewer is read-only and issues a SHIP / NEEDS WORK / BLOCK verdict. The setup is copy-paste ready. A brief mention of the Teamly platform shows a similar orchestration model, but the core value is the handoff architecture you can run locally.

openai.com · 14 min
08

How OpenAI Engineers Use Codex: 7 Use Cases, 6 Workflow PracticesOpenAI 自家工程师怎么用 Codex:七个用例与六条工作流实践

OpenAI published an official guide describing how its own security, frontend, API, infrastructure, and performance teams use Codex day to day. It covers seven use cases: code understanding, refactoring and migration, performance optimization, test coverage, development speed, staying focused, and exploration. The most actionable part is six best practices: start with Ask mode before switching to execution mode for large changes; maintain AGENTS.md to give Codex persistent context; write prompts like GitHub Issues, including file paths, component names, and diffs; use the Codex task queue as a lightweight to-do list; and use Best of N to compare multiple outputs. The guide quotes engineers with concrete claims, such as replacing every legacy getUserById() call and creating a PR in minutes, or overnight runs producing mergeable unit test PRs. It is vendor-authored, so it lacks failure cases and hard metrics, but the prompt templates and workflow tips are directly reusable for teams evaluating Codex.

x.com · 10 min
09

How 5 Tools + Custom Hooks Cut Claude Code Token Usage by 90%+如何用 5 个工具 + 自定义 Hooks 把 Claude Code Token 消耗砍掉 90%+

A practical guide to cutting Claude Code token usage by over 90% using five layered tools and custom Hooks. CBM replaces file-greping with knowledge graph queries (99.2% token reduction), context-mode extends 200K-window sessions from 30min to 3h+, RTK compresses shell output, Headroom compresses the full API payload before sending, and Caveman trims verbose replies. Enforcement Hooks ensure each layer is used by default, reducing code search tokens from ~400K to ~3.4K.

code.claude.com · 9 min
10

Ultrareview: Deep code review with remote sandbox agentsUltrareview:Claude Code 远程多 Agent 深度代码审查

Ultrareview is a deep code review feature from Claude Code that launches a fleet of reviewer agents in a remote sandbox to find bugs in your branch or pull request. Compared to local review, it offers higher signal (each finding is independently verified), broader coverage (parallel agents), and no local resource usage. Use /code-review ultra from the CLI; supports base branch, PR number, and plain-word descriptions. Non-interactive subcommand claude ultrareview is available for CI. Billing: 3 free runs for Pro/Max, then $5–$25 per review. Diff limit: 500 files / 8,000 lines. Runs in 5–10 minutes. Useful before merging substantial changes.

github.com · 2 min
11

OpenAI's AI-Powered Code Security Scanner CLI and SDKOpenAI 推出 AI 代码安全扫描 CLI/SDK,集检测、验证与修复于一体

Codex Security is a CLI and TypeScript SDK from OpenAI that uses large language models to find, validate, and fix security vulnerabilities. It supports configurable models (e.g., gpt-5.6-terra), adjustable effort levels, and can be integrated into CI/CD pipelines. Authentication can be via ChatGPT sign-in or API key. It helps developers automatically detect and remediate security issues before deployment.

github.com · 46 min
12

Official MCP server giving coding agents live Chrome DevTools control为 AI 编码助手接管 Chrome 的官方 MCP 服务器

chrome-devtools-mcp is the Chrome team's official Model Context Protocol server that lets coding agents drive a real Chrome browser. It exposes DevTools capabilities as 50+ MCP tools covering input automation, navigation, network inspection, performance tracing, heap snapshots, console debugging, screenshots, and more, and uses Puppeteer to reliably wait for actions to complete. Agents can also attach to an already-running Chrome to reuse session state. Built for engineers who want AI assistants to perform browser automation, frontend debugging, and performance analysis.

github.com · 6 min
13

Pi: All-in-One AI Agent Toolkit with Unified LLM API and Coding Agent CLIPi: 全能 AI Agent 工具包,统一 LLM 与编码代理 CLI

Pi is an open-source AI agent toolkit offering a unified multi-provider LLM API (OpenAI, Anthropic, Google, etc.), an extensible agent runtime with tool calling and state management, an interactive coding agent CLI, and a terminal UI library. It addresses component fragmentation in building AI agents via modular npm packages, with containerization support and supply-chain security hardening. Ideal for engineers building, deploying, or customizing AI agents, especially coding agents.

Section 03

Beyond the Chat Window: Real-World Validation and Governance

3 / 21
research.google · 11 min
14

SymptomAI: Towards a conversational AI agent for everyday symptom assessmentSymptomAI:Google大规模对照研究显示AI对话问诊准确率不逊于医生

Google Research introduces SymptomAI, a conversational AI agent based on Gemini Flash 2.0 for symptom assessment. In a randomized national study with 13,917 participants, five prompting strategies (dynamic, fixed canonical, flexible canonical, and unguided baseline) were compared against clinician assessments. Key findings: clinicians preferred SymptomAI's differential diagnosis (DDx) over peer clinicians' in >50% of cases; all agent-driven strategies significantly outperformed the unguided baseline in top-5 accuracy; AI's relative advantage was greatest for low-confidence clinician cases. SymptomAI diagnoses correlated with Fitbit biosignals (heart rate, skin temperature, sleep) around symptom onset, especially for respiratory infections. The work demonstrates AI's potential for real-world symptom assessment but stresses that all outputs are research-only.

research.google · 11 min
15

Generative AI to Quantify Uncertainty in Weather Forecasting用扩散模型高效生成天气预报集合:Google SEEDS

Google Research introduces SEEDS (Scalable Ensemble Envelope Diffusion Sampler), a generative AI model that efficiently produces weather forecast ensembles using denoising diffusion probabilistic models. Traditional physics-based ensemble forecasting requires hours on supercomputers and typically yields only 10-50 members due to cost. SEEDS conditions on as few as one or two operational forecasts and generates 256 ensemble members in 3 minutes on TPUv3-32, achieving comparable or better skill scores (rank histogram, RMSE, CRPS) while accurately representing tail probabilities for extreme events. For the 2022 European heatwave, SEEDS' 16,384-member ensemble captured observed conditions that the 31-member operational ensemble missed entirely. This hybrid approach can free computational resources to improve physical model resolution or forecast frequency.

x.com · 9 min
16

A Framework for Frontier AI and the Dawning of a New AgeDemis Hassabis:建立前沿AI标准机构以迎接AGI时代

Demis Hassabis argues that AGI is only a few years away and will be as transformative as electricity or fire. To manage risks, he proposes a US-based Standards Body modeled on FINRA that would test frontier AI models (especially for cybersecurity, biological threats, and agentic deception) before public release, initially with a 30-day voluntary review window that could later become mandatory. The framework is designed to keep pace with rapid advances and could be ratcheted up to coordinate a slowdown if needed. He calls for international consensus to ensure AGI benefits all humanity.

Section 04

When Marketing Writes Tutorials: Reading Vendor Narratives

5 / 21
www.kimi.com · 15 min
17

Vibe Coding Explained: Concepts, Examples, and Kimi's ToolsVibe Coding 概念、案例与 Kimi 工具链全解析

Kimi's official guide to vibe coding covers the concept, comparisons with traditional development, and five self-reported examples (resume scoring, portfolio site, admin dashboard, crypto profit simulator, plywood cutting planner), then shifts into a product tutorial for Kimi Websites and the terminal-first Kimi Code CLI. It includes concrete install commands, a sample prompt, and a three-step workflow, along with pros/cons and security caveats. Suitable for beginners who want to try Kimi's toolchain; experienced engineers may pick up basic Kimi Code usage, but the article lacks verifiable data or third-party comparisons and reads as product promotion.

www.kimi.com · 12 min
18

Agentic Coding, Explained: A Beginner's Guide With a Kimi Code PitchAgentic Coding 入门指南:从工作循环到 Kimi Code 的官方宣传

An official Kimi blog post presenting a beginner's guide to agentic coding, defining the plan-act-observe-revise loop and contrasting it with vibe coding. It argues agentic coding suits complex, multi-step, production-grade tasks with stronger developer control. The rest of the article is a promotional walkthrough for Kimi Code, a terminal-first coding agent powered by Kimi K3, including install commands, OAuth/API authentication, and a list of claimed benefits. No benchmarks, reproducible tests, or independent evaluation are provided, so it reads more like a landing page than a technical report. Useful only for a high-level overview; engineers seeking evidence to evaluate such tools will be disappointed.

www.kimi.com · 11 min
19

AI Programming: Workflows, Tool Types, and Review ChecklistAI 编程实用指南:四步工作流、工具矩阵与代码验收清单

This article from Kimi positions AI programming as a code-centered workflow: instruction plus repository/runtime context, then generation with evidence. It categorizes tools into completion, assistant, agent, and review, and maps AI support across the SDLC. Benefits claimed include cross-file consistency, less context loss, reusable verification, and more time for engineering judgment. The second half is a product overview for Kimi Code, listing Plan mode, Skills, Hooks, MCP, and swarm mode. It closes with a practical four-point checklist before accepting AI-generated code: requirement scope, repository/security fit, independent evidence, and permission control. Useful as a framework for developers new to AI coding, but note that it is largely a launch piece, not a technical report.

www.kimi.com · 15 min
20

Hermes Agent Guide: Install, Import OpenClaw, Run with KimiHermes Agent 上手:一条命令安装,可迁移 OpenClaw 配置

This hands-on guide walks through installing Nous Research's Hermes Agent via a one-line curl script, migrating an existing OpenClaw workspace, and configuring Kimi/Moonshot as the default model provider (kimi-k2.6, key stored in ~/.hermes/.env). It covers persistent memory, Skills, browser automation, scheduled tasks, and a CLI example to list top disk-usage folders. As an editorial pick, the piece reads like a Kimi funnel rather than deep engineering: every feature is described at overview level, there are no benchmarks, failure cases, or architectural trade-offs. Useful only as a quick first-run reference for beginners; experienced agent developers will find little evidence to judge the system.

x.com · 20 min
21

Run Claude, GPT & Grok in One Window: Higgsfield Supercomputer Prompt Guide把 Claude、GPT、Grok 放进同一个聊天窗:Higgsfield Supercomputer 玩法清单

A Higgsfield-sponsored walkthrough of its Supercomputer product, which aggregates Claude, GPT, Gemini and Grok into one chat and claims to route each task to the best model. It lists three integration paths: web UI, a Claude connector via MCP at https://mcp.higgsfield.ai/mcp, and a CLI (@higgsfield/cli), plus 18 copy-paste prompts for building web apps, CRMs, UGC videos, scheduled tasks and multi-agent 'graph engineering' workflows. The free tier supposedly covers planning, research and drafts, charging only for final rendered output. No routing details, benchmarks or failure cases are provided, and the piece acknowledges sponsorship at the end. Useful as a prompt/feature tour for curious power users, not as technical documentation.