Outbound Wiki

AI SDR agent context and memory

The company, prospect and conversation information an agent uses to produce relevant actions and maintain continuity across touches.

Give an AI SDR agent a managed memory system. The prompt is one input in a larger context, and that context changes from action to action. Every agent harness eventually meets a context window too small for everything the model might remember.1 As sessions grow, the harness decides what stays in the working set, what gets compressed, and what gets retrieved later.2 Memory architecture can matter more than changing the underlying model.3 Set retention and retrieval rules before polishing prompt wording.

Set the memory boundary

Separate what the agent needs for the current action from what should survive the interaction. This gives it a small place to reason and a durable place to return to.

Context is the set of tokens included when a model samples from a large language model.4 Prompt engineering covers writing and organizing instructions for the model.5 Context engineering covers curating and maintaining the information available during inference, including material outside the prompt.6

Short-term context belongs to the active session, while long-term memory lives in a persistent profile graph.7 A state object can serve as a local-first memory store with a structured profile and notes.8 Let that state persist across runs so memories, notes, or preferences can evolve.9

For an outbound agent, create separate places for company context, prospect context, current conversation state, and durable notes. Decide which changes belong in durable memory and which details can disappear when the action ends. If a detail cannot change a later action, leave it out of the durable state.

Assemble the working set

Build the context for the action the agent is about to take. Load the smallest useful set first, then fetch supporting detail when the action needs it.

Keep high-value state close to the model, page through larger data on demand, use indexes to find needed material, and truncate content in a way that shows what else can be accessed.10 As sessions grow, the harness makes the same decisions about what remains in the working set, what gets compressed, and what gets retrieved later.2

Use this order:

  • State the current action and the decision the agent must make.
  • Load the durable profile for the company and prospect.
  • Add the recent conversation state, including the latest response and unresolved point.
  • Retrieve supporting research only when it can change the next action.

Move on when the working set gives the agent enough context to act without making it read the entire history. If a source is too large, retain a pointer or index path so the agent can retrieve more when needed.

Distill each touch into memory

Memory becomes useful when each touch leaves behind a compact state that a later action can use. Treat the end of an interaction as a memory writing step alongside message generation.

A run can distill memory by converting a tool call into session notes.11 After each call, reply, or research action, record the facts that should affect a later decision. Keep the note focused on what changed, what remains uncertain, and what the agent should look for next time.

A durable note can contain:

  • confirmed company or prospect facts
  • the latest stated concern or priority
  • an unresolved question
  • the agreed or intended next action

Ask what changed, what would make the note wrong, and what the agent should retrieve before its next action. A compact answer gives retrieval something to select. When detail may matter later, keep it available behind a retrievable pointer instead of loading it into every working set.10

Retrieve for the action

Retrieval should explain why a memory belongs in the current action. Give the agent context that changes the response, timing, or next step, and leave unrelated history out of the working set.

An agent can feel personal, consistent, and context-aware when it manages what is stored, recalled, and injected into working memory.12 Agent-generated account context and research can make human outreach more relevant.13 A context and ideation partner can track events, combine information across systems, and identify what a seller is forgetting.14

For each action, retrieve memories that answer these questions:

  • Who is this action about, and which company context applies?
  • What happened in the latest interaction?
  • Which unresolved point makes this action relevant now?
  • Which stored fact could change the wording or timing?

Remove anything that answers none of them. Relevance comes from the connection between the memory and the action, not from the age or size of the memory store.

Preserve continuity across touches

Continuity depends on durable state that carries forward decisions and constraints without replaying every earlier exchange. Keep that state inspectable.

An agent can use relevant information from a chat without referring back to the full chat history or other large datasets.15 Memory can persist across interactions while remaining governable and transparent.16 Make durable state easy to inspect, correct, and remove when a current interaction changes it.

