Skip to main content
Context is your workspace’s GTM knowledge base: an ICP definition, personas, positioning, playbooks — the qualitative knowledge that grounds agents and workflows. defineContext syncs a local folder of markdown/MDX into the workspace’s context repository as code.

Define context

context/context.ts
Everything under path is synced on deploy:
Add a .md/.mdx file and it’s picked up automatically; edit one and it re-syncs.
Your code is the source of truth for the files it manages, not for the whole repo. Delete or rename a file in code and the next deploy removes it from the repo; files added in the UI, or by anything other than a deploy, are left in place.

Inline files

Alongside (or instead of) a local path, pass files to generate context entries in code — each key is a path in the repo, each value its contents. Inline files are merged over anything synced from path, so they can add to or override it:
context/context.ts
There is one context repo per workspace, so defineContext is a singleton.

From the CLI