Tools
Lovable knowledge base: give Lovable a memory with project knowledge, source-of-truth docs and a task backlog
The Lovable knowledge base is two text fields, workspace knowledge and project knowledge, that Lovable reads on every message, each capped at 10,000 characters. Use project knowledge for a one-page brief and the rules Lovable must follow, keep longer source-of-truth docs and a task backlog as files in the project, and tell Lovable to read and update them after every task.
The Lovable knowledge base is the Knowledge feature: two plain text fields, workspace knowledge and project knowledge, that Lovable includes on every message. Lovable's knowledge documentation describes it in one line: "Knowledge lets you provide persistent instructions and context to the Lovable agent." Each field supports up to 10,000 characters, which is enough for rules and a brief but not for a full spec, so the practical setup is a short knowledge field that points to a small set of documents living inside the project.
Why does Lovable drift without a knowledge base?
An AI builder only knows what is in its context for the current message. Without persistent instructions, every new prompt is interpreted against the code as it stands, not against what you decided three days ago. Decisions that never made it into the code, like "volunteers can only see their own shifts" or "no dark mode in version one", get lost first.
Lovable's documentation is candid about the limit even with knowledge in place: "in very long conversations with a lot of context, instructions may not always be followed consistently." Knowledge reduces drift, it does not remove it. The rest of this page is about the operating habits that close the remaining gap.
What goes in Lovable project knowledge?
Project knowledge should read like the first page you would hand a contractor. Lovable's own guide, How to build a real product with Lovable, puts it well: "A good knowledge file reads like a one-page brief, not a wiki." For a PM, that page has four parts:
- What the product is and who it is for, in two or three sentences.
- The rules Lovable must never break, such as permissions, data it must not delete, and naming.
- Design guidance, meaning colours, type, tone and the patterns to avoid.
- Where the rest of the context lives, and an instruction to read it before every task.
Workspace knowledge is a separate, single field shared by every project in a workspace, and only owners and admins can edit it. Use it for conventions you want everywhere, like "sentence case for all buttons" or "never use placeholder text". When project and workspace knowledge conflict, Lovable's docs say project knowledge is generally prioritised.
Which source-of-truth docs should sit behind the knowledge field?
The 10,000-character cap is why the detail belongs in files. Lovable reads your project knowledge, workspace knowledge and project code before generating edits, so documents kept in a /docs folder in the project are within reach as long as knowledge tells Lovable to open them.
Take a concrete example: a volunteer shift scheduler for a community food bank, where coordinators post shifts and volunteers claim them from their phones. Four documents cover it:
| Document | What it answers | Example line for the food bank app |
|---|---|---|
| brief.md | What we are building, for whom, and what success means | "Coordinators fill every Saturday shift at least 48 hours ahead without a group chat." |
| flows.md | Every user journey, step by step | "Volunteer opens the link, sees open shifts this week, taps Claim, gets a confirmation." |
| design.md | The visual system and the patterns to use or avoid | "Large tap targets, one primary action per screen, no tables on mobile." |
| build-plan.md | The order features get built and what is out of scope | "Version one: shifts and claims. Not in version one: reminders, reporting." |
Keep each one short enough that you would actually reread it. A design spec of 40 bullet points gets ignored by people and by models alike.
How do tasks, rules and a changelog stay current?
Three working files turn the static documents into a system that keeps up with the build:
- tasks.md is the ordered backlog. Every change traces back to a line in it, and finished tasks get checked off rather than deleted.
- decisions.md records choices that are not obvious from the code: "claims are first come, first served; no waitlist", "store times in the food bank's local time zone".
- changelog.md logs what each task added, changed or fixed, so you can see when a regression came in.
The instruction that makes this work goes in project knowledge: before each task, read /docs and tasks.md; after each task, update tasks.md, decisions.md and changelog.md, then report what changed, how to test it, and what comes next. Asking Lovable to confirm which files it read is a cheap way to catch the moment it stops following the setup.
What is the one loop prompt that drives the build?
Once the backlog exists, most of the build is the same prompt, repeated: "Read tasks.md, do the next unchecked group of tasks, check them off, update the changelog, and tell me what to test and what is next." You test, you fix anything wrong with a narrow follow-up, and you run it again.
Larger or riskier groups of tasks go through Plan mode first. Lovable's Plan mode documentation notes that a Plan mode message costs one credit plus any research subagents, and that the working plan is saved to .lovable/plan.md, so a planned change leaves its own written trail next to your docs. If you want the end-to-end build sequence around this loop, from the first prompt to connecting a backend, how to build a prototype with Lovable walks through it.
Is a knowledge base overkill for a small Lovable project?
For a one-screen experiment you will throw away tomorrow, yes. Writing four documents for a landing page mock-up costs more than it saves. The setup starts paying off once a project has more than one user role, a database, or a second working session, because that is when forgotten decisions start producing bugs.
The honest limit is maintenance. Docs that are not updated become a second source of confusion, worse than none, because Lovable follows them confidently. If you are not willing to keep tasks.md and decisions.md current, keep only brief.md and a few rules in project knowledge and accept more drift.
How does this compare with CLAUDE.md or Cursor rules?
The idea is the same across tools: a persistent file of context and rules that the agent reads before acting. Lovable's documentation also states that instruction files such as AGENTS.md or CLAUDE.md can guide its agent, and that a root-level AGENTS.md is always read regardless of session length. If you work across tools, CLAUDE.md for product managers and context files for product specs cover the same pattern elsewhere, and writing a PRD for vibe coding covers how to write the brief that feeds all of it.
Where can you practise this on a real build?
Builders Camp's Building with Lovable bootcamp is a 2-week program with 3 live sessions, directed by Ricardo Luiz, in the Vibe Coding Expert Track. Its published topics include the PM Prompting Framework, Supabase integration, debugging and rollback strategies, and deployment and branding with custom domains, Knowledge Files and GitHub integration. Its practical challenge asks you to help a PM with no developer ship an internal tool in two weeks, including drafting a masterplan file and designing the recurring prompt that drives a task list. See the Building with Lovable bootcamp for dates and format.
Bootcamps referred in this Guide
Frequently asked questions
What is the Lovable knowledge base?
It is Lovable's Knowledge feature: plain text fields that give the Lovable agent persistent instructions. Workspace knowledge holds rules shared across every project in a workspace, and project knowledge holds context for one project, such as its purpose, users, data and design rules. Lovable includes both in context on every message.
How long can Lovable project knowledge be?
Lovable's documentation states that project knowledge and workspace knowledge each support up to 10,000 characters. That limit is the main reason to keep detailed specs in files inside the project and use the knowledge field for rules and pointers to those files.
What is the difference between workspace knowledge and project knowledge?
Workspace knowledge is one shared field per workspace, managed by owners and admins, for conventions every project should follow. Project knowledge is specific to one project and editable by anyone who can edit it. When the two conflict, Lovable's docs say project knowledge is generally prioritised because it is more specific.
Should I put my whole PRD into Lovable's knowledge field?
No. Put a one-page summary and the rules Lovable must always follow in the knowledge field, and keep the longer documents (flows, design spec, build plan, task list) as files in the project. Then tell Lovable in knowledge to read those files before each task and update them after.
Why does Lovable still forget things even with knowledge set up?
Lovable's own documentation warns that in very long conversations with a lot of context, instructions may not always be followed consistently. Keeping tasks small, starting a fresh chat for a new feature, and asking Lovable to confirm which docs it read are the practical fixes.
Can Lovable write the knowledge file for me?
Yes. Lovable's own guide suggests asking it to generate a knowledge file based on what you have built so far. Treat the draft as a starting point and cut it down: a short, specific file beats a long general one.
Do AGENTS.md or CLAUDE.md files work in Lovable?
Yes. Lovable's knowledge documentation states that instruction files such as AGENTS.md or CLAUDE.md can guide the agent, and that a root-level AGENTS.md is always read regardless of session length. That matters mostly for technical users who sync the project to GitHub.
Sources

