Context Window Management
Prevents context loss during long sessions by creating a checkpoint summary before compacting, so important decisions survive the trim.
I'm starting a new task in a long session. Before we proceed:
1. Summarize the key changes we've made so far in this session
2. List any files that are currently modified but uncommitted
3. Note any decisions or constraints we established
Then use /compact to trim context. After compacting, I'll describe the next task.
The new task is: {{next_task}}Variables to customize
Why this prompt works
Prevents context loss during long sessions by creating a checkpoint summary before compacting, so important decisions survive the trim.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Get thorough code reviews with actionable feedback tailored to your language, framework, and standards.
Context-Aware Code CompletionProviding the surrounding code and project context lets the model match existing patterns exactly. The constraint against modifying existing code prevents unwanted side effects.
Inline Code SuggestionConstraining suggestions to match existing style and scope produces insertions that feel native to the codebase. The 'no explanation' rule mimics real inline completion behavior.
Code ExplanationThe audience level parameter adjusts complexity automatically. Requiring a usage example ensures the explanation is practical, not just theoretical.