Thread context
What the model can work with in a thread, how information enters its context, and what changes as the work continues.
Context is the information the model can work with at a given moment. It can include instructions, messages, source content, working notes, and tool results. The model’s context window has a finite capacity, so it cannot hold everything the agent can access at once.
The information behind the work
A thread brings instructions, sources, and earlier work together so the agent can carry out a job. Its context changes as it reads, uses tools, and records what it learns about the task.
What contributes to context
Instructions
The agent’s role, standards, and boundaries, together with directions that apply to this work.
Messages
The request, follow-up directions, and earlier exchanges relevant to the job.
Working notes
The thread’s saved plan, important facts, corrections, and decisions.
Source material
Content from files, documents, and tables, supplied directly or retrieved as needed.
Saved knowledge
Relevant memories and skills, which may enter as references, summaries, or full content.
Tool results
Information returned by searches, connected apps, browser actions, and code execution.
How context develops
Core context provides the agent’s foundation. Dynamic context develops around the current job. Afterward, saved outputs and learning can support future work.
Explicit references identify a particular source rather than relying on discovery. A selected document can supply its sections, while a table or past thread may supply a preview or summary. What enters context depends on the resource type and access; additional content can require retrieval.
The foundation your agent works from
Instructions and configured resources give the agent a consistent starting point. Core context describes their role, not a guarantee that every resource is loaded in full on every message.
InstructionsThe role, standards, and directions that apply to the work. An existing thread can retain a saved version even after the agent’s instructions change.
Important memoriesPinned or high-importance memories can be included with their content at session start, subject to access and context limits.
Pinned skillsIn the default discovery mode, pinned skills supply names and descriptions. Full instructions are read separately; preloading is a different setting.
Agent-attached filesAttached files supply references, including when pinned. Their contents are opened when needed.
A session start is not the same as every message. See knowledge access for loading and discovery settings.
Information that develops with the job
The thread’s history, working notes, surfaced knowledge, and retrieved material change as the work progresses. Discovery and retrieval can both happen without another request from you, within the agent’s access.
Thread historyThe request, follow-up messages, and earlier exchanges. Older history may be represented by a summary rather than its full text.
Working notesThe plan, facts, corrections, and decisions the agent records as the job develops.
Knowledge hintsRelevant prior-thread summaries, memory excerpts and skill summaries can surface with a message, within the run’s access.
You can see which earlier work may be informing a new request. Knowledge hints beneath your message identify the prior-thread summaries, memory excerpts or skill summaries supplied with it. What appears depends on your agent’s access and settings, and not every message has new hints. A hint identifies supplied context; it does not show that the agent read the whole source or used it in the answer.
Sources opened for the taskDocuments, tables, and full skill instructions add detail beyond an initial reference or summary. Selected references can also supply supported content directly.
Tool resultsSearches, enabled connected apps, browser actions, and code execution return information the agent can use for the job.
Large results can be saved as files and read in parts rather than kept in active context all at once.
After the work
Finishing a job leaves a record the agent can return to. Learning can also turn part of that experience into reusable knowledge.
Replies and saved outputsReplies remain in the conversation history. Saved documents, tables, and files can be reopened without staying in active context indefinitely.
0:000:000:000:00Working notesNotes retain the plan and details the agent recorded for this job. Finishing the task does not automatically copy the whole result into them.
Suggested learningsThe agent can suggest memories, skills, and instruction updates based on the work. These become reusable learning when saved or applied, including automatically where learning settings allow.
Review what the agent proposes to keep. Saved memories and skills can support future jobs through knowledge access; instruction updates change the target agent or thread. Existing threads can retain an earlier instruction snapshot.
For how to review proposed changes, see Manage Learnings.
Context limits
Open thread details, then the model/context menu, and choose Context and usage… to inspect how much of the model's context window the latest request occupied. Choose View detailed usage for the Usage side panel. The gauge is a recorded snapshot, so it can lag while the agent is working.
| What you see | What it means |
|---|---|
| Input | The latest recorded input, including cached content, compared with the selected model’s configured limit. |
| Output | Tokens generated in the response. These are separate from the input fullness bar. |
| Usage | Cumulative consumption and cost, with breakdowns by model, tool, and subagent. |
As the window fills, compaction makes room. Older context is summarized or trimmed while the saved thread, files, and working notes remain. The displayed gauge may fall; costs already incurred do not. Compaction can happen before the gauge reaches full capacity. See compaction controls.
A large file does not have to fill the context window
The thread’s computer can process a file and return selected rows, calculations, or a summary. The model receives the information brought back into context, rather than needing the entire file in view. Disk storage and model context are separate limits.
Limits that bound a run
Give the work enough time
Set a turn timeout of 10, 30, 60, or 90 minutes. A 4 hours option appears only where the longer limit is enabled for your account. This limits how long the agent can work in one turn. You can set it on the agent, the thread, or for a single turn; the most specific setting wins.
Make room in a long conversation
Compaction summarizes or trims older active context to make room for more work. It does not delete the saved transcript, working notes, or files.
- Automatic: where available, choose a threshold from 50% to 90%, or use Default. Available controls can differ between Auto and Manual model selection.
- On demand: open Context and usage… from the model/context menu and choose Compact context now, or enter
/compact. Manual compaction is unavailable while a run is active or before the thread has saved messages. - Exact details: a summary may omit specifics. Ask the agent to reopen the original source or saved output when a later task needs them.
See context controls for the settings.
Keep files within the message limit
In an agent’s New task or Message composer, or the composer at the top of a project, drag a file into the message area. Check the attached files before sending the request. Dropping a file uses the same upload checks as adding it through the attachment control.
You can attach up to 20 files to one message, with a direct-upload limit of about 2 GB per file.
How those files are processed depends on their size:
- Files up to 50 MB each: these files must total 100 MB or less in one message.
- Files larger than 50 MB: these are supplied as file references for the agent to open or process, rather than automatically loading their full contents into the model’s context. They do not count toward that 100 MB total.
For example: three 40 MB files total 120 MB, so they exceed the smaller-file limit. A single 200 MB file can use the reference-only path instead. Upload acceptance still depends on the other file checks.
These are upload and processing limits, not the computer’s disk capacity.
Files on the thread’s computer
The computer uses RAM to run processes and disk space to keep working files. Both are separate from the model’s context window.
- One thread’s workspace: working files can persist between messages in that thread. Other threads do not share the same working filesystem just because they use the same agent.
- Saved outputs: saved artifacts are stored separately. Saving a file does not automatically remove its working copy from the computer.
- Storage full: the affected thread cannot continue and shows a notice directing you to support. Compaction does not free disk space.
Keep important deliverables as saved outputs. The working filesystem is not a promise of permanent storage.
Images, video, and audio
Generated media is saved as artifacts, separately from the computer’s working filesystem. Downloading a copy onto the computer also uses its disk space.
- Images: resolution and reference-image limits depend on the generation model.
- Video: duration and resolution depend on the model and mode. For example, Veo 3.1 offers 4, 6, or 8 seconds, with 1080p requiring 8 seconds; Seedance 2.5 accepts 4–30 seconds.
- Audio dialogue: one call supports up to 40 turns and two distinct speakers.
- Uploads to another website: browser uploads have a 50 MB limit, and the destination may impose its own restrictions. This is not a universal generated-file size limit.
A lower context reading does not increase these allowances. See Media generation for model choices and supported inputs.
What carries between threads
Depending on your agent’s configuration, context can be shared between threads. Each thread keeps its own conversation and working notes; a new thread does not automatically receive everything from earlier jobs.
- Shared knowledge: skills and memories available to the agent can support work across threads.
- Earlier work: your agent can pick up relevant details from accessible past conversations without you attaching each one. Thread search and the agent’s Workspace and conversation access determine which history it can recall. Knowledge hints can show summaries supplied with a request in the web app. This is selective recall, not the whole earlier transcript.
- A separate job: start a new thread when you want to work from a different set of facts. Say whether the agent should reuse a method or work only from the sources you supply. For stricter separation, review its knowledge access and turn off Thread search; a fresh conversation alone does not remove saved knowledge.
For practical guidance, see when to start a new thread and Set your agent up to do the job well.