Treat date-sensitive or decision-sensitive notes as conditional. Before using a durable note, check whether the current touch still supports it. An agent can carry stale context into a later decision,17 so the memory layer should make old assumptions visible instead of presenting them as current facts.

Test context, not only wording

Test whether the agent selects and carries context correctly as conversations grow. A polished instruction cannot repair a working set that contains the wrong state.

Observed sessions have included the model losing track of the task, file reads consuming half the context window with boilerplate, and tool results crowding out the conversation.18 Agents can also return outputs that appear correct while being wrong in context.19

Run tests that ask:

  • Can the agent identify the current action?
  • Can it separate current facts from older notes?
  • Can it retrieve the company or prospect context that changes the action?
  • Can it say what information is missing instead of filling the gap?
  • Can it resume after earlier context has been compressed?

When a test fails, inspect what was stored, what was retrieved, and what was compressed before rewriting the instruction. The failure often sits in the context assembly, memory update, or retrieval rule.

What not to do

These mistakes turn memory into accumulated noise or leave the agent without continuity.

  • Strong systems manage the context window actively, so it does not remain a passive transcript buffer.20
  • Keep file reads and tool results from crowding out the actual conversation.18
  • Treating each interaction in isolation severely limits retention of user context, past decisions, and enterprise constraints across workflows.21
  • Check durable notes before use. An agent can carry stale context into a later decision.17

Before the next outbound run, define the state object, decide what belongs in the working set, and specify how a touch becomes a durable note. Then test a resumed conversation containing both current and stale information before allowing the agent to act.

Sources

  1. 1
    “Every agent harness runs into the same limit: the context window is too small for everything the model might want to remember.”
  2. 2
    “As sessions grow, file reads expand, subagent calls multiply, and tool outputs pile up, the harness has to decide what stays in the working set, what gets compressed, and what gets retrieved later.”
  3. 3
    “The gap between 'has memory' and 'does not have memory' is often larger than the gap between different LLM backbones.”
  4. 4
    “Context refers to the set of tokens included when sampling from a large-language model (LLM).”
  5. 5
    “Prompt engineering refers to methods for writing and organizing LLM instructions for optimal outcomes”
  6. 6
    “Context engineering refers to the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference, including all the other information that may land there outside of the prompts.”
  7. 7
    “While short-term context remains tethered to the active session, enabling agents to reason effectively in the immediate moment, long-term memory is linked to a persistent profile graph.”
  8. 8
    “State object = your local-first memory store (structured profile + notes)”
  9. 9
    “It allows developers to define structured state objects that persist across runs, enabling memory, notes, or even preferences to evolve over time.”
  10. 10
    “They manage it actively: keeping high-value state close, paging through data on demand, building indexes to find what’s needed (grep does this), and truncating content in a way that hints at what else can be accessed.”
  11. 11
    “Distill memories during a run (tool call → session notes)”
  12. 12
    “By managing what’s stored, recalled, and injected into the model’s working memory, we can make an agent that feels personal, consistent, and context-aware.”
  13. 13
    “Alex describes how one of their SDRs uses deep, agent-generated account context and research to make human outreach more relevant.”
  14. 14
    “Something that can keep track of what’s happening, pull together information across systems, and help identify what the seller is forgetting.”
  15. 15
    “Agentic Memory is a core platform capability and allows agents to use relevant information in the chat without referring back to chat history and other large consumer datasets.”
  16. 16
    “This memory persists across interactions, yet remains governable and transparent.”
  17. 17
    “The agent can carry stale context into a later decision.”
  18. 18
    “We saw sessions grow until the model lost track of the task, file reads consume half the context window with boilerplate, and tool results crowd out the actual conversation.”
  19. 19
    “They return outputs that look correct but are wrong in context.”
  20. 20
    “The best systems do not treat the context window like a passive transcript buffer.”
  21. 21
    “This design severely curtails their capacity to retain user context, past decisions, and crucial enterprise constraints across various business workflows.”