# Rules for ultra context, memories, lessons, scratchpad with plan and act modes

**URL:** <https://forum.cursor.com/t/rules-for-ultra-context-memories-lessons-scratchpad-with-plan-and-act-modes/48792>\
**Category:** Built for Cursor\
**Created:** [February 7, 2025, 12:21pm UTC](https://forum.cursor.com/t/rules-for-ultra-context-memories-lessons-scratchpad-with-plan-and-act-modes/48792 "2025-02-07T12:21:13Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![T1nker-1220](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/t1nker-1220/32/21166_2.png) [@T1nker-1220](https://forum.cursor.com/u/T1nker-1220)\
**Post date:** [February 9, 2025, 5:21am UTC](https://forum.cursor.com/t/rules-for-ultra-context-memories-lessons-scratchpad-with-plan-and-act-modes/48792/22 "2025-02-09T05:21:02Z")

</div>

# Comprehensive Guide to AI Context Rules System

## Introduction

This guide provides a detailed explanation of the AI Context Rules System, designed to enhance your development workflow in Cursor. The system combines memory management, lessons tracking, and a dual-mode operation system to ensure consistent and reliable AI interactions.

### First, you need to create a complete project requirement, and it has a roadmap on it like it has a phase and this is up to you for what format do you want the as long as it has a phase.

Example:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/9/89b14fe73dabd84fcc3304b157b7bb67255b4985.png)

### Then after that you need to prompt a plan the keyword is “plan” to automatically edit/update the scratchpad file and put your requests into a planned setup.

Example:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/1/2/12b9a730e17df32a1d46398aa4799f450f3b71bf.png)

### Then it will automatically fetch the 2 mdc rules and it will start to edit the scratchpad

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/0/508a7585351437b192482c209409dac6528e6883.png)  
as you can see it will edit as soon as possible when you query it  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/f/a/fa17088699afe3a4bc17e309ade883c3c6879683.png)  
 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/0/8011b169ddf487ec6eef678a0cc52bcc367ff75f.png)

This is the structure on the scratchpad after you edit it

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/b/3/b35957df585c1312990e95c7d8db9e36babb1966.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/2/d2fe1c664eee98ab73d5fcc60571ae54c41ff7c0.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/2/d/2d4510ff7650f0b3976838101c810953d23dc43e.png)

It looks amazing right?

### Then after that you can use a keyword, mine is [mems] for triggering the memory manually this is for non-development or for important details because I don’t want to make my memory to full immediately, and the automatic will trigger if it’s implementations or development mode only (you can adjust this for you preference).

Examples:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/3/4/34d0eb449be0464d6139ee0482483fb6ab9c84c0.png)

### The lesson learned you will trigger it manually and automatically, it will trigger automatically if there’s an important and reusable information that will help you in the future or if there’s a problem, issues, bug, fixing that is encounter it will automatically trigger that to update/add the lesson learned file. for manually update it you can just prompt it to update the and capture all of the important details.

Examples:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/2/c/2c0be8acd14c42cb712893950c8f95cf848f0afb.png)

This is the update for memories

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/0/3/0309409d0829a82c466b09268f04f8c6ecc95909.png)

## Tips & Tricks

### Add all of the files for rules and .cursor/\*.md files to context the rules and automatic fetching rules

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/9/b/9bf72b32c31f1dd5d10d2369bdc175a869bad0b9.png)

!!you will include all of the md files and mdc files on context window!!

### Handling AI Hallucinations and Cursor Issues

When experiencing issues with AI responses or Cursor functionality, follow these steps:

1. **Required Open Tabs:**
  - Active file you’re working on
  - Cursor Settings (Feature tab → Resync Index)
  - .cursorrules file

 ![Screenshot 2025-02-09 001540](https://us1.discourse-cdn.com/cursor1/original/3X/7/1/71ba0b1e657131a0b61b935518a0930736635093.png)

1. **Reload Process:**

```auto
1. Press Ctrl+Shift+P
2. Type "Developer: Reload Window"
3. Wait 3-10 seconds for complete reload

```

 ![Screenshot 2025-02-09 000758](https://us1.discourse-cdn.com/cursor1/original/3X/3/3/3304e3250bdc1ed71a73213a48ccb8dba44b5f48.png)

1. **When to Use:**
  - AI seems confused
  - Cursor not responding properly
  - Unexpected behavior
  - Need to refresh codebase indexing

### Best Practices

1. **Memory Management:**

2. **Mode System Usage:**

3. **Documentation:**

## Common Issues and Solutions

1. **AI Hallucination:**

2. **Cursor Unresponsive:**

3. **Context Loss:**

## Conclusion

This system provides a structured approach to AI-assisted development, ensuring consistency and reliability. By following these guidelines and using the provided tools effectively, you can maintain a more organized and efficient development workflow.

* * *

Note: This guide will be updated with actual images showing each component and process in detail. The current placeholders indicate where visual aids will be added to enhance understanding.

---

_[View the full topic](https://forum.cursor.com/t/rules-for-ultra-context-memories-lessons-scratchpad-with-plan-and-act-modes/48792)._
