context-cache-management
OfficialMake context compression safe and cache-friendly.
Software Engineering#token budgeting#tool execution#context compression#prompt caching#memory placement#provider capability#prompt prefix stability
Authorlinkerdog
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps prevent broken prompts and lost tool evidence when you change how RARA compresses context, projects tool results, budgets tokens, and handles provider-side prompt caching.
Core Features & Use Cases
- Stable prompt prefix preservation: Keeps the ordering of system guidance, tool schemas, stable skills and memory, compacted history carry-over, and volatile suffix context consistent.
- Correct tool pair handling: Ensures
tool_useandtool_resultblocks remain intact as a paired unit, avoiding partial or mismatched history edits. - Provider cache capability alignment: Applies compression strategies based on explicit cache capability profiles (automatic prefix cache, usage accounting, cache edit, and retention control), avoiding assumptions about OpenAI-compatible backends.
- Memory placement discipline: Places retrieved memory in a volatile suffix near the latest user request unless explicitly promoted into stable workspace memory.
Quick Start
Ask RARA to apply this skill while you adjust context compression or provider cache behavior for a specific model backend, ensuring the saved transcript remains unchanged except for explicit user-requested lifecycle compaction.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: context-cache-management Download link: https://github.com/linkerdog/rara/archive/main.zip#context-cache-management Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.