cd /news/developer-tools/git-for-vibe-coding-and-agentic-engi… · home topics developer-tools article
[ARTICLE · art-67155] src=pub.towardsai.net ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Git for Vibe Coding and Agentic Engineering

A guide to git for users of AI coding agents warns that agents such as Claude Code and Cursor may request dangerous commands, citing a Cursor user report that the agent attempted to run `rm -rf ~ && ls -la`, which would cause data loss outside the project workspace.

read1 min views1 publishedJul 21, 2026
Git for Vibe Coding and Agentic Engineering
Image: Pub (auto-discovered)

Member-only story

Git for Vibe Coding and Agentic Engineering

A plain language guide to git, written for people who spend more time reviewing AI agents than writing code by hand. #

At some point, Claude Code, Codex, or Antigravity is going to stop mid-task. It will ask permission to run something like:

git add src/routes/checkout.ts; git commit -m "fix: handle null cart on checkout" 2>&1; git push 2>&1

That’s three commands chained together.

They might seem overwhelming to the untrained eye, but none of them look especially unusual on their own.

You will likely approve it.

That is usually the right call. Honestly, denying it without knowing why will not be helpful either.

Most of the time, nothing bad happens.

Then one day the agent asks about a different command.

It looks just as harmless as the last ten.

But approving it would be detrimental to your project, or even your entire system. For instance:

  • A Cursor user reportedthat the coding agent attempted to run a recursive deletion commandrm -rf ~ && ls -la

that causes data loss outside the project workspace.

── more in #developer-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/git-for-vibe-coding-…] indexed:0 read:1min 2026-07-21 ·