Context Prioritization Framework
Forcing a relevance-cost-density ranking for each source produces principled inclusion decisions rather than arbitrary context stuffing.
I have the following context sources available for an AI task:\n\n{{context_sources_list}}\n\nThe task is: {{task_description}}\nThe context window limit is: {{token_limit}} tokens\n\nRank each context source by:\n1. Relevance to the task (High/Medium/Low)\n2. Estimated token cost\n3. Information density (unique info per token)\n\nThen recommend which sources to include, in what order, and what to cut if the total exceeds the budget. Explain the trade-offs of each cut.
Variables to customize
Why this prompt works
Forcing a relevance-cost-density ranking for each source produces principled inclusion decisions rather than arbitrary context stuffing.
Save this prompt to your library
Organize, version, and access your best prompts across ChatGPT, Claude, and Cursor.
Related prompts
Forcing the agent to plan before acting prevents premature execution and wasted steps. Explicit dependency mapping enables parallel execution and catches logical gaps early.
Tool Selection AgentThe ReAct pattern (Reason + Act) creates an explicit reasoning trace that improves tool selection accuracy. The error-handling rule prevents infinite retry loops.
Prompt CompressorExplicitly requiring all functional requirements to be preserved prevents the model from over-compressing and losing critical instructions.
Memory Management AgentExplicit memory read/write instructions create agents that improve over time. Categorization keeps memories organized, and the deduplication rule prevents context bloat.