# Incredibly frustrated with seemingly non-relevant code changes

**URL:** <https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631>\
**Category:** Agent & Assistant\
**Created:** [February 2, 2025, 7:48pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631 "2025-02-02T19:48:52Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [February 2, 2025, 7:48pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/1 "2025-02-02T19:48:53Z")

</div>

I’m running in circles with Agent. I’ve deployed some amazing apps with this thing, but despite their reports of it getting better, I find the performance degrading.

I will have nearly every function ready for deployment, then make one change to something, for instance, the profile picture upload. And it will break 3 of the other COMPLETELY unrelated features. And I do really mean unrelated - not even in the same ballpark.

Agent goes absolutely rogue so often that I don’t even want to use it, at least Assistant tells you what its doing and why.

Anyone else?

---

<div class="post-metadata">

**Author:** ![robinbobinpopin](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/robinbobinpopin/32/104_2.png) [@robinbobinpopin](https://replit.discourse.group/u/robinbobinpopin)\
**Post date:** [February 3, 2025, 1:25am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/2 "2025-02-03T01:25:50Z")

</div>

Hey man! I noticed that you have posted a few posts sharing your negative experience - I feel you! I totally understand how you feel when you spent a lot of time and the agent is just not cooperating.

One suggestion is to walk away for a bit. Come back with a refreshed mind. I’ve spent hours banging my head on the same issue over and over but it turned out to be an easy fix.

Okay back to your original topic:

It sounds like you are only relying on agent’s rollback feature to keep the development history. I used to do the same thing but I find the best practice is to connect your Replit App to Github.

Once you built your app to be MVP, immediately push to Github as the main branch. Then you create a branch to add features to this. You can easily spin up another Replit project and sync that side branch with Replit and have the agent adding features to it. This way no matter how the agent messed up your code, you can always revert back to the state you are happy with and restart from there. it’s much easier and less costly than having a super long chat going.

Huge kudos to @kody for showing me how to do this lol

Hope this helps you man! Don’t be discouraged! You totally got this!

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [February 3, 2025, 1:52am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/3 "2025-02-03T01:52:08Z")

</div>

I’m using Git - but the commits and descriptions leave a lot to be desired, and I’ve had a helluva time getting git restores to make sense. The problem is agent affecting things far and wide, so it becomes a total ratsnest.

---

<div class="post-metadata">

**Author:** ![robinbobinpopin](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/robinbobinpopin/32/104_2.png) [@robinbobinpopin](https://replit.discourse.group/u/robinbobinpopin)\
**Post date:** [February 3, 2025, 2:03am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/4 "2025-02-03T02:03:53Z")

</div>

Do you use Branch?

I agree with you that the git commit comments from Agent is not the best. If you follow a good workflow, you should be able to have a pretty clean development experience.

Check out this: [Tips on Rollback and Version Control](https://replit.discourse.group/t/tips-on-rollback-and-version-control/2666)

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [February 3, 2025, 11:52pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/6 "2025-02-03T23:52:07Z")

</div>

Boy that escalated quickly lol

---

<div class="post-metadata">

**Author:** ![robinbobinpopin](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/robinbobinpopin/32/104_2.png) [@robinbobinpopin](https://replit.discourse.group/u/robinbobinpopin)\
**Post date:** [February 4, 2025, 3:01am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/7 "2025-02-04T03:01:01Z")

</div>

Hey man! Sounds like you are really passionate about your project!

From your words I can tell the reason the agent “hurt” you so much is because you care about this project A LOT! Congrats on finding a problem that you are so passionate about and willing to endure the pain.

I don’t have any specific advice for you. Just want to remind you to take a break and walk away. Go get some fresh air and some sleep before circling back to the project.

I shared this in another thread: So think about this as an opportunity: adversity is the best way to weed out your competition! If you have the tenacity to push through the challenge and launch your app, you have the speed to market.

You are also in that thread: [Agent has messed up your entire code that seems to be working just fine until you decided to make one change? Do you feel this way? - #6 by robinbobinpopin](https://replit.discourse.group/t/agent-has-messed-up-your-entire-code-that-seems-to-be-working-just-fine-until-you-decided-to-make-one-change-do-you-feel-this-way/2775/6)

Hope this helps you

---

<div class="post-metadata">

**Author:** ![robinbobinpopin](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/robinbobinpopin/32/104_2.png) [@robinbobinpopin](https://replit.discourse.group/u/robinbobinpopin)\
**Post date:** [February 4, 2025, 1:56pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/9 "2025-02-04T13:56:20Z")

</div>

Good to hear you are thriving! And you can always lean on community for support - whether technical or emotional. Cheers!

---

<div class="post-metadata">

**Author:** ![jgarrish](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@jgarrish](https://replit.discourse.group/u/jgarrish)\
**Post date:** [February 5, 2025, 5:32pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/10 "2025-02-05T17:32:31Z")

</div>

Happens to me all the time - sometimes I catch it, sometimes I dont. But when I do catch it, I am very puzzled why it made this extra change. I think it is inferring intent, and then just takes it on itself to make additional changes.

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [February 5, 2025, 5:59pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/11 "2025-02-05T17:59:51Z")

</div>

I have to provide EXPLICIT instructions to not touch any code, nor server settings or network configuration, that is not directly related to the task we are working on.

If I say that, it works fine. If I don’t, it makes a mess. Every time.

I wish they would build that in to the prompt, or have a check box.

---

<div class="post-metadata">

**Author:** ![robinbobinpopin](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/robinbobinpopin/32/104_2.png) [@robinbobinpopin](https://replit.discourse.group/u/robinbobinpopin)\
**Post date:** [February 5, 2025, 6:37pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/12 "2025-02-05T18:37:15Z")

</div>

Try this workflow:

> [@My Replit App Development Workflow for Non-Coders to Increase Success Rate](https://replit.discourse.group/t/my-replit-app-development-workflow-for-non-coders-to-increase-success-rate/3356):
>
> I have seen many posts recently about the frustration with agent. A very common complaint seemed to be the following: Agent is not great at building complex apps When Agent is adding new features, it breaks the old features. Then you find yourself stuck in an endless loop while slowly dying inside… If this describes you, this post is for you! As of early 2025, AI excels at creating simple functions but struggles with building complex applications in one go. Through trial and error, I’ve de…

---

<div class="post-metadata">

**Author:** ![CulturaFutura](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@CulturaFutura](https://replit.discourse.group/u/CulturaFutura)\
**Post date:** [February 5, 2025, 7:27pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/13 "2025-02-05T19:27:46Z")

</div>

Robin you really are a gem on these forums! Thank you for all your sincere and positive posts. If we were all like you we’d be an interplanetary species already 🤣 I will try to take a page out of your book.

---

<div class="post-metadata">

**Author:** ![robinbobinpopin](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/robinbobinpopin/32/104_2.png) [@robinbobinpopin](https://replit.discourse.group/u/robinbobinpopin)\
**Post date:** [February 6, 2025, 2:39pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/14 "2025-02-06T14:39:20Z")

</div>

You are too kind! That’s what a community is for!

---

<div class="post-metadata">

**Author:** ![heysamir](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/heysamir/32/255_2.png) [@heysamir](https://replit.discourse.group/u/heysamir)\
**Post date:** [February 9, 2025, 10:06am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/15 "2025-02-09T10:06:56Z")

</div>

One other thing I recommend is periodically having Agent “refactor” your codebase. Every so often I’ll run a maintenance task where I prompt something like “We’ve had errors and issues periodically for the past few projects. Can you review your codebase and look at ways to optimize, drive efficiency, reduce unnecessary code and make the app more resilient?”. This usually helps clean up any issues that might have come from hallucinations on other projects.

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [February 10, 2025, 11:11pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/16 "2025-02-10T23:11:46Z")

</div>

This completely hosed every project I tried it on. Way too vast of a prompt.

---

<div class="post-metadata">

**Author:** ![heysamir](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/heysamir/32/255_2.png) [@heysamir](https://replit.discourse.group/u/heysamir)\
**Post date:** [February 11, 2025, 11:59am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/17 "2025-02-11T11:59:22Z")

</div>

Interesting! Bummer that it didn’t work out. I think you can definitely specify it further. That was just a sample. I do things like remind it not to mess anything up and/or reduce functionality. But the point is that it can make itself more efficient

---

<div class="post-metadata">

**Author:** ![franklyncense](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/franklyncense/32/1005_2.png) [@franklyncense](https://replit.discourse.group/u/franklyncense)\
**Post date:** [February 11, 2025, 6:31pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/18 "2025-02-11T18:31:18Z")

</div>

“I do things like remind it not to mess anything up and/or reduce functionality”

How do you do this. It’s our like you write “don’t fk it up” in each prompt?

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [February 13, 2025, 12:53am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/19 "2025-02-13T00:53:46Z")

</div>

This is what I put in literally every single agent request (I made a key on my Stream Deck for it)

DO NOT TOUCH ANY CODE THAT IS NOT RELATED TO THIS NEW REQUESTED FEATURE. DO NOT TOUCH NETWORK SETTINGS. YOU ARE ONLY TO WORK ON THIS ONE REQUESTED FEATURE.

---

<div class="post-metadata">

**Author:** ![franklyncense](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/franklyncense/32/1005_2.png) [@franklyncense](https://replit.discourse.group/u/franklyncense)\
**Post date:** [February 13, 2025, 8:50am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/20 "2025-02-13T08:50:13Z")

</div>

Lmao 😂. Ok  
Will start using this strict warnings

---

<div class="post-metadata">

**Author:** ![franklyncense](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/franklyncense/32/1005_2.png) [@franklyncense](https://replit.discourse.group/u/franklyncense)\
**Post date:** [February 13, 2025, 8:52am UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/21 "2025-02-13T08:52:13Z")

</div>

How successful has this method been

---

<div class="post-metadata">

**Author:** ![realfunnyeric](https://yyz2.discourse-cdn.com/flex010/user_avatar/replit.discourse.group/realfunnyeric/32/2150_2.png) [@realfunnyeric](https://replit.discourse.group/u/realfunnyeric)\
**Post date:** [February 13, 2025, 3:10pm UTC](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631/22 "2025-02-13T15:10:48Z")

</div>

It honestly works well, but you have to enter it every time the agent has a question for you that you reply to.

[Next page](https://replit.discourse.group/t/incredibly-frustrated-with-seemingly-non-relevant-code-changes/2631.md?page=2)
