Here's the Master Trick to work with Cursor and Windsurf. It will...

@cjzafir
CJ Zafir@cjzafir
49 views Jan 25, 2025 ~2 min read
Advertisement
1
Here's the Master Trick to work with Cursor and Windsurf.

It will remove 80% of AI hallucinations and 60% less code errors.

You need to create a 'Documentation" folder in the root directory.

Then you need to attach all your project docs to that folder

Let me explain....
Media image
2
Models like GPT4o and Claude Sonnet 3.5 are "implementation" models.

They can follow the the instructions and go from point A to point B.

But they are nott good enough to reason, think and map out the next steps.

That's why when we don't give proper context about our project, the models start to hallucinate and mess up the codebase.
3
To rectify, hallucinations, assumptions and bad layout of code.

We need to build context boundary around these models.

The project documents will create that boundary of context.

PRD Doc = It explains what the project is all about, and it concisely describe tech stack, app flow, layout etc.

and same for all other docs. Each document provide in depth information to coding LLM models.
Media image
4
I use o1 model to create all project documentation as o1 is a reasoning model and it follows the instructions better.

usually it takes 7-8 hours of work to get the project documentation done.

But issue is that's alot of time, and o1 just gives 50 messages per week in ChatGPT and paying $200 for o1 pro is not viable for everyone.
5
so to solve this documentation pain. I built CodeGuide.

It will write you all necessary docs with best structure.

(o1 models do add some fluff scetions in the documents just to fill the space and that ruins the accuracy)

So clear prompting is the key. I added 37 prompts to get a set of 8 docs done per project. and it works great.
Media image
6
Codeguide launched yesterday and I'm glad with the response I got.

We are now an army of 150 hustlers in CodeGuide.

I am working on alot of things for you guys:
- video tutorials.
- boilerplates
- prompt templates
- community of AI coders
- discounts from AI coding tools

You'll love the evolution of CodeGuide. ✨
Media image
7
If you haven't join yet. Go to codeguide.dev and sign up now.

I have a 30% discount on the yearly plan. it is $16/month if you do the math.

I'm using 01-preview, GPT4o and Sonnet 3.5 models API in a mix to get all the docs done for you.

This is just the start. 🙌
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • LinkedIn & Instagram Carousel Maker
Create Free Account

Includes 7-day Premium trial

Advertisement