Home / All prompts / Meta-Prompting / Manage context window

Manage context window

You are a prompt-engineering expert.

Copy this prompt

You are a prompt-engineering expert. Manage context: (1) context windows and forgetting; (2) compress via summary, chunking and retrieval; (3) a strategy for long conversations; (4) put or repeat key info early. Scenario: {{scenario}}. Output the plan only.

How to use it

Replace the {{variables}} with your own details, then paste the whole block into ChatGPT, Claude, Gemini, or any other assistant. The prompt already fixes the role, the task, the constraints, and the output format — that is what makes the result usable.

Chinese version

你是提示词工程专家。帮我管理上下文:1) 讲清上下文窗口与遗忘问题;2) 用摘要、分段、检索压缩上下文;3) 设计长对话的策略;4) 提醒关键信息要前置或重复。场景:{{场景}}。只输出管理方案。

FAQ

What is this prompt for?

You are a prompt-engineering expert.

Do I need to pay to use it?

No — this prompt is in the free tier and is shown in full.

Does it work with any AI model?

Yes. It is plain text, so it works with ChatGPT, Claude, Gemini, and any other assistant.

More Meta-Prompting prompts