Knowledge lets you provide persistent instructions and context to the Lovable agent. Instead of repeating the same explanations in every conversation, you can define them once and Lovable will consider them when generating edits. Knowledge is defined at two levels:Documentation Index
Fetch the complete documentation index at: https://docs.lovable.dev/llms.txt
Use this file to discover all available pages before exploring further.
- Workspace knowledge defines shared rules that apply across all projects in a workspace, such as coding standards, preferred libraries, or naming conventions.
- Project knowledge adds context that is specific to a single project, such as the application purpose, database schema, architecture decisions, or domain terminology.
Workspace knowledge
Workspace knowledge is a text field that lets you define shared rules once and apply them across all projects in your workspace. Project knowledge can then add context that is specific to a particular project. It is best used for rules and conventions that should be consistent across multiple projects. By defining these guidelines once, you avoid repeating the same instructions in every project’s knowledge field. Workspace knowledge is especially useful in team environments where multiple people are building projects. Workspace admins can define guardrails such as coding standards, testing requirements, or architectural rules so every project follows the same conventions automatically. Only workspace owners and admins can manage workspace knowledge. To manage workspace knowledge, go to either:- Settings → Knowledge
- Project settings → Knowledge
What to include
Workspace knowledge is best for:- Coding style conventions
- Naming conventions
- Preferred libraries or frameworks
- Shared architectural patterns
- Testing requirements
- Code quality or linting rules
- Language or formatting preferences
- Brand voice, UI copy, or design guidelines
- Things Lovable should avoid doing
Example
Important notes
- Changes apply immediately
If you update workspace knowledge during an active conversation, Lovable will use the updated instructions on follow-up messages. - One workspace knowledge per workspace
Each workspace has a single workspace knowledge shared across all projects. You cannot define different workspace-level instructions for subsets of projects inside the same workspace. - Workspace knowledge in long conversations
Workspace knowledge is always included together with project knowledge alongside project code and other context sources. However, in very long conversations with a lot of context, instructions may not always be followed consistently.
Project knowledge
Project knowledge is a text field that stores persistent instructions and context for a single project. Use it to provide information that applies only to that specific project, such as the application purpose, architecture, or domain terminology. Anyone with permission to edit the project can update project knowledge. To manage project knowledge, go to Project settings → Knowledge. Project knowledge supports up to 10,000 characters.What to include
Good project knowledge usually includes:- What the application does
- User personas or target audiences
- Database schema or key tables
- Architecture decisions
- Domain terminology
- Project specific constraints
- Design guidelines (colors, typography, or layout)
- Links to important references such as API documentation or internal tools
- Security or compliance requirements
Example
Best practices
Define shared rules at the workspace level
Define shared rules at the workspace level
Be specific
Be specific
Write it like onboarding documentation
Write it like onboarding documentation
Keep instructions concise
Keep instructions concise
Review knowledge periodically
Review knowledge periodically
FAQ
What is the character limit for knowledge?
What is the character limit for knowledge?
Can I have multiple sets of workspace knowledge instructions?
Can I have multiple sets of workspace knowledge instructions?
Can I add instruction files in the project's repository?
Can I add instruction files in the project's repository?
AGENTS.md or CLAUDE.md can also provide guidance to the Lovable agent.For technical users managing instruction files directly in their repositories, root-level AGENTS.md files are always read by the Lovable agent regardless of session length.Which context sources does Lovable read?
Which context sources does Lovable read?
AGENTS.md or CLAUDE.md.What happens if project and workspace knowledge conflict?
What happens if project and workspace knowledge conflict?