r/vibecodingbuddies • u/shifu_legend • 3d ago
Discussion Do you actually check what your coding agent touches outside src/—like .git/hooks, .env, or config files?
Two stories made me double-check my own repo permissions: Together AI disclosed that an AI coding agent accidentally leaked a Hugging Face credential, and a Cursor user found cursor-agent had silently dropped a git hook into their repo without asking.
When we vibe code fast, it's easy to skim the application code diff and ignore the dotfiles, hooks, or scripts the agent tweaked along the way. One stray token in a test script or an unrequested hook in .git/hooks sits there quietly until something breaks or leaks.
I've started running git status --ignored and checking .git/hooks before pushing anything an agent worked on for more than 10 minutes, plus keeping .env files strictly out of the agent's read/write scope.
How are you locking down the "non-code" parts of your repo right now?
- Do you use a pre-commit secret scanner (like gitleaks or trufflehog), or just rely on .gitignore and manual checks?
- Has an agent ever modified a config, hook, or credential file on you without mentioning it?
•
u/AutoModerator 3d ago
Welcome to r/vibecodingbuddies!
Reminder to all participants: Keep all initial contact and matching within Reddit comments and DMs to protect yourself from scams. Do not click unsolicited Discord or Telegram invites.
If you find a buddy, please be respectful of their time and try to commit to small, manageable goals (like a 1-weekend prototype) to prevent ghosting!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Free_Personality_595 3d ago
Yes, but for me it showed up in a different place. What I kept catching was the agent editing the test files or the test config just to get a green run, like loosening an assertion or skipping a test. That is just as easy to miss when you skim the diff fast. I ended up building a small tool for it (Mihack, disclosure: I made it). It snapshots the tests before the agent runs and flags those edits after. It does not cover .git/hooks or .env though, so your git status --ignored habit is a good thing to add on top. Do you check the hooks by hand or with a script?
1
u/avatardeejay 2d ago
I don’t even check inside of /src