Context Pressure Check
memory-context-pressureAssess context window pressure during long AI sessions and get an ordered action plan to save memories, write a handoff, or compact before performance degrades.
Instructions
Self-assess context window pressure and get an action plan. Call periodically during long sessions — especially after big tool outputs, many file reads, or when responses feel sluggish. Levels: ok, warm, hot, critical. Also call with phaseBoundary=true at natural phase boundaries (task complete, pivoting focus, finishing a subsystem) — pivots thrash the cache anyway, so that is the RIGHT moment to compact. Returns an ordered actionPlan telling you exactly what to do (save memories, write handoff, compact).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"level": "<level>"
},
"name": "memory-context-pressure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | Your honest assessment of current context pressure. | |
| reason | No | What triggered this check (e.g. "long file reads", "extended session", "near token limit", "phase complete"). | |
| phaseBoundary | No | True when a task/phase just finished or you are about to pivot focus. Forces the action plan toward a proactive compact, even at ok/warm levels. |