lightdash.project_context.yml, that sits next to lightdash.config.yml inside your dbt project directory. Notes you add here change future agent behavior without changing the semantic layer.
The file is committed to your dbt repo and travels with the rest of your project metadata.
When to use it
Reach for agent context when the data model itself is fine but the agent is missing background knowledge — terminology, which table to prefer, or business rules that aren’t expressible as dbt metadata. If the fact would also help a new analyst joining the team, edit the semantic layer instead. Agents pick up new context on their next turn, so the loop between “notice a gap” and “agents behave better” is short.How entries are added
There are two ways entries land in the file:- Through Issues writeback. When a project context fix runs, Lightdash proposes a single entry and opens a pull request against your dbt repo. The first time this happens the file is created (with a header explaining what it’s for). Subsequent fixes add or update entries in the same file.
- By hand. You can edit
lightdash.project_context.ymldirectly. Writeback uses the GitHub API to merge one entry at a time, preserving comments, quoting, and key order in the rest of the file, so manual edits and writeback coexist cleanly.
lightdash-project-context-1.0.json — point your editor at it for autocomplete and validation.
File shape
lightdash.project_context.yml
{ version, entries }. A bare array of entries is also accepted for backward compatibility, but new files are written in the canonical shape.
Top-level properties
Entry properties
Each item inentries is a single self-contained fact your agents should know.
Unknown keys on an entry are preserved on round-trip, so a field a newer Lightdash version adds won’t be silently dropped if you edit the file by hand.
Related
- Issues — the board that proposes project context fixes and opens pull requests against this file.
- Agent memory — the per-user counterpart: personal course corrections that never enter shared context.
- Effective analytics with agents — knowledge documents and other ways to hand agents context upfront.