Earendil Posts

RSS: https://earendil.com/posts/feed.rss
Earendil 是一家公益公司,打造软件和开放协议,以增强人的主体性、弥合分歧、培育持久的快乐。

Pi 编码助手的上下文压缩机制详解

Pi 编码助手通过 LLM 压缩历史对话来解决上下文窗口超限问题。默认保留约 2 万 token(5 到 20 轮对话),超出后自动或手动触发压缩;压缩提示词将 LLM 切换为"上下文摘要助手",输出目标、进度和关键决策的结构化摘要。压缩会打断 prompt 缓存,但摘要以纯文本存储便于切换模型;Pi 支持自定义扩展替换压缩逻辑。
评论点赞收藏2 天前

Pi 的上下文压缩机制是如何工作的

Pi coding agent 在上下文接近窗口上限时自动压缩对话历史:保留最近约 20k token(5-20 轮)的消息不变,将更早的内容用独立 LLM 请求生成结构化摘要(goal、progress、key decisions 三部分),同时把工具调用结果截断到 2000 字符以控制压缩请求本身的大小。压缩会打断 prompt caching,但之后新请求可重新享受缓存。Pi 的压缩逻辑支持通过扩展机制替换自定义实现。
评论点赞收藏2 天前

Pi:极简编码代理框架的实战验证

Earendil 推出的编码代理框架 Pi 以极简设计为核心,仅内置 4 个工具、系统提示词不足 1000 token。Databricks 在其百万行代码库上的基准测试显示,Pi 配合 Opus 4.8 在多项任务中超越 Claude Code 和 Codex,且成本更低;Shopify 基于 Pi 扩展构建了自主优化循环 pi-autoresearch,实测单元测试提速 300 倍、React 组件挂载提速 20%。文章主张编码代理的竞争力不在功能堆叠,而在上下文管理效率。
1 条评论点赞收藏11 天前

带不走的会话:推理API正在剥夺你的对话所有权

推理API最初的承诺非常简单:发送输入,接收输出。如果你两者都保留了,那你就已经有了对话。你可以检查它、归档、重放,或者给别的型号。 这种抽象从来都不完全正确。例如:提示缓存实时更新 在别人的GPU上,不同型号的分词方式不同,采样不可复现(而且是有意为之)。但是语义记录以文字记录形式存在的会话仍可能属于用户。转录稿应包含说明、信息、工具调用和工具结果。另一个足够强大的模型可能不会完全一样,但它能理...
评论点赞收藏16 天前

Prompt Caching

Large language models are often thought of like functions: send in some text, receive some text. That is a useful abstraction, but it ignores one of the most important parts of running a coding agent:...
评论点赞收藏21 天前

A Reflection on our Announcement Today

Less than a year ago, in springtime Vienna, Armin and Colin met at Vogel Kaffee to write. We had landed on a name, Earendil. We didn't yet have a company or an office. We were at the beginning, and fe...
评论点赞收藏130 天前

Announcing Pi & Lefos

Earendil Inc. is a Public Benefit Corporation founded by Armin Ronacher and Colin Daymond Hanna in 2025. The purpose of Earendil is to strengthen the agency of humanity by crafting software and open p...
评论点赞收藏130 天前

The High Ground

Introduction This memo is an attempt to answer the question of where the "high ground" will be in software and computing outside of foundation model providers in the period 2026-2031. The backdrop bei...
评论点赞收藏185 天前

An Invitation to Begin a Correspondence

Hello, We believe in building in the open, sharing what we learn, what we craft, and where we're headed. If you're curious about software that strengthens human agency and bridges understanding, we'd ...
评论点赞收藏209 天前

登录芦苇

登录后关注作者、收藏内容和参与讨论。