---
updatedAt: 2026-07-08T11:47:28.000Z
agentTools:
  projectIndex: https://docs.customgpt.ai/llms.txt
---

# How context depth works

This guide explains what context depth controls, how the context and history windows work, and how your plan determines the default setting.

Context depth controls how much information your agent reads and remembers when answering a question. It sets two windows - one for how much of your knowledge base the agent draws from, and one for how much conversation history it keeps in view.

***

## The two windows

Context depth sets two things simultaneously:

**Context window** - how much of your knowledge base the agent draws from per question. A wider window means the agent can pull from more sources at once when assembling an answer.

**History window** - how much of the current conversation the agent keeps in view. A larger history lets the agent refer back to earlier messages when answering follow-up questions.

Each context depth option sets both windows together. You cannot set them independently unless you are on an Enterprise account with a Custom configuration.

<Callout icon="🚧" theme="warn">
  ###

  **Note**: Context depth is available on all agents, including those with Plan & Act mode enabled. The conversation history benefit of higher context depth applies to standard agents only - Plan & Act agents handle conversation memory differently.
</Callout>

***

## Available options

| Option   | Context window (tokens)                                                  | History window (tokens)                                                  |
| -------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| Compact  | 2,000                                                                    | 1,000                                                                    |
| Balanced | 3,000                                                                    | 1,000                                                                    |
| Extended | 6,000                                                                    | 2,000                                                                    |
| Rich     | 12,000                                                                   | 4,000                                                                    |
| Max      | 24,000                                                                   | 8,000                                                                    |
| Custom   | Set by your [account team](https://1vbe3tm7f7m.typeform.com/to/Q8KR5yu9) | Set by your [account team](https://1vbe3tm7f7m.typeform.com/to/Q8KR5yu9) |

***

## Default by plan

Context depth is set automatically when the agent is created:

* Standard plan agents default to **Compact** and can select up to **Extended**.
* Premium plan agents default to **Balanced** and can select up to **Rich**.
* Enterprise customers can access all options including **Max** and **Custom**.

***

## Query credit cost

Higher context depth uses more query credits per question. Extended, Rich, and Max each cost progressively more than Compact and Balanced. Standard plan users pay 1 more query credit than Premium and Enterprise users at the same depth level. See [How context depth affects query cost](https://docs.customgpt.ai/docs/how-context-depth-affects-query-cost) for the full breakdown.

***

## When context depth makes a difference

A wider context window helps when a question requires pulling from multiple parts of your knowledge base. A larger history window helps when a conversation builds on earlier turns.

For most agents, **Balanced** covers everyday needs. See [Choose the right context depth for your use case](https://docs.customgpt.ai/docs/choose-the-right-context-depth-for-your-use-case) for guidance on when to move to a higher setting.

***

## Related articles

* [Set context depth on your agent](https://docs.customgpt.ai/update/docs/set-context-depth-on-your-agent)
* [How context depth affects query cost](https://docs.customgpt.ai/docs/how-context-depth-affects-query-cost)
* [Choose the right context depth for your use case](https://docs.customgpt.ai/docs/choose-the-right-context-depth-for-your-use-case)

<br />