---
title: "How context works"
kind: "explain"
audiences: ["strategist","rep"]
track: "agent-fundamentals"
date: "2026-07-29"
summary: "Understand what an agent can see now, what persists elsewhere, and how to supply only the context a field job needs."
html_url: /library/learn/how-context-works
markdown_url: /library/learn/how-context-works.md
---

# How context works

Understand what an agent can see now, what persists elsewhere, and how to supply only the context a field job needs.

**By the end:** You can assemble a compact context packet, recognize when a chat has lost the thread, and keep durable CRM facts separate from temporary conversation history.

Agent Fundamentals · 12 min · Foundational

## Context is the agent’s working material

A model does not inspect every file, every previous chat, and every mydoclist record whenever you type. It responds using the information the AI application places into the current context: instructions, your messages, selected conversation history, attached files, and tool results.

Think of context as the material spread across the passenger seat for this call—not the entire filing cabinet. Relevant material helps. A huge pile can bury the detail that matters.

## Temporary context and durable context are different

Knowing where information lives prevents “I told it before” from becoming a workflow failure.

- **Current conversation**: Your request, recent turns, attached files, and tool results available now.
- **Application settings**: Projects, custom instructions, or memory—behavior varies by application and account.
- **mydoclist record**: Durable provider, practice, activity, and territory state with stable identity.
- **Local or cloud files**: Durable artifacts only if you intentionally save, name, and retain them.

## Build a six-part field context packet

1. **Objective** (owner: You): What decision, action, or deliverable should exist at the end?
2. **Subject** (owner: You + mydoclist): Which provider, practice, account, campaign, or territory is in scope?
3. **Audience** (owner: You): Is this for you, a provider conversation, or a manager update?
4. **Known facts** (owner: mydoclist): Supply current identity, CRM state, activity, and sourced market facts.
5. **Constraints** (owner: You): Time, company policy, topics to avoid, and whether actions must stay read-only.
6. **Definition of done** (owner: You): Name the format, length, decision standard, and review expectation.

## Give enough context without dumping everything

This structure travels well between ChatGPT and Claude because it describes the job rather than relying on hidden memory.

Prompt `field-context-packet`:

> Objective: {{objective}}
> Subject: {{subject}}
> Audience: {{audience}}
> Known current facts: {{knownFacts}}
> Constraints: {{constraints}}
> Done looks like: {{definitionOfDone}}
>
> First, identify any missing context that would materially change the result. Then complete the task. Mark assumptions clearly and do not invent facts that should come from mydoclist.

- {{objective}} (Objective): choose the three accounts to visit Thursday
- {{subject}} (Subject): the cardiology accounts in my north Denver campaign
- {{audience}} (Audience): me, planning from my phone
- {{knownFacts}} (Known facts): paste a short, approved mydoclist summary
- {{constraints}} (Constraints): 45-minute drive limit; do not change CRM records
- {{definitionOfDone}} (Definition of done): ranked list with one reason and one uncertainty per account

Before sending:

- Use the minimum customer or account information required for the job.
- Do not paste PHI or data prohibited by your company policy.

## Why a fresh thread sometimes works better

**Situation:** A long planning chat has mixed three territories, two campaigns, and several revised qualification rules.

**Input:**

> Start a fresh thread. Paste the final qualification rule, the approved account summary, Thursday’s geographic constraint, and the desired ranked-list format.

**Expected output:**

- Old brainstorms no longer compete with the current rule.
- The agent can state exactly which facts it used.
- The resulting plan is easier to audit and save as a durable artifact.

**Takeaway:** Starting fresh is not losing intelligence when you carry forward a clean context packet. It is often how you remove accidental context.

## Inspect the context before the answer

A response can only be as grounded as the material available to the agent for that turn.

- Did the agent use the final rule or an obsolete version from earlier in the chat?
- Are mydoclist facts current and attached to the correct entity?
- Did a summary drop a constraint that changes the decision?
- Would a fresh thread with a smaller packet be easier to audit?

## Common context failures

- **The agent applies a rule from a different customer or territory.**
  Likely cause: The conversation contains competing instructions or examples.
  Recovery: Restate the active rule and scope explicitly. If ambiguity remains, start a clean thread with the six-part packet.
- **The agent forgets a detail from much earlier in the conversation.**
  Likely cause: The application summarized or omitted older material, or the detail was never durable context.
  Recovery: Bring the important fact back into the current request and save durable operational facts in mydoclist or an approved team playbook.
- **A file is on your laptop but the agent cannot see it.**
  Likely cause: Local files are not automatically part of a cloud conversation.
  Recovery: Attach the approved file intentionally, quote the needed portion, or use a connected source. Never assume local storage is visible.

## Related modules

- [The mydoclist + AI partnership](mydoclist-ai-partnership.md): Learn what mydoclist, your AI application, and you each contribute to the work.
- [How language models work](how-language-models-work.md): Understand why an AI can sound certain without current evidence—and how to ask for a grounded field answer.
- [How tool calls work](how-tool-calls-work.md): See how an agent moves from a request to structured arguments, a mydoclist result, and a response you can review.
- [Structured inputs and structured responses](structured-inputs-and-responses.md): See how ordinary field language becomes validated tool arguments, durable CRM fields, and a conversational explanation.
- [Prepare for a provider meeting](prepare-provider-meeting.md): Turn current provider evidence and your relationship context into a focused five-minute pre-call briefing.
- [How mydoclist connects to Claude and ChatGPT](how-mydoclist-connects-to-claude-and-chatgpt.md): See what an MCP connection makes available, how current data travels through it, and why every proposed CRM change still stops for your review.