Andre Albuquerque
CEO of Builders Camp, SuperOperator, and other companies. Building products.
CEO of Builders Camp, SuperOperator, and other companies. Building products.
LinkedInMore guides by Andre Albuquerque
Ricardo Luiz
He is an accomplished Product Director, bringing a wealth of experience in driving innovation, building high-performing teams, and fostering collaborative environments.
He is an accomplished Product Director, bringing a wealth of experience in driving innovation, building high-performing teams, and fostering collaborative environments.
LinkedInMore guides by Ricardo LuizLast updated 2026-09-27
Researched from Builders Camp's bootcamp, track and masterclass material and the sources listed on this page, drafted with AI, and fact-checked against every source cited.
Related guides
How to Build a Prototype with Lovable
A Lovable prototype starts with a structured prompt, not a feature list, and a masterplan.md file that keeps the AI...

Andre Albuquerque & Ricardo LuizHow to write a CLAUDE.md file as a product manager
Keep CLAUDE.md under 200 lines and fill it only with rules that are true in every session on this project, which for a...

Andre Albuquerque & Guilherme SalgueiroHow to use context files for product specs
A context file gives an agent the standing background a new team member would get in week one: what the product does...

Andre Albuquerque & Inês LourençoHow to write a PRD for vibe coding
A PRD for vibe coding exists to hold a scope ceiling, not to specify implementation: one user, one action, one screen...

Andre Albuquerque & Ricardo Luiz
