{"slug": "git-for-vibe-coding-and-agentic-engineering", "title": "Git for Vibe Coding and Agentic Engineering", "summary": "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.", "body_md": "Member-only story\n\n**Git for Vibe Coding and Agentic Engineering**\n\n## A plain language guide to git, written for people who spend more time reviewing AI agents than writing code by hand.\n\nAt some point, Claude Code, Codex, or Antigravity is going to stop mid-task. It will ask permission to run something like:\n\n```\ngit add src/routes/checkout.ts; git commit -m \"fix: handle null cart on checkout\" 2>&1; git push 2>&1\n```\n\nThat’s three commands chained together.\n\nThey might seem overwhelming to the untrained eye, but none of them look especially unusual on their own.\n\nYou will likely approve it.\n\nThat is usually the right call. Honestly, denying it without knowing why will not be helpful either.\n\nMost of the time, nothing bad happens.\n\nThen one day the agent asks about a different command.\n\nIt looks just as harmless as the last ten.\n\nBut approving it would be detrimental to your project, or even your entire system. For instance:\n\n- A Cursor user\n[reported](https://forum.cursor.com/t/cursor-ai-executes-destructive-command-rm-rf-during-development-session/129401?utm_source=chatgpt.com)that the coding agent attempted to run a recursive deletion command`rm -rf ~ && ls -la`\n\nthat causes data loss outside the project workspace.", "url": "https://wpnews.pro/news/git-for-vibe-coding-and-agentic-engineering", "canonical_source": "https://pub.towardsai.net/git-for-vibe-coding-and-agentic-engineering-43eff72fc0d7?source=rss----98111c9905da---4", "published_at": "2026-07-21 15:01:04+00:00", "updated_at": "2026-07-21 15:19:57.490747+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "ai-agents", "ai-safety"], "entities": ["Claude Code", "Cursor"], "alternates": {"html": "https://wpnews.pro/news/git-for-vibe-coding-and-agentic-engineering", "markdown": "https://wpnews.pro/news/git-for-vibe-coding-and-agentic-engineering.md", "text": "https://wpnews.pro/news/git-for-vibe-coding-and-agentic-engineering.txt", "jsonld": "https://wpnews.pro/news/git-for-vibe-coding-and-agentic-engineering.jsonld"}}