# Proactive Agent Engineering — Sydney Runkle, LangChain

Sydney Runkle, LangChain

AI Engineer Code Summit 2026

[Talk page](https://ai.engineer/talks/cjiIvQqN5eI-proactive-agent-engineering) · [Video](https://www.youtube.com/watch?v=cjiIvQqN5eI)

## Proactive Agent Engineering

An agent working toward a long-term goal can generate more decisions than its user has time to make. Sydney Runkle explains how LangChain uses memory, background jobs and review interfaces to help agents decide when to act, when to ask and when to stay quiet.

### A conversation that continues while the agent works

[0:12](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=12s)

With an early coding agent, you could ask for a feature, wait for the model to finish calling tools, read the result and decide what to do next. The agent could do quite a bit of work, but your conversation with it effectively stopped until it came back.

[Sydney Runkle](https://github.com/sydney-runkle) of LangChain traces a progression from copying answers out of ChatGPT in 2022, through the widespread use of coding agents in late 2025, to the personal agents emerging in 2026. One of the most consequential changes is that you can keep talking to a personal agent while it works in the background.

Asynchronous work makes it practical to give the agent a goal that will take many separate runs to accomplish. From the user’s perspective, those runs can belong to one continuous conversation. Starting a new piece of work no longer has to mean starting a new session and explaining yourself again.

That puts a much heavier burden on memory. A coding agent that remembers how you perform a recurring task saves you some instructions. A personal agent writing to someone on your behalf needs to understand your relationship with the recipient before it can even judge what an appropriate message would sound like.

![Timeline showing approximate milestones for ChatGPT in November 2022, coding agents in November 2025, Claude Cowork in January 2026 and personal agents in September 2026. Personal agents are highlighted in blue.](https://ai.engineer/api/talk-essay-media/fee4483e51bd5b60fb077ec13d4eef885622414f16230add31e9a9c5a6f45d4a)

Sydney Runkle places the rise of everyday coding agents around November 2025, three years after users began copying prompts and answers in and out of ChatGPT. Claude Cowork followed around January 2026. She highlights the emergence of personal agents around September 2026 in blue.

### What starts a run, and who gets work back?

[4:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=244s)

A reactive agent waits for a prompt. A proactive agent can begin work when something happens in its environment. There are several ways to arrange that, with different implications for who decides what happens next. [4:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=244s)

- **An external event arrives.** A new email triggers the agent to decide whether the message looks like spam or deserves a response.
- **The user sets a schedule.** Every morning at 9 a.m., the agent sends a digest of the day’s meetings and relevant background information.
- **The agent sets a schedule.** Given a longer-term goal, it can arrange its own periodic jobs to complete tasks that contribute to that goal.

Consider the difference between asking a coding agent to add a feature and deliver a pull request, and giving it a goal that takes many such changes. In the second case, someone has to work out the milestones, decide which tasks to undertake and come back to unfinished business. The agent can take on some of that planning and follow-up itself.

Then the direction of delegation flips. You give the agent a goal. The agent starts giving you work. It needs clarification, help taking an action in the world or approval before it does something sensitive.

Human attention quickly becomes scarce. Runkle has a couple of recurring tasks on her own work assistant that generate so much noise she ignores every ping from them. That is a particularly bad failure mode for a channel you also depend on for important approvals. Getting the balance right takes both a memory system that can judge relevance and an interface that makes the remaining requests easy to handle.

### An email assistant gets three chances to learn

[8:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=484s)

Memory is information learned across runs that helps with future work. An email assistant illustrates why it matters *when* that information becomes available. What can the assistant know before its first run, what can it learn while you review a draft, and what will it have to wait to find out? [8:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=484s)

**Start with precedent.** The existing mailbox gives the assistant what Runkle calls a memory seed. Sent messages reveal whom she writes to, the language she uses and how formal she is with different people. Ignored messages are interesting too. Which ones could she leave unanswered without incident? Whose messages, if any, got her into trouble when she took too long to reply? The answers would suggest very different priorities for the next incoming message.

**Learn at review time.** In Runkle’s proposed starting arrangement, each incoming message triggers a decision about whether it merits a reply. The agent uses the seed memory alongside clues such as whether the message looks like spam. If a reply makes sense, it drafts one in her voice and waits for approval.

A heavily edited draft gives the agent two versions to compare. The changes may teach it how to write a better response the next time a similar message arrives. Rejecting a draft outright can teach it what the user doesn’t want sent. Even leaving a draft unsent is evidence, although that alone tells the agent little about why the user passed it over.

**Follow the outcome.** Approval tells the assistant that the user was willing to send the message. Did the recipient reply? Did anything useful come of the exchange? If nobody replied, why might that be? An assistant that stops observing at the send button never gets to learn whether its work helped achieve the goal.

![A table shows how an email agent learns from past correspondence, current edits and rejections, and future outcomes such as receiving a reply.](https://ai.engineer/api/talk-essay-media/6bce2b453f1ee6017ac9dfef746ecec1340af1565b218fa6adf7125193f4f7b2)

Your sent folder can teach an email agent how you write and who matters to you. Your edits help it match your voice, and your reasons for rejecting a draft tell it what to avoid. Whether the recipient replies gives it a clue about what worked.

### How a nightly job learned to write in lowercase

[12:09](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=729s)

Each agent run produces a **trace**, a record of the path the agent took. LangChain calls the background process that learns from those experiences **dreaming**. A dreaming job reviews traces, human feedback and available outcomes, distills useful information into memory, and makes that memory available to subsequent runs. [12:09](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=729s)

What can that job learn from an email draft? A rejection supplies feedback even if nothing goes out. A sent draft can teach the agent twice, once from the user’s edits and again when the consequences become apparent.

For a working example, look at the [presentation itself](https://docs.google.com/presentation/d/1VbC01MaG_YjALvag9v1NX00GjU7LaXMq54I1JdlFcPE/edit?usp=sharing). Which design choices belong to LangChain, and which belong to the person giving the talk? Runkle wrote the deck in a plain Google Slides template and handed it to LangChain’s **Content Studio** agent. It applied the company blue and the prescribed font. It also put the text in lowercase, a preference of hers that falls outside the brand standard.

Every night, a job reviews her conversations with Content Studio and updates her personal preferences file. By the time she made this deck, she didn’t have to ask for lowercase. A teammate using the same agent wouldn’t automatically get that treatment. The difficult part of remembering a preference is deciding how far it should generalize.

What can a dreaming job learn from an email draft?
Review feedback can reach memory whether or not the user sends the draft. Evidence about the recipient’s response arrives separately and only after a message goes out.
- Draft for review — The agent proposes a reply in the user’s voice.
- Human review — The user can edit, approve, reject or leave the draft unsent.
- Sent email — The recipient gets the version the user chose to send.
- Later outcome — Did the recipient reply? Did the exchange help?
- Dreaming job — Reviews the run and distills useful observations as they become available.
- Memory for later runs — Guides future decisions about what deserves a reply and how to write it.
- Draft for review → Human review (Present the proposed reply)
- Human review → Sent email (Only if the user sends it)
- Sent email → Later outcome (Observe what follows)
- Human review → Dreaming job (Edits, rejection or non-use)
- Later outcome → Dreaming job (Evidence from the exchange)
- Dreaming job → Memory for later runs (Save what generalizes)

### Silence can be a successful result

[13:53](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=833s)

How do you tell whether a proactive agent made a good decision? Separate two questions. Did the agent bring the event to your attention? And did the event actually deserve your attention? Crossing those answers gives four outcomes, including two very different reasons you might hear nothing. [13:53](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=833s)

- **Useful notification.** The agent recognizes something that needs your involvement and brings it to you.
- **Noise.** It asks you to review a reply to a newsletter or spam email.
- **Missed opportunity.** It fails to recognize something important and leaves you unaware. Runkle considers this potentially the most consequential error.
- **Useful silence.** It correctly leaves an unimportant event alone.

This is where the history of unanswered email earns its keep. If Runkle repeatedly ignores a kind of message and nothing bad comes of it, the assistant has a reason to keep quiet about similar messages. If a late response has consequences, it has a reason to interrupt next time. The outcome changes what the same apparent lack of feedback means.

![A two-by-two matrix compares acting or staying quiet with whether action is worthwhile. The four outcomes are useful action, noise, missed opportunity, and useful silence.](https://ai.engineer/api/talk-essay-media/c8d5b542abba7c01b5b970dc786a4ab75bc805fb50da08d63c35202259ee4329)

The blue diagonal pairs two good calls an agent can make: draft the reply you owe, or stay quiet when nothing important has changed. Drafting a reply to a newsletter creates noise. Missing a time-sensitive thread may be the costlier mistake.

### Give people a place to review work in batches

[15:02](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=902s)

Suppose the assistant has correctly identified a batch of messages worth answering. How should it deliver the drafts? Sending each one as a separate Slack ping leaves the user with a stream of interruptions and an awkward editing job. Runkle shows the alternative her team uses for email, a dedicated inbox where users can work through drafts in bulk. [15:03](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=903s)

A good review interface does double duty. It makes it easier to get through the backlog, and the edits people make there are precisely the feedback the memory system needs to improve future drafts.

For other work, a separate inbox would be one more place to remember to check. Runkle estimates that she does about 90% of her coding through Slack. Coding agents can tell her there when a change is ready, or follow up with the appropriate reviewers in the same place colleagues already ask each other for reviews.

The default interaction can stay asynchronous. Ordinary work waits in a review queue, the conversation continues, and the agent can still interrupt when something genuinely needs attention now.

### Specify the constraints before handing over more decisions

[16:58](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1018s)

The ability to keep pursuing a goal is also a weakness of the agent loop. Give it a narrow objective and it may pursue that objective remarkably well while ignoring requirements a person in the field would take for granted. A useful goal description has to say what the agent should optimize *given* the applicable rules, regulations and circumstances.

Runkle proposes extending an idea from context management to autonomy. With a limited model context window, progressive disclosure means supplying information when it becomes relevant. Her proposed **progressive disclosure of autonomy** would gradually reduce the decisions that require a human as the agent learns preferences and earns trust. [17:40](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1060s)

For email, she would eventually like the assistant to send some messages without her individual approval. For coding, she might want the agent to get an entire task to the point where only a final sign-off remains. These are aspirations. The appropriate point to relax review depends on how well the agent has learned the work.

That changes the engineering questions around the agent. Building a good harness, the software that runs an individual agent and supplies its working context, is still difficult. Runkle expects more attention to shift toward orchestration. Where do people reach their agents? How do agents communicate with one another? How do they keep making progress on a shared goal over much longer periods?

There is a familiar engineering problem hiding in those questions. Developers already spend considerable effort getting the right context to a model at the moment it needs to make a decision. Now the human who gets pulled into a run needs the same consideration. Runkle calls that **attention engineering**.

### Where knowledge lives and who gets to use it

[20:00](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1200s)

An audience question gets at a practical ambiguity in the email example. How to write an email could live in memory or in a reusable skill. And if you need to know what someone actually sent, a tool can retrieve the message itself. How should a developer divide the knowledge among those options? [20:00](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1200s)

Runkle uses three kinds of memory as a working heuristic for what to give an agent.

- **Procedural memory goes into skills.** A skill guides the agent through a particular workflow, such as how to handle a request to draft a reply.
- **Semantic memory can start in files.** Facts and preferences, such as the user’s preferred writing style, can be stored directly.
- **Episodic memory calls for search.** When the details of a previous interaction matter, the agent can look through earlier threads and sessions.

### When personal and company preferences disagree

A separate question is whose knowledge wins. At LangChain, organizational memory takes precedence over personal memory when they conflict. Runkle might prefer the old LangChain green, but Content Studio should still use the company blue. Lowercase lettering is fair game because the shared requirements leave room for it.

Access also varies by user. A sales representative and a deployed engineer have different permissions in LangChain’s go-to-market agent, **GTM Agent**. The harness assembles context just in time, using role-based and attribute-based access controls to determine which skills, memories and guidelines to include.

A shared Slack thread exposes a hole in that design. Suppose the agent has already loaded Runkle’s personal memory and context. A colleague joins the conversation. Whose context should the agent now use, and what can it carry forward from the earlier exchange? Runkle describes this as an open problem for the team.

### Who can change what everyone remembers?

The distinction matters on writes, too. GTM Agent serves hundreds of people across LangChain. It can record an individual preference such as lowercase lettering directly. A change to organizational memory goes through the GTM Engineering team and pull request review.

The engineers work with the teams that know the domain. Marketing has considerable say over marketing skills, and Design helps shape Content Studio’s skills. That lets the agent pick up individual preferences quickly while giving people a chance to review instructions that will affect their colleagues.

### How often should an agent change its mind?

[24:43](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1483s)

One lowercase slide deck is a poor basis for concluding that its author wants every future deck in lowercase. Wait too long to recognize the preference, though, and the author has to keep repeating it. An audience member asks how often a dreaming job should commit new memories. [24:43](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1483s)

Runkle ran into the first failure herself. Her initial dreaming job was far too eager to remember things. It saved practically every piece of feedback she gave, including corrections that made sense only for the particular content she was working on.

Her working recommendation is to separate two maintenance jobs. Scan recent threads fairly often and add relevant information to memory so the agent can respond to changing preferences. Run other jobs to clean up the accumulated memories, including deduplicating entries. Heavier use provides more opportunities to refine what the agent remembers and creates more maintenance work. The right cadence remains an open question.

Asked what tooling to use, especially for shared agents, Runkle recommends LangChain’s own platform and identifies two capabilities to look for. The harness needs to assemble context for the current user under the appropriate permissions. The infrastructure also needs to run the background jobs that maintain the memories the harness will draw from.

### A trip expires. A peanut allergy stays important.

[26:57](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1617s)

Recency is a tempting way to rank memories. Something you did yesterday often matters more than something you did a month ago. But the final audience question brings out a distinction between the age of a memory and its **salience**, or how much it should influence the current decision. [26:57](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1617s)

Imagine an agent that orders your food. It should remember that you’re in New York *this week* and order from restaurants there. It should also remember that you’re allergic to peanuts. Letting both facts fade at the same rate would make little sense. The location has a limited period of usefulness. The allergy needs to remain prominent however long ago you mentioned it.

That calls for domain knowledge in the dreaming job itself. Runkle suggests explicitly telling it where allergy information belongs and how important it is. A job that merely summarizes recent conversations has no reliable reason to keep an old, rarely repeated constraint at the top of its priorities.

The questioner also asks whether some preferences might be easier to represent mathematically than in words. A restaurant’s atmosphere and its fit with someone’s other tastes might be interesting candidates. Runkle hasn’t explored that approach much. Her preference is to start with ordinary files while the hard problems of deciding what to retain, revise and forget are still very much in play.

## Key takeaways

- A proactive agent can start work on an external event, a user-defined schedule or a schedule it creates to advance a longer-term goal. Each run still needs a separate decision about whether to involve the user.
- Seed memory from existing work, learn from edits and rejections, and follow what happens after an action. Approval and a successful outcome answer different questions.
- Evaluate silence as carefully as notifications. An ignored message with no consequences may justify fewer interruptions. An important message the agent missed points in the opposite direction.
- Queue routine decisions in an interface suited to review, reserve interruptions for urgent work and relax approval requirements gradually as the agent earns trust.
- LangChain gives organizational memory precedence, reviews shared changes and selects context according to user permissions. Which context to include when someone joins an existing Slack thread remains unresolved.
- Memory maintenance needs domain judgment. Frequent updates help capture changing preferences, separate cleanup jobs can remove duplicates, and important long-lived constraints need protection from simple recency rules.

## Resources

- [Proactive Agent Engineering slides](https://docs.google.com/presentation/d/1VbC01MaG_YjALvag9v1NX00GjU7LaXMq54I1JdlFcPE/edit?usp=sharing) — Follow the presentation’s examples and compare Content Studio’s application of LangChain branding with Runkle’s personal typography preferences.
- [What We’ve Learned Building Proactive Agents](https://www.langchain.com/blog/what-weve-learned-building-proactive-agents) — Runkle’s companion article goes further into LangChain’s sales and engineering agents. It suggests measures such as draft approval time, reply rates and the share of agent check-ins that users act on.
- [Schedules for Managed Deep Agents](https://docs.langchain.com/langsmith/python/managed-deep-agents-schedules) — Configure fixed recurring jobs or expose tools that let an agent schedule its own reminders and follow-ups. The examples also cover thread persistence and delivery to Slack.
- [Memory in Deep Agents](https://docs.langchain.com/oss/python/deepagents/memory) — Python examples show how to separate personal and organizational memory, search past conversations, restrict writes to shared files and consolidate memories in the background.
- [Asynchronous subagents in Deep Agents](https://docs.langchain.com/oss/python/deepagents/async-subagents) — Explore how a supervisor can delegate background work, track its status and handle requests for human input while the main conversation continues.

## Slides

### Proactive Agent Engineering

LangChain’s Sydney Runkle highlights proactive in blue. She says the topic became one of her favorites just a few weeks before the talk.

[0:17](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=17s) [LangChain title slide for Proactive Agent Engineering by Sydney Runkle, with the word proactive highlighted in blue.](https://assets.ai.engineer/sites/aiecode2025/sha256/d1c67816b3878cfa2fe2e7e05585bc3b70d64af4c796c8ee1e8e795d794fd60c.webp)

LangChain

proactive agent
engineering

sydney runkle

### Agent Milestones

Sydney Runkle places the rise of everyday coding agents around November 2025, three years after users began copying prompts and answers in and out of ChatGPT. Claude Cowork followed around January 2026. She highlights the emergence of personal agents around September 2026 in blue.

[0:20](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=20s) [Timeline showing approximate milestones for ChatGPT in November 2022, coding agents in November 2025, Claude Cowork in January 2026 and personal agents in September 2026. Personal agents are highlighted in blue.](https://assets.ai.engineer/sites/aiecode2025/sha256/fee4483e51bd5b60fb077ec13d4eef885622414f16230add31e9a9c5a6f45d4a.webp)

agent milestones

~nov 2022
chatgpt
copy + paste in chat

~nov 2025
coding agents

~jan 2026
claude cowork

~sep 2026
personal agents

### What Personal Agents Taught Us

A proactive personal agent works toward your longer-term goals in the background while you keep talking in one thread. It draws on what it remembers about your preferences and relationships when it acts on your behalf.

[1:17](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=77s) [Asynchronous work, goals, memory and a single thread appear beside an arrow pointing to the word proactive in blue.](https://assets.ai.engineer/sites/aiecode2025/sha256/8220f1b8cd482786b473188f87d5d71c961645c638ee142c2f7a7d8ccf54a6f5.webp)

what personal agents taught us

async
goals
memory
single thread

→ proactive

### Agenda

Sydney Runkle opens with what makes an agent proactive and why human attention matters. She then covers memory and user experience before looking ahead to what’s next for personal agents.

[3:43](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=223s) [Five numbered topics cover what proactive means, why attention matters, memory, user experience and what comes next.](https://assets.ai.engineer/sites/aiecode2025/sha256/ecbf982c075492a3c1017420a721cedb4c534bed48d0e35a0d41443993e39d92.webp)

agenda

01 what proactive means
02 why attention matters
03 memory
04 ux
05 what’s next

### Reactive vs. Proactive

A reactive agent waits for your prompt. A proactive agent can decide whether an email needs a reply as soon as it arrives. It can also follow a developer’s schedule or schedule its own work toward a longer-term goal.

[4:03](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=243s) [Reactive agents respond to prompts. Proactive agents respond to events in their environment, including real-world events, schedules set by the developer and schedules set by the agent.](https://assets.ai.engineer/sites/aiecode2025/sha256/f9a2b9550ce240cd9fa0877854ac24485f7411ea3ce12955af02a9b993a9e4ed.webp)

reactive vs proactive

reactive    agent responds to prompt

proactive    agent responds to events in an environment
real-world events
schedules set by the dev
schedules set by the agent

### From tasks to goals

Adding a feature and opening a pull request is one task. A proactive agent can work toward a longer-term goal by tackling a series of tasks, much like a person working through a to-do list of milestones.

[5:05](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=305s) [Agents work on tasks at a small scale and goals at a larger scale. Completing tasks helps them make progress toward goals.](https://assets.ai.engineer/sites/aiecode2025/sha256/65623d0dc5aa01827f340c6a35ed1c0c71f1d24f32bd1e0bae03ceb9f1caf71d.webp)

from tasks to goals

at a small scale, agents work on tasks
at a bigger scale, agents work on goals
and make progress on goals by working on tasks

### The flip

You give an agent a goal. The agent should then give you work when it needs clarification, help taking action in the real world, or final approval on a complex or sensitive task.

[5:49](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=349s) [The sentence “an agent gives you work” appears in large type, with “agent” and “you” highlighted in blue.](https://assets.ai.engineer/sites/aiecode2025/sha256/1f9657670899fa098f04019a024d8618ca7b8c6ed239bc00888e383a0fa2a7d8.webp)

the flip

an agent gives you work

### Your attention is now the scarce resource

A proactive agent has to decide why to interrupt you, what context to include, and when and how to reach you. Runkle wants a ping when human approval is critical. Some of her assistant’s tasks generate so much noise that she ignores every ping from them.

[6:16](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=376s) [With human attention scarce, an agent must decide why, what, when and how to communicate with you. The four question words appear in blue.](https://assets.ai.engineer/sites/aiecode2025/sha256/edbb2bbe4c4bc3551bb661e1b07174bf34c790e56229a8dd0c40f5815a3b082b.webp)

your attention is now the scarce resource

so the agent has to figure out

why    what    when    how

to ping you

### Protecting attention through memory and UX

Sydney Runkle ignores every ping from some of her assistant’s noisier tasks. She argues that protecting attention requires better memory across sessions and a user experience that makes it clear when the agent needs your input.

[7:19](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=439s) [Protecting attention requires major improvements in two areas, listed in large type as memory and UX.](https://assets.ai.engineer/sites/aiecode2025/sha256/7d49700ac63b34fd50a90ad4045ca83bced8240dfb3f168b19d9aede0c35c22c.webp)

protecting it takes a step change in two things

memory
ux

### Memory

Memory lets an agent carry what it learns across runs or sessions and use it to do a better job on future tasks.

[7:39](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=459s) [The word “memory” appears above its definition, “information learned over time.”](https://assets.ai.engineer/sites/aiecode2025/sha256/292365560072bfa954ba6c552459acc453f6ba30ac9465ea67d4aef6724ed1e3.webp)

memory

information learned over time

### Signals from the past, present and future

A personal agent can seed its memory with existing context, then carry your feedback from one run into the next. What happens after the agent acts gives it another signal about whether its actions worked.

[8:02](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=482s) [Three columns identify past precedent and existing context, present human feedback, and future external events and outcomes as sources of information.](https://assets.ai.engineer/sites/aiecode2025/sha256/b7c868926b7a9a54c2ddc8fb488cd9d5539985672d2f591ac7bf136c7501c872.webp)

signal

past
precedent /
existing context

present
human feedback

future
external events /
outcomes

### Signal

Your sent folder can teach an email agent how you write and who matters to you. Your edits help it match your voice, and your reasons for rejecting a draft tell it what to avoid. Whether the recipient replies gives it a clue about what worked.

[9:34](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=574s) [A table shows how an email agent learns from past correspondence, current edits and rejections, and future outcomes such as receiving a reply.](https://assets.ai.engineer/sites/aiecode2025/sha256/6bce2b453f1ee6017ac9dfef746ecec1340af1565b218fa6adf7125193f4f7b2.webp)

signal

signal | example | learns
past precedent | your sent folder | how you write, who matters to you, your relationships
 | past conversations (single thread) | what’s already been discussed (episodic)
present human feedback | you rewrite a draft | your voice
 | you reject a draft w/ reason | what you don’t want
future outcomes | an email gets a reply | what lands

### Dreaming

An agent generates traces that record the steps it took. Dreaming reviews those traces, human feedback and outcomes, then distills what it learns into memories the agent can use on its next run.

[12:07](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=727s) [A clockwise diagram shows an agent generating traces, dreaming turning those traces into memory, and the agent using that memory.](https://assets.ai.engineer/sites/aiecode2025/sha256/3bc18ce234e903c33b393b3396e47542c2ea590c092f1e0e1b14052052b90090.webp)

dreaming

agent — generates → traces
↑ uses               ↓
memory ← generates — dreaming

### Remembering is easy, maintaining is hard

An agent has to decide which memories still matter and who they apply to. Every night, LangChain’s design agent reviews Sydney Runkle’s conversations and records her preferences. That’s why it uses lowercase on her slides without imposing it on her teammates.

[12:46](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=766s) [Four memory maintenance decisions cover what to keep, what to forget, what has gone stale, and how important each item is.](https://assets.ai.engineer/sites/aiecode2025/sha256/3c09a7396aed967087584fb16d3d9ec3a8baf7710e7451c8df0e018fa832ceef.webp)

remembering is easy,
maintaining is hard

what to keep
what to forget
what’s gone stale
how important each thing is

### A trigger isn’t a reason to act

The blue diagonal pairs two good calls an agent can make: draft the reply you owe, or stay quiet when nothing important has changed. Drafting a reply to a newsletter creates noise. Missing a time-sensitive thread may be the costlier mistake.

[13:51](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=831s) [A two-by-two matrix compares acting or staying quiet with whether action is worthwhile. The four outcomes are useful action, noise, missed opportunity, and useful silence.](https://assets.ai.engineer/sites/aiecode2025/sha256/c8d5b542abba7c01b5b970dc786a4ab75bc805fb50da08d63c35202259ee4329.webp)

a trigger isn’t a reason to act

	worth acting on	not worth acting on
acts	useful action	noise
	drafts the reply you owed	drafts a reply to a newsletter

stays quiet	missed opportunity	useful silence
	sits on a time-sensitive thread	nothing changed that matters

### Silence is high signal

If you ignore a ping and nothing bad happens, that’s feedback. Runkle suggests storing that outcome in the agent’s memory so it can learn when to stay quiet next time.

[14:41](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=881s) [The phrase “high signal” appears in blue. Supporting text explains that ignored notifications teach the agent what deserves the user’s attention.](https://assets.ai.engineer/sites/aiecode2025/sha256/1d207383907db0147a0ef199c55d8f22a92757e3ef8a7193eb5132b9ee3e3f6f.webp)

silence is high signal

every ping you ignore teaches the agent what your attention is worth

### Async by default

A personal agent should interrupt you when it can’t proceed without your input. Otherwise, it should queue finished work for you to review together and stay responsive whenever you reach out.

[16:32](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=992s) [Interrupt when blocked and needing input. Batch completed work for review. Stay responsive in the meantime.](https://assets.ai.engineer/sites/aiecode2025/sha256/7e5b9e8b085ca049b2d82b41f9bd54a054c1fccbbe10eb9284b3d0b99295d82e.webp)

async by default

interrupt    when it’s blocked and needs your input
batch    when it has finished work to review

always responsive in the meantime

### The alignment balance

An agent can hit its goal and still violate a rule you took for granted. The blue arrow highlights “given y,” the domain-specific rules, regulations, and context you need to spell out when asking the agent to optimize x.

[16:55](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1015s) [The slide reads “optimize x, given y.” A blue arrow identifies y as highly domain specific.](https://assets.ai.engineer/sites/aiecode2025/sha256/c8813f226d4a51f7ee6c200c3ce92bd80b9b9bbc15cd5b4b127d8fe02fd18200.webp)

the alignment balance

optimize x,
given y ← very domain specific

### Progressive disclosure of autonomy

The four widening bars show how much an agent can do without asking you. Runkle proposes letting agents earn that autonomy over time. An agent that remembers your preferences might eventually send emails without approval or need only a final review of its code.

[17:38](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1058s) [Four increasingly long blue bars illustrate starting with narrow autonomy and gradually reducing human involvement as trust grows.](https://assets.ai.engineer/sites/aiecode2025/sha256/5095a198ecc01910c99d8a9343978937a1721b51a1fc46e65c687231a96105f2.webp)

progressive disclosure of autonomy

start narrow, widen with trust

progressively take the human out of the loop

### What’s next

Runkle qualifies the claim that the agent harness is mostly solved. Designing one is still hard. She sees the focus shifting to orchestration: where people access agents, how agents communicate, and how they work together on bigger goals over longer periods.

[18:28](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1108s) [The slide calls the agent harness mostly solved and highlights orchestration, with agents working together inside other systems toward larger goals.](https://assets.ai.engineer/sites/aiecode2025/sha256/39f416550594891258d75244c25a2d9c9588ad9dd393975b0191dd35a96cb87f.webp)

what’s next

the harness is (mostly) solved

the frontier is orchestration: agents inside other systems, working with each other, toward bigger goals

### Context engineering

The task determines what information the model needs and when it needs it. Sydney Runkle says her team has spent three years working on those two decisions.

[19:12](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1152s) [Give the model the right context at the right time for the task. A note says the team has spent three years on this.](https://assets.ai.engineer/sites/aiecode2025/sha256/ecfd820079de8ee034b6c2adc24fc1185872c877b1f0db8457c892693f26b83b.webp)

context engineering

the right context,
at the right time,
for the task

(for the model)

we’ve spent 3 years on this

### Context engineering for humans

Sydney Runkle calls this attention engineering. A proactive agent has to decide what context to give you and when. The slide highlights both task and goal because what deserves your attention depends on what you’re trying to accomplish.

[19:25](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1165s) [The slide calls for giving people the right context at the right time for the task in service of their goal. The words “task” and “goal” and the phrase “for you” appear in blue.](https://assets.ai.engineer/sites/aiecode2025/sha256/7d42e877ec9a982a0b028483b303c794ecd4a84bd7ab32f93ff1e1e1cd0abf72.webp)

now we’re doing it for humans

the right context,
at the right time,
for the task,
in service of the goal

(for you)

### Questions?

In the Q&A, Sydney Runkle explains how she organizes agent memory. Skills capture workflows, files store facts, and past conversations provide examples. One open question is whose context an agent should use when someone joins a Slack thread.

[19:43](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1183s) [The LangChain logo appears at the upper left, with “questions?” in large type near the lower left.](https://assets.ai.engineer/sites/aiecode2025/sha256/71f5f7798c35bd27c3f7238327387364ea98dfde140e5d0cd8a134c0d5641c1a.webp)

LangChain

questions?

## Full transcript

[0:12](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=12s) Hey, folks. I'm super excited to be here today. Um, proactive agent engineering is, uh, one of my favorite topics as of just a few weeks ago, so. Um, all right. So first, just wanna walk through kind of a brief timeline of some major, like, AI and agent milestones. Um, so early, long ago, in twenty twenty-two, 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

[0:42](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=42s) of the, like, ChatGPT window. Um, but I think really it wasn't until, like, November of twenty twenty-five 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 Cowork came out briefly after that, or soon after that. Um, and then most recently in, uh, like, September and August of twenty twenty-six, we saw the advent of personal

[1:12](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=72s) agents like Muse, Instinct, um, Grok Bot, dots, et cetera.

[1:18](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=78s) 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 that 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

[1:48](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=108s) 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 different 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 and 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

[2:18](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=138s) 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

[2:48](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=168s) strong kind of preferences and life context, et cetera. 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

[3:18](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=198s) on your behalf or, um, things of that nature. And then the f- 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 gonna talk about what proactive actually means in the context

[3:48](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=228s) 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?

[4:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=244s) 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,

[4:34](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=274s) your agent is now, like, triggered to decide if it's like spam, deserves a response, et cetera. Um, and then the second category is more scheduled work, and that can either be schedules set by the user. For example, like every morning at nine AM, send me a digest of my meetings and relevant information or schedules 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

[5:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=304s) contribute to that goal.

[5:07](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=307s) 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 code base and, you know, deliver me a PR. At a bigger scale, they work on goals, um, and they make progress on goals by doing kind of discrete work on tasks that contribute to said

[5:37](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=337s) goal. Um, 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,

[6:07](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=367s) 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.

[6:18](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=378s) 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 wanna 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

[6:48](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=408s) 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

[7:18](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=438s) really challenging.

[7:21](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=441s) 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,

[7:51](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=471s) 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.

[8:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=484s) So what kind of types of memory do we have? Um, and, and what signal can we use 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,

[8:34](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=514s) your goals, your life, et cetera. 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

[9:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=544s) then the third, um, that I think is a little bit more novel and innovative, and 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.

[9:35](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=575s) 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

[10:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=604s) 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, et cetera. 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,

[10:35](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=635s) 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, et cetera. 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.

[11:05](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=665s) 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

[11:34](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=694s) information about, like, my personal voice, um, what you don't want sent, et cetera. 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

[12:04](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=724s) consequences of its actions in the first place.

[12:09](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=729s) Um, I'm gonna talk a little bit about dreaming. Again, another, like, pretty human concept, right? Dreaming is how... Or, or, you know, kind of sleep, uh, and, and that process is how we distill 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, et cetera. You can distill that

[12:39](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=759s) 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 the, like, very, you know, blank, plain Google Slides template, and then I

[13:09](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=789s) 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, distills Sydney's personal preferences memory file. So luckily, I didn't even have to

[13:39](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=819s) 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.

[13:53](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=833s) 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. Um, 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

[14:23](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=863s) 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.

[14:43](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=883s) Um, I mentioned this earlier. Silence is really high signal. Like, no signal is actually a 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.

[15:02](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=902s) Um, UX. Okay, I said I'm gonna talk about two things. One is memory. We've 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 u- review

[15:32](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=932s) 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, et cetera. 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 wanna, like, have it be exactly where you want it to be. Um,

[16:02](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=962s) 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 probably ninety percent 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.

[16:34](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=994s) And then I mention 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 the 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.

[16:58](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1018s) 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

[17:27](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1047s) 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, et cetera.

[17:40](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1060s) 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,

[18:10](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1090s) 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 this like robust memory system where agents can learn not only your preferences, but also kind of gain your trust over time.

[18:29](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1109s) 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

[19:00](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1140s) kind of time horizons that we couldn't have imagined, like a year, 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.

[19:14](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1154s) 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 atten-attention engineering, um, thesis of this talk.

[19:45](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1185s) 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.

[19:59](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1199s) Yeah.

[20:00](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1200s) 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 build 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

[20:30](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1230s) lives in one place about how to write emails, but also the source of truth is ultimately like email sent-

[20:35](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1235s) Yeah

[20:35](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1235s) ... 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, uh, in one of those three or another category?

[20:43](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1243s) 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 wanna 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

[21:13](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1273s) interactions. Um, and I generally like to bucket like procedural memory into skills. I think of skills as 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, uh, semantic memory I think about more as just like storing information in files as like a basic starting point.

[21:36](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1296s) Mm-hmm.

[21:36](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1296s) 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 flair. Um, and so I, that, I think that's kind of like an ongoing

[22:06](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1326s) challenge, but we do have like org memory always override personal memory for like, um, agents at LangChain, for example.

[22:13](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1333s) Okay. One follow-up. How do you, uh, how do you permission org memory?

[22:17](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1337s) Uh, yeah, great question. So, um, we do a lot of like role-based permissioning. So like, you know, a, um, a sales rep has different permissions for using the GTM Agent than like a deployed engineer, for example. Um, and, and so it's really just like the, you know, boring pieces of like ABAC, RBAC, et cetera. 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.

[22:47](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1367s) 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. Um, 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 a work in progress I would say.

[23:18](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1398s) Yeah.

[23:18](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1398s) Yeah. Um, at LangChain, when an update gets pushed or a change gets pushed, pushed to an organizational skill, um, 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.

[23:44](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1424s) 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, um, by hundreds of people across the org now. Um, 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. Um, and so that is a team of developers that works very, very

[24:14](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1454s) closely with basically the, um, relevant GTM teams. So for example, like our marketing team has like a huge say in, uh, 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.

[24:43](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1483s) 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, um, you know, if you're creating memories based on that, you will over-index and overcompensate, 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

[25:13](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1513s) about that trade-off?

[25:15](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1515s) 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

[25:45](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1545s) secondary jobs that do more of the like memory cleanup and management, you know, for like de-duplicating things, et cetera, 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

[26:15](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1575s) feedback that I like ever gave that was not generalizable at all to like other content, um, which was a pain at first. Yeah.

[26:23](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1583s) Uh, is there a good tool that you would recommend for memory management, like especially in a multiplayer setting?

[26:32](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1592s) 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, et cetera. 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.

[26:57](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1617s) Uh, quick question about, um, maybe more advanced topics on memory. Like I was thinking, and I want to get your thoughts on this, is like when we think about memories, right? Generally, th- 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-

[27:13](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1633s) Yeah

[27:14](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1634s) ... 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?

[27:31](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1651s) 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.

[28:01](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1681s) Um, again, I think that just goes into the like dreaming pipeline infrastructure and, uh, 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

[28:31](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1711s) 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?

[28:57](https://www.youtube.com/watch?v=cjiIvQqN5eI&t=1737s) 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.
