Give Your AI a Map, Not a Code Dump

Claude confidently wrote import { db } from './database' for my project last week. That file doesn't exist. My database lives at @/lib/db, and I have 10 tables Claude didn't know about — because I ...

By · · 1 min read
Give Your AI a Map, Not a Code Dump

Source: DEV Community

Claude confidently wrote import { db } from './database' for my project last week. That file doesn't exist. My database lives at @/lib/db, and I have 10 tables Claude didn't know about — because I never told it. This is the problem nobody talks about with AI coding assistants. They can write algorithms, refactor code, generate tests — but they're working blind. They don't know your file structure, your import conventions, or which of your 10 database tables actually exist. So they guess. And you spend 20 minutes fixing what was supposed to save you time. The Context Problem This isn't about AI being dumb — it's about AI being blind. When you paste a snippet of code into Claude or Cursor, the AI sees text, not architecture. It doesn't know that @/lib/utils is the most imported module in your project, used in 12 different files. It doesn't know your routing patterns or your database schema. So it fills in the gaps with plausible-sounding guesses. Hallucinated imports. Non-existent file p