How We Cut Our AI API Bill by 78% (And Let Cursor See Our Entire Codebase)
rust
dev.to
The Problem Nobody Talks About When you ask Cursor to "fix the login bug in my app," here's what actually happens: Your query gets embedded into a vector The embedding is compared to every file in your codebase (cosine similarity) The top 5-10 most similar files are stuffed into the context window Everything else is invisible Your AI has no idea about your database schema, your configuration, your test patterns, your middleware. It's working blind on 95% of your codebase.