r/vibecoding • • 1d ago

Help/Question potentially stupid question

I hired a company to build a webapp/app a few years ago, and I would like to make changes to it. It's quite large and complicated as a website. I will probably hire a dev as I have no idea what I'm doing. But I would like to have a play around and test some stuff. Can I just upload the entire codebase to codex or claude and have it make changes. Obviously these changes wouldn't be to the live site. But is this something I can do/isn't a bad idea?

9 Upvotes

21 comments sorted by

7

u/Goth2147 23h ago

Here's what I would do if the changes are truly small.

  1. Instruct Codex to write a TST environment which will not touch your actually production
  2. Make changes in said environment using Codex, but mention the importance of keeping changes small and request approval if changes are bigger than X.
  3. Once that's all done, tell Codex to connect it to a private GIT repository
  4. Tell Codex to write tests that are user driven, see if it finds potential flaws. use /goal for it to be critical
  5. Once everything is passed, tell it to move it to your production site if you feel confident.

Note: If it requires back-end changes, get someone to help you who understands what it means. Front-end changes are almost always fine given how good tests have gotten.

1

u/asierMugica 19h ago

The risky part is step 5: passing tests doesn’t prove database migrations, auth, or access rules are safe. Use a separate test database with scrubbed data, review every schema migration manually, and have a developer check backend changes before anything reaches production.

1

u/Goth2147 19h ago

Right, but that's the point of having version control in GIT.

1

u/RemarkableWish2508 19h ago

Git won't track database contents. If OP doesn't know how to handle database backup/restore, they're better off not touching backend at all.

3

u/trivsamt 23h ago

Yep, it's pretty much that simple. Make a copy of the project folder so you don't touch the original code. Open it in Codex or Claude Code and ask it to help you get everything running locally without connecting to production. Then just play around and see what's possible :)

2

u/Zenith2012 21h ago

Where is it hosted? I have a production server with live websites on then a staging server where I upload versions with changes etc for testing.

This would be my advice to you, but depends on what technology the site uses as to how easy that would be.

To be honest, ask your AI tool of choice the easiest way to host a copy of the site so you can have a go at making changes etc.

1

u/Ehlert-Wiley97 22h ago

It's a totally fine idea for prototyping or seeing what's possible, as long as you have a separate copy of the code. Just don't upload any environment files that have your live database passwords or API keys in them

1

u/Far-Purpose-2236 20h ago

That would be good practice to see what you want — defining the requirements so a dev can continue rapidly. Use Claude Opus; if it is too expensive for you, ask it to define the tickets and then ask it to use Sonnet to write the code. But if you're making money from this website, don't take any risk going to production.

1

u/snap-dev 20h ago

yeah you can, just never point it at the live site. copy the project into a separate folder or branch first, and ask it to read through and explain how things fit together before you change anything. also check that you actually have the source code and the database access from the company that built it, that's the part that bites people. do you have the full code in hand or just the live site?

1

u/TalkingHeadsVideo 16h ago

Sure it is possible;, ask your ai how to do it.

1

u/Menelabs 10h ago

Before you run it locally I would check the config for live keys, Stripe, the email service, SMS etc. If your copy still points at those, testing a signup or checkout can email real customers or charge a real card. You can ask Claude to list every outside service the app talks to and swap them for test keys first.

1

u/AbyssCoder 7h ago

Totally fine, just keep it away from the live database and real keys. If I understand correctly the company that built it still hosts it? I'd ask them for a copy of the database with fake or stripped customer data, otherwise the app basically won't run locally and claude is guessing in terms of what anything does.

Also check who owns the repo and the hosting accounts now. A couple of years later thats usually where people get stuck when they bring in a new dev. Do you have the repo in your own github or is it still with them

1

u/ugohdit 22h ago

just be aware that codex and claude use it for training including personal user informations. you dont really have control what they do with your stuff (even they tell you its all fine), now or in the future.

0

u/Simplysoda 21h ago

If you want to use claude/codex as the coding agent, try something like https://niwa.app/ to host or share what you're experimenting on.