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 incontext/, at the top level of the project. Only .md files are discovered, and nesting is not supported — the directory is read one level deep.
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 validatechecks only the limits under Validation.
Validation
- The file name can contain only letters, digits,
_,-and., and cannot contain... - A file whose name matches
context.mdin any letter case must be named exactlyCONTEXT.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 — the other non-runtime resource type
- Working locally — where
context/sits in the project structure - Resource architecture — the full
{{prefix:name}}reference table, inert here but live everywhere else poly docs— output this reference from the CLI withpoly docs context

