Back to Handbook

Technique · Advanced

Context Engineering

The Core Engine

Managing the AI's 'Working Memory' to ensure it builds exactly what you want.

01

The Context Window

The AI's memory is finite. Context Engineering is the discipline of managing this scarce resource.

Working context
→
Clear summary

02

The .cursorrules Framework

This is a special file that acts as a 'System Prompt'. It tells the AI the rules before it starts coding.

  • Tech Stack: Explicitly tell it 'We use Next.js and Tailwind'.
  • Behavior: 'Never leave incomplete code comments'.
  • Docs: Provide links to documentation so the AI can learn new things.