swyx 转发了 @stevenkplus1 分享的 Devin Bots 架构技术细节;据引帖作者表示,Devin 转向 Bots 架构后默认呈现跨会话上下文,几乎完全解决了会话间上下文丢失的问题。新架构为每个 Bot 提供长期身份与独立记忆库,支持必要时跨 Bot 通信,推动用户从下发单次任务转向委托整体目标与职责。引帖作者认为该改动主要基于编排层重构,能在调取记忆的同时避免上下文污染。
作者揭示了编码智能体从瞬态会话转向持久记忆的编排方案,有助于开发者理解多智能体上下文隔离与持久化的设计思路。
technical details:
> inter-session context is surfaced by default. Teams now create dedicated bots for different projects; while these different devins can talk to each other when necessary, they each have their own individual memory bank and goals. Each bot now has its own, long lived identity. The transition from "Devin is a swarm of ephemeral agents" to "Devin is a collection of bots, each with their own persistent identity and memory" is changing how people use and prompt Devin.
https://t.co/maw20vdPs8
Bots are super cool and if you haven't used them yet, you absolutely must try them. Create a bot to manage a goal or a project that you'll work on across multiple sessions and days. Some technical tidbits about the architecture and design: Devin used to have a major UX problem: a session today doesn't remember exactly what happened in a session from a few days ago. It only has vague awareness of those previous sessions, and recalls only the nuggets of information that were explicitly persisted. This is because each new Devin was essentially an ephemeral clone of a base template. One symptom of this problem is that our users would reuse the same session instead of starting new ones, since they didn't want to lose context, and end up with tens or hundreds of PRs from a single session. Bots almost completely solves this problem of context being lost between sessions, because now inter-session context is surfaced by default. Teams now create dedicated bots for different projects; while these different devins can talk to each other when necessary, they each have their own individual memory bank and goals. Each bot now has its own, long lived identity. The transition from "Devin is a swarm of ephemeral agents" to "Devin is a collection of bots, each with their own persistent identity and memory" is changing how people use and prompt Devin. I see people investing much more in providing high level project context to their bot, and requiring fewer messages for each additional task since it already has a ton of background context on the project. This is the most significant change to how Devin works since our original launch 2 years ago. And it in turn changes how you use Devin too: instead of delegating tasks, you should delegate goals and responsibilities to Devin. It's crazy to think that all this happened because we changed how memories get persisted and retrieved. With each bot having its own memory bank, and a given org having hundreds or thousands of bots, we can now be much more aggressive in surfacing memories without worrying about polluting the agent's context with irrelevant memories. The even crazier part is that this is almost entirely an orchestration change, and that while model improvements played a role, we probably could've implemented this a year ago and observed similar effects. Anyway -- we've come a long way from the retrieval and reranking strategies of 2024, and the result is Devin Bots -- probably the most ergonomic and futuristic UX for coding agents I've ever used.在 X 查看被引用的帖子
来源:swyx · x.com