Why My AI Coding Was Costing a Fortune and How I Slashed Costs by 14x with R1+Sonnet in Cursor
June 19, 2025Why My Cursor IDE Settings Disappeared and How I Kept Them Safe
June 19, 2025As an AI developer, I use Cursor IDE daily for coding and research. But I recently hit a snag: I couldn’t add local PDFs to my workflow. You know, things like research papers or SDK docs. I really needed quick access to reference them during projects. The @Docs feature just didn’t support PDFs. After some experimenting, though, I found workarounds that kept me moving forward.
Why I Couldn’t Add Local PDFs
Here’s what happened: I tried adding PDFs through @Docs to reference them while coding. Even after putting files in my project folder and tagging them with ‘@’, Cursor couldn’t read the content. No text extraction, no parsing. This blocked me from using PDFs for RAG setups or quick checks. My workflow was stalling every time I needed documentation.
My Practical Solutions
Since official support isn’t here yet, I tested alternatives. These approaches actually worked:
- The ‘@’ Mention Hack: Add your PDF to the project directory, then reference it with ‘@’ in chat. Cursor won’t read the content, but you can quickly open it manually when needed.
- Third-Party Tools to the Rescue: For actual PDF processing, I used Unstructured-IO and LlamaParse. Unstructured-IO handles preprocessing well, but LlamaParse became my favorite—it optimizes files beautifully for RAG systems. Just run your PDFs through either tool first, then import the cleaned-up results into Cursor.
Lessons and Next Steps
Here’s what helped: I upvoted the PDF feature request in Cursor’s feedback channels. Good news—I’ve heard whispers about beta support coming soon! I’ve already signed up for nightly builds to test it early. If you’re facing this issue too, try these fixes now and watch for updates. They might just save your coding sessions like they did mine.