More than a year ago I wrote a few posts here that recommended people not to
load custom tools into their context (or
MCP servers) but to just
use more scripts. Most importantly I wrote that Code Is All You
Need and I wrote about that MCP needs
code. With Pi 1.0 we now added MCP support via Codemode
which in some ways is a long time coming, but then also maybe somewhat
surprising to some. So I want to share some updated thoughts on this blog on
what this all means.
What Are Tools
When a harness like Pi provides tools for an LLM to call, it does so by
supplying some tool definitions which then translate into some token structure
on the server side. Whether a model is encouraged to call a tool is the result
of the reinforcement learning process. Something I wrote about
before if you want to learn more.
继续阅读全文
为了尊重作者,这里只展示开头几段。你可以去原文阅读,或者在 HorizonReader 里读:划线做笔记、让 AI 帮忙。
AI 摘要Bob, a former software engineer who spent 27 years running a niche software company for car enthusiasts and mechanics, became obsessed with AI coding tools like Claude and Codex and fired all but three of his engineers, who now spend their days reviewing the AI-generated code he produces on weekends. Ironically, the same AI tools that Bob believes will replace his engineers are also making it possible for others to replicate his entire business, while his remaining, demotivated engineers may leave. His company could emerge leaner and better, or Bob could end up alone with no business at all.
AI 摘要The article argues that Rust's mutex poisoning feature—where a mutex becomes permanently unusable after a panic while locked—should be removed or made opt-in, claiming the author has never seen code that handles poisoned locks correctly in practice. Real-world examples from RLS, Mozilla, Tokio, rust-analyzer, and even the standard library itself show poisoning causing deadlocks, cascading panics, and prolonged outages rather than enabling recovery, with most major Rust projects already using non-poisoning locks. The author proposes stabilizing std::sync::nonpoison as the default and offering a separate Poison wrapper for those who genuinely want poisoning semantics.
AI 摘要The author draws a parallel between Princess Mononoke and today's AI debate: like Lady Eboshi's Irontown, which gave work and dignity to society's outcasts while destroying the surrounding forest, AI empowers people who were previously excluded while imposing real costs on others, often those who don't benefit from it. As in the film, fear of losing a race for power drives destructive behavior whose consequences are not fully understood. The author calls for nuance in the AI conversation, urging us to embrace its genuine benefits, acknowledge its harms, and 'see with eyes unclouded by hate' before losing something irreplaceable.
AI 摘要While building a dungeon crawler game, the author explored Qwen3-TTS for creating unique custom narrator voices, describing its three models: Base (voice cloning), CustomVoice (built-in speakers with instructions), and VoiceDesign (voices invented from text descriptions). Since the Base model cannot apply instructions like 'speak sadly' to cloned voices, they demonstrate a workaround: extracting the 2048-dimensional speaker embeddings from recordings and injecting them into CustomVoice, which enables emotional control over cloned voices. The article also shows creative uses of embedding arithmetic, such as blending two voices, using embeddings for speaker detection in podcasts, and shifting a voice along a computed gender axis.
AI 摘要The article introduces Deser, a Rust serialization library built to address structural limitations of Serde—such as lossy buffering for internally tagged enums and flatten, non-composable adapters, and stack-based recursion—through an event-driven sink/emitter architecture that keeps state on the heap in a driver. This design enables suspension of deserialization, arbitrary nesting without stack overflows, lossless buffering, an extensible data model, middleware layers, and composable adapters, though it deliberately excludes non-self-describing formats like protobuf and trades off some binary size and runtime performance. While the author doubts Serde can be truly replaced due to the orphan rule, Deser now supports all major self-describing formats (including XML) and is presented as a viable drop-in alternative or at least inspiration for exploring the design space.