Feature isolation and boundaries
Three habits turn agent work from risky to safe on a real codebase. All three work the same in Desktop, VS Code, and the terminal.
Never let the agent work on main in a shared project. Before any change:
Via the agent: "Create a branch feature/profile-date-format and switch to it." Read the command it proposes before approving.
Via the terminal:
git switch -c feature/profile-date-format
A branch means your experiment can't hurt anyone, and everything you do becomes one reviewable unit.
https://www.youtube.com/watch?v=xJQuF02NAK8&list=PLmWCw1CzcFilebjK89WLb5cAvM8K0cLB3&index=6
Claude Code has a mode built exactly for this week: plan mode. In it, the agent reads files and proposes a plan — but makes no edits until you approve.
For a beginner in someone else's codebase, plan mode is the seatbelt: you see what the agent intends to touch before it touches anything.


Ask for changes in small units, and read the diff after each one — in VS Code's Source Control panel, or ask the agent: "show me the diff of what you just changed."
A 30-line diff you understand beats a 400-line diff you skim. If a diff surprises you — files you didn't expect, changes you didn't ask for — stop and ask the agent to explain or revert. Respect the project's existing conventions: if the codebase does things a certain way, your change should look like it was written by the same team.

2 files, ~15 lines — a diff you can hold in your head
The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

Built with ❤️ by the HackYourFuture community · Thank you, contributors
Found a mistake or have a suggestion? Let us know in the feedback form.