Kevin Kern Profile picture
Feb 6 13 tweets 5 min read Read on X
Understanding new .cursor/rules in 0.45

I've seen so many people struggling with .cursorrules and with the new .cursor/rules directory.

Here is a Guide for you! 🧵 Image
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. Image
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 rulesImage
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.Image
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.Image
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​.

6/ With a recent update (0.45), CursorRules got an upgrade, making this kind of separation possible.

- Create a folder .cursor/rules
- Add rules for specific files in it Image
7/ .cursor/rules directory

As projects get more complex, you might want specific rules for, say, .ts files, .js files, .md files, or even entire subfolders.

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. Image
9/ A simple example .cursorrules file
(Just that you get the idea) Image
10/ You can do to file referencing with the @ symbol Image
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!

instructa.ai/en/courses/cur…

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Kevin Kern

Kevin Kern Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @kregenrek

Jan 22
How to use cursor with deepseek r1

Thread 🧵 Image
1/ Go to platform . deepseek . com
2/ Load Credits and get API Key

U need some credits to use the API.

- Go to "Top up" and add some balance
- Go to API Keys -> Create new API Key
Read 10 tweets
Jan 14
I’ve put together a list of AI Agent tools & frameworks.

Let me know if you know more.

Thread: 🧵 Image
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 Image
2/ CrewAI is one of the most popular AI tools, well known for multi-agent collaboration.

🐍 Python Image
Read 16 tweets
Jan 12
Introducing Codefetch for Developers

Turn code into Markdown for LLMs with one simple terminal command.

Use it in bolt .new, cursor and many more AI coding tools.

→ Chat with your codebase
→ Save tokens
→ Fix heavy bugs with GPT o1 & o1 pro

🧵 Click to see it in action Image
1/ Fetch your codebase in bolt. new with one command
2/ Chat with your bolt .new codebase in any LLM

Copy paste your codebase into ChatGPT, Deepseek, Gemini or Claude and start a multi-round discussion.
Read 8 tweets
Jan 1
I asked Gemini Advanced Pro (20$/m): "what's the best way to organise AI agents?"

See the results below.

🧵 Thread Image
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!Image
Read 6 tweets
Dec 22, 2024
How to get reliable coding results with AI. Every time.

Examples for bolt, cursor, windsurf and vscode inside.

Thread: 🧵 Image
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

...
"""
Read 15 tweets
Dec 16, 2024
Supabase has been widely mentioned with tools like , v0, cursor, and windsurf.

Here is everything you need to know 🧵 bolt.newImage
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 Image
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.
Read 14 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(