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

# Context documents

> Markdown files in context/ that carry background knowledge about the project for Studio Assistant, without affecting agent runtime.

Context documents are Markdown files that hold background knowledge about the project — how it is structured, why decisions were made, what "done" looks like for a piece of work.

**They do not affect agent runtime.** Nothing in a context document reaches a caller. They serve two purposes: documenting the project for the people working on it, and giving PolyAI's **Studio Assistant** a place to read ongoing project context.

## Location

Documents live in `context/`, at the top level of the project. Only `.md` files are discovered, and nesting is not supported — the directory is read one level deep.

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
<account>/<project>/
└── context/
    ├── CONTEXT.MD
    ├── FUNCTION_GUIDELINES.md
    └── SUCCESS_CRITERIA.md
```

> [!WARNING]
>
> **`CONTEXT.MD` must use exact uppercase**
>
> The platform treats `CONTEXT.MD` as a special file and requires that exact casing. A file whose name matches `context.md` case-insensitively but is not exactly `CONTEXT.MD` will fail validation. All other document filenames preserve whatever case you give them.

## Contents

The body is plain Markdown, passed through unchanged in both directions. Two consequences:

* **Resource references are not resolved.** `{{fn:}}`, `{{attr:}}`, and the other reference prefixes are inert here — they stay as literal text rather than resolving to a resource.
* **There is no schema.** `poly validate` checks only the limits under [Validation](#validation).

## Validation

* The file name can contain only letters, digits, `_`, `-` and `.`, and cannot contain `..`.
* A file whose name matches `context.md` in any letter case must be named exactly `CONTEXT.MD`.
* A document is at most 256 KB.
* A project has at most 50 context documents.

## Syncing

Documents follow the standard lifecycle — `poly pull`, `poly status`, `poly diff`, and `poly push` all treat them as ordinary resources, and the document's path is its identity on the platform.

## Related pages

* [Tests](https://docs.poly.ai/adk/reference/resources/tests.md) — the other non-runtime resource type
* [Working locally](https://docs.poly.ai/adk/development/working-locally.md) — where `context/` sits in the project structure
* [Resource architecture](https://docs.poly.ai/adk/development/resource-architecture.md#resource-references) — the full `{{prefix:name}}` reference table, inert here but live everywhere else
* [`poly docs`](https://docs.poly.ai/adk/reference/cli/docs) — output this reference from the CLI with `poly docs context`
