Code Execution in Chat
GAAgentReleased Apr 2026EnterpriseSource: docs.lovable.dev
Part of the autonomous execution loop:Agent Mode
Code Execution in Chat is Lovable's Agent feature: Run code and analyze data without modifying your project.
On Enterprise plans, Lovable can analyze data, generate files, and execute code directly in chat without touching project source. Pair with File Generation to produce PDF/Excel/PPT artifacts on demand.
Code Execution in Chat runs inside Agent Mode — the loop that plans, edits, and verifies work end to end.
Example workflows
Starting points built from this record, not transcripts of a run. Each prompt is written the way it should be sent, as one paragraph, and each is worth editing before you send it.
Stand it up from scratch
You have read the record and want Code Execution in Chat working in a real project rather than a sandbox.
Set up Code Execution in Chat in this project — run code and analyze data without modifying your project. Walk it end to end, tell me exactly what you changed, and flag anything I have to switch on myself before it works.
Expected outcomeA working setup, a plain list of what changed, and a short list of anything left for you to switch on. Check that list before assuming it is done.
Ad-hoc data analysis on a sales CSV
The record lists this as one of the jobs Code Execution in Chat is meant for, so it is a fair first test of whether it fits your app.
In this project, use Code Execution in Chat for ad-hoc data analysis on a sales CSV. Build the smallest version that a real user could complete end to end, keep the change scoped to that path, and tell me how to test it myself.
Expected outcomeOne complete path a user can walk, the files and settings that changed, and the steps to test it. Walk it yourself before you ship it.
Review it before you publish
Code Execution in Chat is wired in and you are about to put it in front of people. This is the pass that catches the half-configured version.
Review how this project uses Code Execution in Chat before I publish. Check sandboxed code execution in-thread and analyze attached datasets, list anything that is missing, misconfigured, or only half wired, fix what is safe to fix, and tell me what you left alone and why.
Expected outcomeA findings list split into what was fixed and what was left, with a reason for each. Anything left alone is yours to decide on.
Produce a one-off report PDF for a client
A second job the record lists for Code Execution in Chat, useful once the first path works.
Extend this project so Code Execution in Chat also covers produce a one-off report PDF for a client. Reuse what is already wired rather than adding a parallel setup, and tell me what you reused and what is new.
Expected outcomeA second path built on the same setup, plus a note on what was shared and what was added.
Capabilities
- Sandboxed code execution in-thread
- Analyze attached datasets
- Generate downloadable PDF, Excel, PPT files
- No project source modification
Use cases
- Ad-hoc data analysis on a sales CSV
- Produce a one-off report PDF for a client
- Prototype a script without committing it
The link to lovable.dev uses a referral code. The atlas is otherwise unsponsored.
Frequently asked
What is Code Execution in Chat?
Code Execution in Chat is Lovable's Agent feature: Run code and analyze data without modifying your project. On Enterprise plans, Lovable can analyze data, generate files, and execute code directly in chat without touching project source.
Is Code Execution in Chat GA or in beta?
Code Execution in Chat is generally available (GA) on Lovable.
What Lovable plan includes Code Execution in Chat?
Code Execution in Chat is available on Lovable's Enterprise plan.
When did Code Execution in Chat launch?
Code Execution in Chat launched on Apr 24, 2026.
Related in Agent
See all →What Lovable Shipped
One email a week. Every new feature. Nothing else.
A curated Monday roundup of every Lovable feature added or promoted to GA in the past week — pulled straight from the atlas.
No spam. Unsubscribe anytime. Independent, not affiliated with Lovable AB.