home/roleplay/context-management

Context Management

GPTClaudeGemini··901 copies·updated 2026-07-14
context-management.prompt
## Purpose

Patterns for managing LLM context windows, including chunking, retrieval-augmented generation, and context pruning.

## Implementation Patterns

### Pattern 1: Chunking + Retrieval
Chunk large documents and retrieve only relevant chunks for the prompt.

### Pattern 2: Context Pruning
Prioritize recent and high-salience context; prune low-value items.

## Examples

when to use it

Community prompt sourced from the open-source GitHub repo ameedanxari/ai-prompt-library (MIT). A "Context Management" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

roleplaycommunitygeneral

source

ameedanxari/ai-prompt-library · MIT