Context Window Management

Developer Toolsclaude-code-tipsnext_task

Prevents context loss during long sessions by creating a checkpoint summary before compacting, so important decisions survive the trim.

Prompt
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

{{next_task}}

Why this prompt works

Prevents context loss during long sessions by creating a checkpoint summary before compacting, so important decisions survive the trim.

What you get when you save this prompt

Your workspace unlocks powerful tools to iterate and improve.

AI OPTIMIZE

AI Optimization

One-click improvement with structure analysis and pattern suggestions.

VERSION DIFF

Version History

Track every edit. Compare versions side-by-side with word-level diffs.

ORGANIZE
Development
Code Review
Testing
Marketing

Folders & Tags

Organize your library with nested folders, tags, and drag-and-drop.

MCP
$ npm i -g @promptingbox/mcp
Claude · Cursor · ChatGPT

Use Everywhere

Access prompts from Claude, Cursor, ChatGPT & more via MCP integration.

Your prompts, organized

Save, version, and access your best prompts across ChatGPT, Claude, Cursor, and more.