Daily Tech Briefing
AI 科技速览

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

AI 快讯
HackerNoon AI · 2026/7/29 07:08:11
Building Persistent Context for Coding Agents

Building Persistent Context for Coding Agents

AI 中文解读
编程AI终于摆脱了“金鱼记忆”!CoreWeave旗下工具Festival让AI智能体拥有了持久工作记忆,不再每次新对话都得从头解释项目背景和目标。 简单来说,以前用AI写代码就像跟一个只会临时记忆的助手合作:你告诉它要做什么,它干完活就彻底忘了,下次又得重新解释所有设定、优先级和历史改动。开发者反而成了团队的“人肉协调员”,反复做重复沟通。而现在,Festival在本地创建一个名为“campaign”的专属工作区,把所有代码、背景、研究记录和历史对话都存成文件。AI下次打开这个工作区,就能直接读取全部上下文,就像打开一个项目文件夹就能看到所有资料一样自然。开发者只需用简单的命令切换不同项目,AI就能立刻明白当前任务的全貌。 这项技术将大幅解放程序员。未来开发者可以同时让多个AI代理处理不同项目的长期任务,比如一个维护老项目、一个开发新功能,而无需每次都手把手教它们当前状态。这意味着工程师能把精力集中在架构设计和创新上,而不是在沟通和重复劳动中消耗时间。对于普通用户,这类技术最终会体现在更稳定、更智能的软件产品上——因为开发效率提升后,应用功能迭代会更快、bug修复会更及时。
Discover AnythingSignupWrite New StoryBuilding Persistent Context for Coding AgentsbyLance RogersbyLance Rogers|@lkrbuildsI’m Lance Rogers, systems engineer, founder of Obedience Corp and creator of Festival (fest.build). SubscribeJuly 29th, 2026TLDR Your browser does not support the audio element.Speed1xVoiceDr. One Ms. Hacker byLance Rogers@lkrbuildsbyLance Rogers|@lkrbuildsI’m Lance Rogers, systems engineer, founder of Obedience Corp and creator of Festival (fest.build). SubscribebyLance Rogers|@lkrbuildsI’m Lance Rogers, systems engineer, founder of Obedience Corp and creator of Festival (fest.build). SubscribeIf you have used a coding agent on anything bigger than a quick script, you have felt this. The agent does real work. It writes the code, runs the tests, hits the API. Then it stops, hands you the result, and waits for you to re-explain the goal, the priorities, and the constraint that changed two days ago. Do that across a dozen projects and you are no longer the engineer. You are the memory and the coordinator for the whole operation, and that job gets harder every time the agents get faster. The capability is not the constraint anymore. The agents can do the work. What breaks down is everything around the work: holding the right context, keeping the agent pointed at the goal across many steps, and trusting what comes back enough to build on it. Supply all of that by hand, one prompt at a time, and you become the part that does not scale. Festival is what I built so the work stops depending on me to hold it together. It is not a wrapper around a model or a helper bolted onto a single repo, but a filesystem-first workspace and planning system: agents get persistent context, structured direction, and a verifiable record, so long-running work across many projects stays coherent on its own. This post is a field report on nine months of running my actual workload through it, taken from the logs.What Festival isFestival is a free cli toolsuite (npm install -g @obedience-corp/festival, or brew install --cask Obedience-Corp/tap/festival) that you and Claude Code, Codex, openclaw or any agent that can run shell commands can use. There are 2 main concepts to learn in order to use it. The first concept is the campaign: a git-tracked context workspace for a specific domain, functionally it's a monorepo with your projects added as git submodules(camp project add) or symlinks (camp project link), where the code, the context, the research, and the history live in one place. It persists between sessions and you can easily switch between campaign workspaces located on any of your drives or anywhere in your file system with the csw (camp switch) command. An agent that opens a campaign can easily and quickly find all relevant context instead of a blank prompt and a paste of yesterday’s notes. Nothing has to be reconstructed because it lives on disk, status is tracked based on implied intent, completed work is archived in the dungeon by end status (completed, someday, archive). The second is the festival: markdown and yaml based agent orchestration. You start with a goal, and the agent breaks it into phases, sequences, and tasks, with multiple levels of gates, all written to files in the repo. The agent works the plan one task at a time and commits as it goes, so progress shows up as real changes in git with ids linking the project actions to the plans that the actions were based on. Release v0.2.13 of festival added hooks, where you can configure a hook to be triggered once the plan advances to a particular point. I use this to trigger a background kimi-k2.6 judge agents to take the place of myself as a human reviewer. Festival plans are useful for situations where you have a massive amount of work that needs to be done, when you need high level tracing of agent actions to plans, or when you need something done a specific way and you don't want to babysit the agents to get them to follow your specific strategy. For high ri
分享
阅读原文