Feature isolation and boundaries
There's no magic. The agent doesn't hold the whole project in its head — it works through the context window (Week 1) and pulls files in as needed:
That's it. It reads what looks relevant, not everything.
1. It can duplicate code it hasn't read. If the project already has a formatDate() helper and the agent never opened that file, it will happily write a second one. This isn't stupidity — it literally doesn't know. The fix is yours: point it to what exists.
2. Precise direction beats broad requests. "Add date formatting to the profile page" makes the agent guess where things live. "Add date formatting to the profile page — use the existing helper in src/utils/date.ts, the page component is src/pages/Profile.tsx" removes the guessing. The more of the map you give it, the less it improvises.
Before asking for any change, make the agent build its map — and check it against reality:
Then verify one claim yourself — open one of the files it names and check. Week 1's rule applies: confident ≠ correct.

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.