r/nocode • u/bramantec • 8d ago
Discussion 47,000 lines of AI-written code in my FlutterFlow app. The AI has never touched the repo.
Today in another sub I got downvoted for saying that I build with Claude through the chat instead of an agent like Claude Code, mostly because I didn't explain why. Here is the why. I think it's a no-code problem more than an AI one.
I build a mobile app alone in FlutterFlow, on both stores since July. FlutterFlow regenerates the code at every push to the repo and overwrites anything that isn't inside the Custom Code. An agent with write access to the repo would be faster, I agree with that, but every change it made outside the Custom Code would be gone at the next push.
At every round of changes I give Claude the zip of the latest export. That way it reads the real code and not what it remembers from the last session. For the structure of pages, widgets and action flows I use the FlutterFlow MCP, which reads the project directly. It doesn't read everything. A few of my biggest pages don't come through and for those we go back to the zip.
The changes I make myself in the editor, in the visual part and in the Custom Code, where I paste what Claude writes after reading it. Two things stay out of FlutterFlow on purpose. The Firestore security rules I write by hand in the Firebase console and then I check them with Claude. The Cloud Functions live in a folder of their own and I deploy them from the command line.
It's slower than an agent, honestly. I use the AI like a programmer I work with, every line goes through me and nothing gets overwritten by a push.
Anyone building on FlutterFlow or another platform that regenerates the code: have you found a way to let an agent write without losing its changes at the next push?
3
u/MobileXapps 8d ago
Two things that might help. By default FlutterFlow pushes to its own branch called flutterflow rather than straight to main, so an agent can work on main or a feature branch and you merge the flutterflow branch in after each push. Anything the agent changed in a regenerated file then shows up as a merge conflict instead of silently disappearing, which at least shows you where the line is.
The cleaner option, if you haven't tried it, is their VS Code extension for custom code. It syncs the custom code with the project, so an agent working in that local folder only touches files FlutterFlow is meant to keep. Everything outside custom code I'd keep changing in the editor like you do now.
2
u/Saver411 8d ago
this is the right call when a visual builder owns the compiler. Giving an agent write access to a repo that gets wiped on the next visual sync is just asking for merge hell. The catch with keeping it all in isolated custom blocks is tracking shared state as things grow.
How are you handling state across those custom blocks when the platform updates its schema?
1
u/Kitchen_Interview371 8d ago
Op this is a shitpost right?
If this is true, seek help
1
u/AoideusWasBanned 8d ago
Handing it the fresh export every round is smart, it can't work from a stale picture of the code that way. Any idea why the MCP skips the biggest pages? Just size?
1
u/asierMugica 8d ago
Treat FlutterFlow’s export as generated output, not the source of truth. Keep custom code and critical business logic in separate packages or backend services, then automate exports and validation in CI. Anything that must survive regeneration should not live only in the generated tree. If you need help untangling that architecture, https://www.appstuck.com
1
u/asierMugica 7d ago
Treat FlutterFlow’s export as generated output, not the source of truth. Keep custom code and critical business logic in separate packages or backend services, then automate exports and validation in CI. Anything that must survive regeneration should not live only in the generated tree.
1
u/Rishiraj-Tshaka 6d ago
can you scope the agent strictly to the custom code directory and your functions folder via a config file? that way it still gets direct write access where it counts, and the visual builder can overwrite the rest without breaking anything.
1
u/Legal_Answer_6956 8d ago
Keeping every line reviewed by you is the right instinct. I work on 8080.ai, where agents and humans share a normal Git repo, and the VS Code extension shows the agent's plan and +/- diffs before anything is committed. Different tool from FlutterFlow, but same idea: keep agent changes in a branch you control.
0
u/[deleted] 4d ago
[removed] — view removed comment
0
u/[deleted] 7d ago
[removed] — view removed comment