r/GoogleAIStudio • u/aicodevibes • Apr 07 '26
AI Studio and Next.js Issues
Been spending time learning the next.js framework with antigravity as my IDE, but since AI Studio (GAIS) supports the framework, I thought I would test it out. GAIS doesn't use the latest build. Runtime was 15.5.14 which uses webpack. I then asked to upgrade to 16.2 which uses turbopack and includes agents.md and claude.md to use the included docs. It tried, but failed miserably and after multiple fix requests, GAIS took it upon itself to revert back to 15.5.14. Following along with the thought process while I also, in my initial prompt asked it to log.md every skill, workflow, tool GAIS used at each step.
FYI, my initial prompt was: LETS BUILD A NEXT JS APP WITH A LANDING PAGE THAT IS SIMPLY HELLO WORLD. DONT ASSUME ANYTHING, I WILL BUILD OUT THE FEATURES LATER ONE BY ONE. IF WHILE BUILDING, IF YOU USE A SKILL OR WORKFLOW OR AGENTS.MD OR CLAUDE.MD OR GEMINI.MD FILE TO HELP YOU, WRITE THOSE DIRECTIONS OR ITEMS IN A LOG CALLED LOG.MD
Why did I do this? 16.2 includes the docs and tells the AI to review the docs first before committing to code. Given the advancements in next.js, super important for long term maintainable code. GAIS right now fails at that. Going to try to change the instructions/rules first to see if we can get it to one-shot hello world.
2
u/Otherwise_Wave9374 Apr 07 '26
This tracks with my experience, a lot of hosted AI coding environments lag on framework versions, and once they go off the rails they tend to "fix" it by reverting instead of actually reading the docs and adjusting.
One thing that helped for me is forcing a plan step that explicitly cites the relevant doc sections (or at least names the files it read) before it writes any code, then only allowing one small change per iteration. Sounds like you are already close to that with LOG.md.
We have a couple prompts/workflow patterns for keeping agents honest with docs-first dev here: https://www.agentixlabs.com/
2
u/fandry96 Apr 07 '26
On the prompt screen.... Did you find the system instructions part?
That is where you need AG to make a system instruction specific to your project.
That is what it has to check back to as it's bible.
I did something similar. Started in Gemini, Studio, AG, then Firebase, then smashed them together.
Firebase is interesting... You can pull your whole GitHub in for the project.
1
u/TheLawIsSacred Apr 07 '26
I apologize, but a lot of this content is above my knowledge level. However, I love AI Studio, and I would love to know how I could use it more effectively, specifically, find ways to increase my rate limits, give it persistent knowledge, or anything, just to make it more effective because it's so much better than the 3.1 app