Skill Details
Runtime
(claude-5-opus)
Example user message
[userMessage]: My coding agent keeps sending the entire conversation history into every task, causing context overflow and high token usage. Design a context-memory strategy that preserves critical requirements, retrieves only relevant history, compresses low-value context, and maintains task state across a long-running workflow.
Example agent response
Use a tiered context strategy with explicit context budgeting:
Task Context → Candidate Memory Retrieval → Relevance Ranking → Priority Filtering → Compression → Context Assembly
Separate memory into active context, working memory, episodic memory, semantic memory, procedural memory, and external knowledge.
For each task, allocate the context budget across system instructions, current requirements, workflow state, retrieved memory, and external evidence. Do not inject the complete conversation by default.
Preserve decisions, constraints, dependencies, identifiers, and authoritative evidence. Compress repetitive history while retaining a reference to the original artifact.
Track task_id, workflow_state, completed_steps, pending_steps, decisions, and artifacts as structured state instead of reconstructing critical state from conversation history.
Evaluate the design using context-token usage, irrelevant-context rate, retrieval precision, task completion, latency, and answer quality.
By purchasing this skill, you agree to our terms of service
CLAUDE-5-OPUS
Optimize AI-agent context and memory with a structured control system for retrieval, prioritization, compression, retention, and state continuity. Define memory tiers, context budgets, relevance scoring, decay policies, conflict handling, provenance, session persistence, and intelligent context assembly. Reduce token waste and context noise while preserving critical information across long-running agent workflows. Produces practical policies, routing logic, schemas, and implementation guidance.
...more
Added 2 weeks ago
