> ## Documentation Index
> Fetch the complete documentation index at: https://docs.script.it/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent context

> Choose how much of a script the agent can use as context.

Agent context controls how much of a script the Script.it agent can use when it responds in chat.

You can change this from the script header. The control is labeled **Agent context**.

| Mode                 | What it does                                                 |
| -------------------- | ------------------------------------------------------------ |
| Not Included         | Script not included in context, but searchable by the agent. |
| Description Included | Agent will read the script if description is relevant.       |
| Script Included      | The full script content is included in the agent context.    |

## When to use each mode

Use **Description Included** for most runnable scripts. Keep the script description accurate, because the agent uses it to decide when the script is relevant.

Use **Not Included** when the script should not be added to the agent's context. This is useful for scripts that are sensitive, noisy, experimental, or only useful in narrow situations.

Use **Script Included** for persistent instructions, preferences, or memory that should guide the agent across sessions. For example, a private memory script can tell the agent how you like reports formatted, what tone to use, or which recurring assumptions to follow.

## Agent context and assets

Agent context and assets solve different problems:

* **Agent context** affects what the agent reads before it responds.
* **Assets** are files stored with a script, such as templates, reference data, or small state files.

You can use them together. For example, a **Script Included** memory script can explain which preferences matter, while a small asset file stores values that are updated over time.
