How to Safely Use AI Coding Agents in a Real Codebase
AI coding agents are fast, but an unsupervised one can delete files, leak secrets, or push junk to main. Here are the practical guardrails I use to let agents run hard without wrecking the repo.
AI coding agents are fast, but an unsupervised one can delete files, leak secrets, or push junk to main. Here are the practical guardrails I use to let agents run hard without wrecking the repo.

If your AI coding agent keeps spinning up git worktrees and leaving your work somewhere that isn't main, here's what a worktree actually is, why agents love them, and how to stop fighting it.
Learn the key differences between git fetch and git pull, with clear explanations and examples to help you choose the right command for your workflow.

Learn the key differences between git merge and git rebase with practical examples. Understand pros, cons, and best practices to decide which one to use.
A quick, step-by-step guide to squash multiple commits into one using Git rebase—plus safe force-push tips and recovery tricks.

When your GitHub personal access token expires, it leaves you with an unauthenticated remote origin. In this post, I'll show you how to easily update your remote origin with your newly authenticated token.