I've seen so many people struggling with .cursorrules and with the new .cursor/rules directory.
Here is a Guide for you! 🧵
1/ Understand Cursorrules
A lot of my teammates, including myself, always forget to do certain things before leaving the office.
So, we set up our own rules and routines to make sure we do these things every time we leave.
This is basically how .cursorrules work.
2/ .cursorrules file
A rules file is like a guidebook for your AI coding helper. It tells the AI how to write code for your project, including what tools you're using and how everything is organized. This helps the AI create better and more accurate code.
- Create a file called ".cursorrules" in project root.
- Add your rules
3/ Now, let’s go back to our real-world office example. What if we had rules for the kitchen too? In that case, we wouldn’t write them on the same note as the office rules. Instead, we’d put them on a separate piece of paper and stick it to the kitchen door.
So, each space has its own rules.
4/ Before, we had to put all rules in a single .cursorrules file. Typescript, Database rules, UI everything in one place. But that wasn’t ideal. Sometimes, the Agent didn’t know which rules to apply, and you couldn’t be specific. Technically, it just filled up your context window with unnecessary information.
5/ This is how you add your "main" .cursorrules file.
Cursor reads this file first when the AI is working – it’s the first piece of context it loads.
8/ Now you need to reimagine your .cursorrules files too.
They still work like before, but when using them with an agentic approach, it’s different. Now, you're telling the agent how to act, not just listing rules.
9/ A simple example .cursorrules file
(Just that you get the idea)
10/ You can do to file referencing with the @ symbol
11/ Agent Mode
The best thing is that you can build your full autonomous agent with this approach. For this you need to enable the Agent Mode in Cursor and describe in your rule files what script or what document should be processed.
12/ Want to build and ship faster with Cursor AI?
Get instant access to my Ultimate Cursor Course – Early bird discount available (only in february)! 🚀
New update coming soon: Agent Mode, new cursorrules and example lessons!
I’ve put together a list of AI Agent tools & frameworks.
Let me know if you know more.
Thread: 🧵
1/ PydanticAI is a Python agent framework combining type safety with FastAPI-like features. Its model-agnostic design lets you easily switch between different LLMs.
🐍 Python
2/ CrewAI is one of the most popular AI tools, well known for multi-agent collaboration.
I asked Gemini Advanced Pro (20$/m): "what's the best way to organise AI agents?"
See the results below.
🧵 Thread
Unlike GPT-o1/pro:
+ It presents you with a plan before taking action.
+ Plus, you can adjust the plan before it runs.
- It takes a long time to generate the results. GPT is faster here. (I guess because of the web search)
A big advantage is that Gemini Deep Research can search the web. That means we get realtime results.
If you want to do this with GPT, you’d first need to perform a web search and manually feed the results into reasoning models.
But GPT gives you much fewer web results compared to Gemini!
How to get reliable coding results with AI. Every time.
Examples for bolt, cursor, windsurf and vscode inside.
Thread: 🧵
1/ Why?
A rules file is like a guidebook for your AI coding helper. It tells the AI how to write code for your project, including what tools you're using and how everything is organized. This helps the AI create better and more accurate code.
2/ Think of ChatGPT
Well its the the same as you form prompts in ChatGPT. You don't just say
"Rewrite this text".
You form a prompt like:
"""
you are proofreading and writing expert.
RULES:
- Do not use fluff words or High-level grammar and vocabulary.
- Don't write overly long sentences to keep the text easy to read.
- Use first-person perspective and a friendly, conversational tone
1/ Supabase fills the "Backend" gap for many, as AI generators already create strong frontends.
It’s made for developers:
- Ton of youtube tutorials
- Solid documentation (but not always 100% up to date)
- Loads of integrations
2/ Quickstart
- Sign up on supabase .com
- Create a new project to get your database link and keys.
- Use the built-in Supabase Studio to design your database.
- Add Supabase to your app to manage data and users.
- Host your app on platforms like Vercel or Netlify.