logoalt Hacker News

bigcloud1299yesterday at 7:44 PM3 repliesview on HN

I have never had a luck with using Gemini. I had a pretty good app create with CODEX. Due to the hype I thought let me give Gemini a try. I asked it find all way to improve security and architecture / design. sure enough it gave a me a list of components etc that didn’t match best patterns and practices. So I let it refactor the code.

It Fucked up the entire repot. It hard coded tenant ids and used ids, it completely destroyed my UI. Broke my entire grpahql integration. Set me back 2 weeks of work.

I do admit the browse version of Gemini chat does much better job at providing architecture and design guidance time to time.


Replies

sampullmanyesterday at 7:51 PM

Do you use AI agents on repos without version control?

bird0861today at 7:12 AM

I can't emphasize this enough, it doesn't matter how good a model is or what CLI I'm using, use git and chroot (at the least, container is easier though).

Always make the agent write a plan first and save it to something like plan.md, and tell it to update the list of finished tasks in status.md as it finishes each task from plan.md and to let you review the change before proceeding to next task.

ayewoyesterday at 7:55 PM

> Set me back 2 weeks of work.

How did this happen?

Did you let the agent loose without first creating its own git worktree?

show 2 replies