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 dir is synced on deploy:
Add a .md/.mdx file and it’s picked up automatically; edit one and it re-syncs.
The sync is additive — files added in the UI are left in place. Your code is the source of truth for the files it manages, not for the whole repo.

Inline files

Alongside (or instead of) a local dir, 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 dir, 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