Proactive Agent Engineering — Sydney Runkle, LangChain
Read full transcript 25 segments
-
Hey folks. Um super excited to be here today. Um proactive agent engineering is uh one of my favorite topics as of just a few weeks ago. Um all right. So first just want to walk through kind of a brief timeline of some major like AI and agent milestones. Um so early long ago in 2022 we had you know ChatGPT emerges and we all start doing things uh and you know copying and pasting prompts and answers into and out of the like ChatGPT window. Um but I think really it wasn't until like November of 2025 when coding agents really blew up. So that's like quite recent, right? Uh when we all started using agents more more and more in our day-to-day lives. Um Claude Co Work came out briefly after that or soon after that. Um and then most recently in uh like September and August of 2026 we saw the advent of personal agents like Muse, Instinct, um Crockpot Dots, etc.
-
And one of the I think biggest defining features of these personal agents is that they are highly proactive. Um and so what are kind of some primitives that they have that are new compared to just your standard like terminal or even cloud coding agent? Um a couple of these are shared with like newer coding agent architectures, but I think are like really quite important to the personal agent design. So the first is that they do a lot of async work. What does that mean? It means you can basically have this continuous conversation with your personal agent and it feels like it always has the right context at the right time and in the background is doing work. Um so this is from like early coding agent architectures where you would give it a goal or a task and then you would kind of have to wait for it to finish its like model one tool calling loop to come back to you with a final answer and then you could kind of iterate forward on that. The second is that these personal agents are very focused on kind of broader goals. Um so rather than just giving it a simple task and having it complete that for you, you can also orient them to kind of work for you over longer periods of time. Um and that connects very deeply with their capabilities for background and async work.
-
The third um we've been talking at LangChain about memory for a long time. Um but memory is like really important for these personal agents. There's basically nothing that a personal agent would do for you that isn't tied to your strong kind of preferences and life context etc. Um and so I think with personal agents is the first time we've really seen like memory be a critical part of these agents that we're using in our day-to-day lives. So you might be used to like you know distilling memory into a skill for your coding agent and like it's very nice that it does that. Um but memory feels much more critical for these personal agents, right? Like you probably need it to remember your relationships um to people that it's communicating with on your behalf or um things of that nature. And then the the fourth thing which again ties into the async um paradigm is that we're moving away from this notion of like a session as the kind of unit of work uh of of work organization for an agent and moving towards this like single thread experience where you can have this continuous interaction with an agent.
-
And all of these primitives help support proactive agents. Today I'm going to talk about what proactive actually means in the context of agents. Um why human attention is really important in the context of proactivity. Uh memory, user experience, um and then finally like what's next? What are we excited about with these personal agents. Okay, so about the kind of shift from reactive to proactive. What does reactive look like? Um those first three kind of um agent milestones that I talked about were mostly reactive agents, right? You give an agent or a model a prompt and it like responds to that prompt and helps you do some work. But proactive means your agent is responding to events in an environment. That can come in a variety of forms. So real world events like an email has just come in. Your agent is now like triggered to decide if it's like spam, deserves a response, etc.
-
Um and then the second category is more scheduled work and that can either be schedule set by the user. For example, like every morning at 9:00 a.m. send me a digest of my meetings and relevant information or schedule set by the agent itself. So if you orient the agent to work on a longer term goal, it can set up schedules for itself to run periodic jobs and address tasks that ultimately contribute to that goal. So this kind of dovetails into my theory about the shift from independent tasks to goals. The shift to like proactive agents really lends itself to um building agents that work more towards goals. So at a small scale, agents work on independent tasks. For example, like add this feature to my codebase and you know deliver me a PR. At a bigger scale, they work on goals and and they make progress on goals by doing kind of discrete work on tasks that contribute to said goal. Um it it it's a lot like how we work as humans, right? Like you set a lofty goal for yourself, you come up with a to do list of like milestones um and to-dos to achieve that goal.
-
So we have this shift that I think is really interesting. This is my only animated slide. Everything else is very boring. Um so previously it was like you give an agent work, right? Like you give an agent some task. Um and now you give an agent a goal and then it theoretically should be giving you work to do um to basically take action in the real world um when it needs clarification or support or kind of final um human approval on complex or sensitive work. So in this case when the agent is now giving you work instead of vice versa, your attention becomes a scarce resource. So it's important for the agent to figure out um or you to support your agent in figuring out uh when, why, what, and how it should provide you in terms of pings and context. Um and the challenge here is like you really want to thread the needle and get this like Goldilocks level of proactiveness. I want my personal agents to be um keeping me in the loop for important tasks, um definitely keeping me in the loop for things where human approval is critical, but also maybe more importantly not like sending me all this noise and unimportant um pings and notifications or I basically will ignore those notifications. Um I'm currently trying to optimize this for my like work personal assistant agent. There are a couple of like proactive tasks that I have it doing where it's way too noisy and I actually like completely ignore um all of those pings and so finding the
-
right balance is really challenging. Um so protecting the scarce resource that is human attention uh takes a step change in two things associated with agents. Uh the first is memory as I already mentioned at the beginning of the talk and the second is user experience and how those kind of tasks and work are presented from an agent to a user. So I'll talk about memory first. Um this is very much what you might think it is in the context of human learning. Um so memory is information that's learned over time. Um specifically in the context of agents it's information learned across invocations or sessions that helps the agent do a better job with tasks or goals um in the long run. So what kind of types of memory do we have um and and what signal can we used to build up memory? Um one important piece is kind of using already available information, kind of precedent and context to build up what I like to call like a memory seed. Um that's very important in the kind of like agent initialization step, right?
-
Like if you imagine you send your first message to a personal agent, you probably want it to kind of onboard itself onto you, your goals, your life, etc. Um and so existing information, this precedent can be used to help build your memory seed. The second piece of information or signal that can be used to develop memory is human feedback. Um I'll give some more robust examples of this on the next slide. But basically any feedback that you give your agent during live runs can be used and distilled um for future runs so that hopefully you have to provide less feedback. It's kind of more on track with what you already want. And then the third um that I think is a little bit more novel and innovative than we really only get to talk about now because we're actually seeing agents do things in the real world is like what are the outcomes of these agent runs and how can they be optimized? So basically like is an agent run resulting in some successful outcome? Is it resulting in a failed outcome or a poor external event?
-
And how can we learn from those? And so that's like even um higher level thinking than just the kind of in the loop human feedback. So I think some examples are really helpful for contextualizing here. I've really tried to keep the the text at a minimum. I promise this is my most dense slide. Um so let's use the context of a personal agent that's helping you with your email. Um there's a lot of precedent and signal in your past emails. So who have you emailed in the past? What types of language patterns do you use when sending emails? Um that can all be used to kind of build this memory seed for like how does Sydney like to send emails? Who is she more formal with? Who is she less formal with? Um what relationships are particularly important? What emails has Sydney completely ignored in the past? You know, what people have sent Sydney emails that she didn't respond to and then got in trouble for like not responding soon enough? There's tons of data um in this existing system. So your agent can learn, yeah, how you write, who matters to you, etc.
-
Um secondarily, now you're ready to like deploy this personal agent that's helping you manage your email. You probably don't want it like sending off emails without your approval at least to start. Um so I would expect my personal agent responds to any new email that comes in. It categorizes whether or not it is worthy of a response on the back of that seed memory data and also, you know, like does this look like spam, etc. And then if it is worthy of a response, drafts a response in my voice and then has me approve that draft. So there's some pretty important human feedback we can get on this loop. So let's say I heavily edit the draft and then send it off. There's a ton of value in those edits that I provided, right? The agent can save that information to help write a better draft for a similar case in the future. Um let's say I like completely reject the draft. Also valuable information there. Let's say I don't even send the draft.
-
The kind of lack of feedback there is also signal. Um and all of this can help to, you know, further distill information about like my personal voice, um what you don't want sent, etc. And then finally, and I would like really encourage folks to start thinking in terms of outcomes for agents um because I think that's ultimately what we want them to help provide. Um did my email get a reply? Was there some like beneficial outcome of this response? Did my email not get a reply? Why is that? Um and so it's important for the agent not to only be aware of, you know, that initial email draft coming in, but also consequences of its actions in the first place. Um I'm going to talk a little bit about dreaming. Again, another like pretty human concept, right? Dreaming is how or you know, kind of sleep and that and that process is how we distil and learn information and so we call dreaming for agents the process of learning from experience over time.
-
So your agent generates traces, basically a record or a trajectory of the path it takes. We add this dreaming process in that reviews, you know, human feedback, outcomes etc. You can distil that information into memories and then said agent on the next run uses those memories and hopefully is better off the next time. Um remembering is pretty easy. Um knowing what to remember is really difficult. So I'll give a like pretty personal example. Um I use a design agent at LangChain to help me um generate on-brand slides. For example, like I wrote this presentation in like very, you know, blank plain Google Slides template and then I gave it to our content studio is the name of the agent to help me give it this like nice LangChain blue and like use the font that I've been told that we're supposed to use. Um but I also have like personal preferences. For example, you'll notice like everything is lowercase. That's not like our brand standard. Um and so I have a dreaming job every night that looks over all of my conversations with this content studio agent and like distils Sydney's personal preferences memory file. So luckily I didn't even have to ask it to do the lowercase for me, but if someone else on our team used it, um it wouldn't do that automatically.
-
So that's kind of an example of like how my personal preferences get baked into the agent infrastructure. Um I think this is a super helpful model. Um again, the like human attention um and proactiveness is a tough balance to strike. You would like your agent to notify you when it's relevant for you to be in the loop. And that's kind of this top left um category here. Uh you definitely don't want it to loop you in when something is not worth your time. An example here is like drafting a reply to a newsletter or to some spam email. Um the most potentially consequential one is like missed opportunities where your agent doesn't perceive signal correctly. The goal is that you would have a robust enough memory system that it could perceive signal well. Um and then useful silence is also valuable, right? Um like your agent not notifying you is often like the best case to some event. Um I mentioned this earlier. Silence is really high signal. Like no signal is actually good signal and that really helps to optimize, as I discussed on the previous slide, this like useful silence. So if I'm not responding to something and there's like no consequence to that, we should probably keep it that way and build that into the memory system.
-
Um UX. Okay, I said I'm going to talk about two things. One is memory, chatted about that. Next up is UX. So how does your agent reach you? How does it present information? How do you preserve the um you know minimal attention span that we all have um and and make the most of that? The first thing is building agent interfaces that are um kind of review focused. So an example with the email use case is like having a nice UI where you can review these drafts in bulk. It would be quite annoying to me if like every new email draft came in um in Slack and I didn't have like a nice way to edit the drafts, etc. Um so this is an example of like the personal agent we use and the inbox for that. The second thing and and maybe this is the most important is agents are located like where you already do work. Um it's not convenient at all to like basically have to go look for your agent. You just want to like have it be exactly where you want it to be. Um so for most of the work that I do um that is in Slack for the email use case specifically, I do find having like a separate inbox optimized for review as helpful.
-
Another example of like where I already do work um and agents taking action there is like I do 90% of my coding through Slack. Um and then said agents will also like ping me for review in Slack when things are ready or like follow-up with appropriate reviewers um because that's where you like ask your coworkers to review things. And then I mentioned this as a primitive that's pretty important for personal agents um but I think having the UX be async by default so that you feel like you always get that kind of continuous interaction experience with your agent is valuable and then you want the agent to be able to like interrupt you with urgency when something really needs your attention or kind of queue up things for your review otherwise. One challenging thing is that if you set these agents off to work on goals they will tend to like really over optimize for the specific goal that you provided. That's I would say like the Achilles heel of the agent loop that we are all here um because of today is that like if you build a system to loop and optimize a goal it'll do a really good job of doing that despite like domain specific or like almost common sense requirements. Um so one challenge here is like alignment. If you give your agent the goal to optimize X you probably need to like do a pretty good job of clarifying like given Y and that's your like domain specific rules, regulations context etc.
-
One idea that I've been toying around with um is this idea of like progressive disclosure of autonomy. So like we've already seen that progressive disclosure is a really um beneficial design tactic for agents. Their context windows are limited. You want to progressively disclose information as is relevant to any given task. I think you also want to be able to basically wean your agents off of the need to have you in the loop for things. So ideally like I would like my agents to be able to send emails without my um you know official stamp on all of them or you know make sure that something only needs like a final stamp of approval on a coding task um and that's really only possible with like robust memory system where agents can learn not only your preferences, but also kind of gain your trust over time. So what's next? Um I maybe will regret having like the harnesses mostly solved up here. It's still like super hard to design an effective harness for any given agent. Um but I do think that the focus is moving more from like harness design to agent orchestration. Um you could argue that the two are related. I think orchestration mostly focuses on like where do you uh access your agents? How do your agents communicate with each other? Um and and how do you get them to work on bigger goals over kind of time horizons that we couldn't have imagined like a year or certainly not two years ago. Um this is not to say that like harness engineering is not still a challenge,
-
but um these are more of the kind of unsolved problems right now. Um so what do I mean by context engineering? This is like the thing we've been talking about for three years, which is like get the right context at the right time to the model for any given task. Um now we're kind of needing to like flip and do this for humans. So get your like human in the loop, the right context at the right time for the task in service of the human's goal. Um and and so this is all about the basically like attention engineering um thesis of this talk. And yeah. Um so very excited about proactive agents um and the challenges that that poses in terms of like balancing proactivity and attention and memory and happy to take some questions. Yeah. >> Yeah. Um so when building a harness, you mentioned the power of using memory when it's specific to you, but also you're talking about the kind of harness you've built for design within within LangChain.
-
Um I think this is There we go. Uh what is a useful heuristic you've found within your work for divvying up knowledge between memory, skills, and then tool calls or like IRL. So like using your email example, we could have a memory about how to write emails. You could have a skill where it lives in one place about how to write emails, but also the source of truth is ultimately like email sent, which would be a tool call. So what is one of the useful heuristics you've you've found for deciding whether it should fit in in one of those three or another category? >> Yeah, great question. So I think um one thing I didn't talk about here with regards to memory is like the three types of memory that I think about. I want to be careful not to like over index too much on how we think about human memory, but I do think it's a helpful way to basically think about like what types of information should I present to my agents. So the three types are like procedural, which is like here is how you do this certain task. Um semantic is more like information and facts and and knowledge. And then the third is like episodic. So like remembering previous interactions. Um and I generally like to bucket like procedural memory into skills. I think of skills is very much like workflow oriented things. Like here's how you, you know, go about addressing this specific request. Um almost guiding the agent on a certain track. Um semantic memory I think about more as just like storing information in files as like a basic starting point. And then episodic I think of like basically searching over previous threads and
-
sessions for relevant information. Um I think yeah, definitely a hard split is like what is organizational memory versus what is personal memory. We're actually having this debate internally a lot because like there are some things that like I should use the LangChain blue, like even if I like old LangChain green, like I'm being overridden, you know. Um but also like I am allowed to add in a little bit of like personal flare. Um and so I that I think that's kind of like an ongoing challenge, but we do have like org memory always override personal memory for like um agents at LangChain, for example. Okay, one follow up. How do you uh how do you permission org memory? Uh yeah, great question. So um we do a lot of like role based permissioning. So like you know, a um uh sales rep has different permissions for using the GTM agent than like deployed engineer for example. And and so it's really just like the you know boring pieces of like ABAC, RBAC etc. But we basically assemble this like just in time context where like relevant skills are only included based on your role, relevant memory or guidelines, same thing.
-
Yeah and we try to like offer kind of building blocks and and thought leadership on like how to do that for your agent as well. And and one last note that I'll have there is we are having challenges with the permissioning in like multiplayer scenarios. So like I mentioned the agents that we have are in Slack. So it's a little bit hard like if I'm in a thread and my memory and context is loaded and then you jump in the thread like what's the right kind of game like what what context do we include there? Unsolved but work in progress I would say. Yeah. >> Yeah at LangChain when an update gets pushed or a change gets pushed pushed to an organizational skill or even organizational memory who gets to decide or how much time is spent debating whether that update or change is approved and then accessible across the entire organization? How do those conversations go and do they do they take a lot of time? I'd assume you all are pushing a lot of updates to these things on a regular basis. >> Yeah that's a great question. So I think probably the most relevant agent for this is our like go-to-market agent which is used by hundreds of people across the org now and we do try to like rapidly iterate on development wise.
-
Personal memory is much less locked down. Like we allow the agent to add personal memory updates. So like remember that Sydney likes lowercase letters for example with no guardrails. But for org memory that like goes through right now our like GTM engineering team. And so that is a team of developers that works very very closely with basically the relevant GTM teams. So for example like our marketing team has like a huge say in the skills that are related to marketing or like design team, you know lots of say on the like content studio skills. So we do still gate it pretty like carefully on PR review accompanied by like working with those teams. Um and yeah, I think skills are like a great um abstraction for like very domain specific knowledge. Um yeah. >> Hi, um thanks. Super interesting talk. Um I'm curious about how you think about how often you should create memories because if you say on every event if I create one slideshow that's all lowercase you know, if you're creating memories based on that you will over index and over compensate, right? But if you um I guess if you if you wait too long to create those memories and try to get a global view of the situation then you're not creating memories fast enough and reacting to preferences as they develop. So how how do you think about that tradeoff?
-
>> Yeah, it's a great question. I'm definitely still struggling with like dreaming pipelines um for my personal agents and I think like that's a great way to kind of feel the pain of like oh man how are agent developers at large supposed to like manage these updates? As I mentioned earlier, I think the like memory maintenance part is super difficult. Um my general push would be like more having some balance of like pretty frequent updates to scan threads for relevant information and like inject those into memory is good and then also having secondary jobs that do more of the like memory cleanup and management, you know, for like deduplicating things etc. also good. Um I would also say just like the more an agent gets used the more that memory will start to be refined. Um yeah. And so yeah, more usage means like more memory jobs basically. Um and then last anecdotal thing is like my memory dreaming job was like way too memory happy at first. Like it was remembering like every single piece of feedback that I like ever gave that was not generalizable at all to like other content um which was a pain at first.
-
Yeah. >> Is there a good tool that you would recommend for memory management like specially in a multiplayer setting? >> Yeah, >> great question. I think there's two things. One is like you want a harness that does a good job of like assembling the just-in-time context that I mentioned based on like user um permissions and role, etc. And then you also want like infrastructure to do that like dreaming pipeline for you. Um I'm biased. We have a like agent building platform at LangChain that's like fully built on our open source. So that that's what I would recommend for for starting. >> Uh quick question about um maybe more advanced topics on memory. Like I was thinking and I wanted to get your thoughts on this is like when we think about memories, right? Generally there's a certain aspect like temporal. Like things that I did yesterday probably matter a lot more than things I did a month ago, right? For example. The other thing about memory is we tend to store memory as like tokens, like words.
-
Um but sometimes preference isn't always best represented as tokens. Sometimes it's better as math. Have you ever thought about that? Like um have you built in that that area yet? >> Yeah, that's a great question. So um I'll answer the first part first, which is basically this like temporal decay or like salience of memories. Like how not only like temporal decay, but like there are certain preferences that you might express that are like always and will be super important and then others that like maybe it doesn't matter as much. I'll give an example. Like if you have an agent assisting you with your food orders, like you probably want it to remember that you're like in New York this week, so it should order things in New York. But also like you're allergic to peanuts, that should always be like top of mind for your agent. Um again, I think that just goes into the like dreaming pipeline infrastructure and again with this like you know food preferences case, like that's super domain specific. So there should be like information in your dreaming pipeline that's like big red flag. Like allergies are in you know this file. Um in terms of like mathematical representations, I think that's a super interesting concept. I have not explored a ton with that. My general default is to like start simple and then like basically progressive disclosure of like complexity, right? For myself. And I still feel like we haven't mastered the like dreaming pipelines that are just the like file system based preferences. Um, but yeah, super interesting. Um, I think you could even like think about for the food use case, like what is the vibe of like a certain restaurant and like would would I like
-
it based on my other preferences? That's not like just linguistically based. Any other questions? Um, yeah, I guess I'll just conclude with I'm like very excited about proactive agents. I think this is generally the direction that agent building is going in. Um, and my DMs are always open if you have questions or ideas. Thanks.
No summary available yet.
View original episode ↗