
Context Management
- 26 installs
- 4 repo stars
- Updated April 11, 2026
- 89jobrien/steve
context-management is a Claude Code skill that preserves, compresses, and distributes context across multi-agent workflows and long-running tasks.
About
context-management is a Claude Code skill for managing context across multi-agent workflows and long-running tasks. A developer uses it to capture key decisions, compress context for efficiency, prepare handoffs for the next agent, and create context checkpoints at milestones. It defines tiered context formats sized by token budget.
- Preserves and compresses context across multi-agent workflows and sessions
- Defines Quick (<500 token), Full (<2000 token), and Archived context formats
- Prepares handoff context for the next agent in a workflow
Context Management by the numbers
- 26 all-time installs (skills.sh)
- Ranked #9,702 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
context-management capabilities & compatibility
- Capabilities
- context management · orchestration · memory
- Use cases
- orchestration · memory · token optimization
- Pricing
- Free
What context-management says it does
This skill manages context across multi-agent workflows and long-running tasks, ensuring coherent state preservation and efficient context distribution.
npx skills add https://github.com/89jobrien/steve --skill context-managementAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 26 |
|---|---|
| repo stars | ★ 4 |
| Last updated | April 11, 2026 |
| Repository | 89jobrien/steve ↗ |
What it does
Use it to capture, compress, and hand off context across multi-agent workflows and long-running sessions.
Who is it for?
Coordinating multiple agents and preserving coherent state across sessions.
Skip if: Single-shot tasks with no cross-session or multi-agent state.
When should I use this skill?
When coordinating multiple agents, preserving context across sessions, or managing complex project state.
What you get
Compressed, indexed context handed cleanly to the right agent at each milestone.
- context checkpoints
- compressed context summaries
- agent handoff context
By the numbers
- 3 context formats (Quick, Full, Archived)
- Quick context under 500 tokens
- Full context under 2000 tokens
Files
Context Management
This skill manages context across multi-agent workflows and long-running tasks, ensuring coherent state preservation and efficient context distribution.
When to Use This Skill
- When coordinating multiple agents in a workflow
- When preserving context across sessions
- When managing long-running projects
- When compressing context for efficiency
- When distributing context to specific agents
- When creating context checkpoints
What This Skill Does
1. Context Capture: Extracts key decisions and rationale 2. Context Distribution: Prepares relevant context for each agent 3. Memory Management: Stores critical project decisions 4. Context Compression: Reduces context size while preserving key information 5. Context Indexing: Creates indexes for quick retrieval 6. State Preservation: Maintains coherent state across sessions
How to Use
Manage Context
Capture the key context from this conversationPrepare context for the next agent in this workflowSpecific Tasks
Create a context checkpoint for this project milestoneContext Formats
Quick Context (< 500 tokens)
- Current task and immediate goals
- Recent decisions affecting current work
- Active blockers or dependencies
Full Context (< 2000 tokens)
- Project architecture overview
- Key design decisions
- Integration points and APIs
- Active work streams
Archived Context
- Historical decisions with rationale
- Resolved issues and solutions
- Pattern library
- Performance benchmarks
Best Practices
Context Management
1. Relevance Over Completeness: Include only what's needed 2. Key Decisions: Capture rationale, not just outcomes 3. Compression: Reduce context while preserving meaning 4. Indexing: Create searchable context indexes 5. Checkpoints: Save context at major milestones
Reference Files
- `references/patterns.md` - Context management patterns, handoff templates, and multi-agent coordination
Related Use Cases
- Multi-agent coordination
- Long-running project management
- Context preservation across sessions
- Workflow state management
- Project knowledge management
Memory Management Skill
This skill provides comprehensive workflows for managing persistent context across conversations using the memory MCP server's knowledge graph capabilities.
When to Use This Skill
- Starting new projects that need context preservation
- Resuming work after breaks or session changes
- Tracking user preferences and decisions
- Building relationships between concepts
- Maintaining project knowledge bases
- Cross-referencing technical information
- Preserving important conversation context
Core Workflows
Project Initialization
When starting a new project:
1. Create project entity with descriptive name 2. Add observations about goals, scope, timeline 3. Create team member entities if applicable 4. Establish relationships (who works on what) 5. Store technology stack as concept entities 6. Link technologies to project 7. Document initial decisions as observations
Example workflow:
1. mcp__memory__create_entities("project-webapp", "project")
2. mcp__memory__add_observations("project-webapp", "React-based todo application with TypeScript")
3. mcp__memory__create_entities("tech-react", "technology")
4. mcp__memory__create_relations("project-webapp", "uses", "tech-react")Context Preservation
When important information needs to be remembered:
1. Identify key entities mentioned (people, projects, concepts) 2. Check if entities already exist in graph 3. Create new entities or update existing ones 4. Add timestamped observations with context 5. Create relationships to show connections 6. Tag with importance level if critical
Key information types to preserve:
- Architectural decisions
- User preferences
- API endpoints and credentials
- Configuration settings
- Problem solutions
- Team agreements
Knowledge Building
When accumulating domain knowledge:
1. Create concept entities for important topics 2. Add detailed observations with explanations 3. Link related concepts together 4. Build hierarchy with parent-child relations 5. Add examples as observations 6. Cross-reference with projects using concepts
Example structure:
authentication (concept)
├── Observations:
│ ├── "JWT tokens for stateless auth"
│ ├── "Refresh token rotation strategy"
│ └── "OAuth2 integration points"
├── Relations:
│ ├── parent_of → jwt-tokens
│ ├── parent_of → oauth2
│ └── used_by → project-webappSession Continuity
When resuming work:
1. Search for relevant project entity 2. Read recent observations for context 3. Check relationships for dependencies 4. Identify last known state 5. Update with new session information 6. Add observation about work resumption
Search pattern:
1. mcp__memory__search_nodes("project-name")
2. mcp__memory__open_nodes(["project-id"])
3. Review observations for recent updates
4. Continue from last checkpointPreference Management
When tracking user or project preferences:
1. Create preference entities with clear names 2. Add observations about specific preferences 3. Link to relevant projects or users 4. Update when preferences change 5. Check preferences before making decisions
Preference categories:
- Coding style (formatting, patterns)
- Tool preferences (editor, terminal)
- Communication style (formal, casual)
- Technology choices (frameworks, libraries)
- Workflow preferences (TDD, agile)
Relationship Mapping
When building connections:
1. Identify entities that should be connected 2. Determine relationship type and direction 3. Create meaningful relationship labels 4. Add observations explaining the connection 5. Consider bidirectional relationships 6. Update as relationships evolve
Common relationship patterns:
- Person
works_onProject - Project
depends_onService - Concept
related_toConcept - Tool
used_byProject - Issue
blocksFeature - Decision
affectsComponent
Memory Search Strategies
When finding information:
1. Broad to Specific: Start with general terms, narrow down 2. Type Filtering: Search by entity type when known 3. Relationship Traversal: Follow connections from known entities 4. Keyword Search: Look for specific terms in observations 5. Recent Activity: Check recently modified entities 6. Pattern Matching: Find entities with similar structures
Memory Maintenance
Regular maintenance tasks:
1. Deduplication: Merge duplicate entities 2. Cleanup: Remove outdated observations 3. Consolidation: Combine related observations 4. Archival: Move old but valuable info to archive observations 5. Validation: Verify relationship accuracy 6. Optimization: Remove redundant relationships
Error Recovery
When memory operations fail:
1. Check entity name format (avoid special characters) 2. Verify entities exist before creating relationships 3. Confirm observation format is valid 4. Try alternative search terms 5. Check for typos in entity names 6. Review error messages for specific issues
Best Practices
Entity Naming
- Use descriptive, unique names
- Include type prefix when helpful (project-, user-, tech-)
- Use consistent naming patterns
- Avoid special characters
- Keep names reasonably short
Observation Quality
- Include timestamps for time-sensitive info
- Add context about source or reliability
- Keep observations focused and specific
- Update rather than duplicate similar info
- Use structured format for complex data
Relationship Design
- Choose clear, consistent relationship types
- Consider relationship directionality
- Avoid circular dependencies
- Document non-obvious relationships
- Regularly review and update
Search Optimization
- Index frequently searched terms
- Use consistent vocabulary
- Create search aliases for common queries
- Cache recent search results
- Build search hierarchies
Integration with Other Tools
With Code Editors
- Store code snippets as observations
- Link files to project entities
- Track refactoring decisions
- Remember debugging solutions
With Documentation
- Link docs to relevant entities
- Store API specifications
- Track documentation updates
- Cross-reference with code
With Communication
- Record meeting decisions
- Track action items
- Store team agreements
- Link discussions to projects
Advanced Patterns
Graph Traversal
Navigate complex relationships:
1. Start from known entity
2. Get all relationships
3. Follow specific relationship types
4. Collect related entities
5. Recurse to desired depthTemporal Tracking
Track changes over time:
1. Add timestamp to all observations
2. Create version entities for major changes
3. Link versions with "succeeded_by" relations
4. Query by time rangeHierarchical Organization
Build tree structures:
1. Create parent entities
2. Create child entities
3. Use "parent_of" relationships
4. Traverse hierarchy as neededCommon Pitfalls to Avoid
- Creating duplicate entities with similar names
- Forgetting to add timestamps to time-sensitive observations
- Creating too many low-value relationships
- Not cleaning up outdated information
- Using inconsistent relationship types
- Storing sensitive information without consideration
- Over-structuring simple information
- Under-structuring complex information
Troubleshooting
Entity Not Found
- Check exact spelling and case
- Try searching with partial terms
- Verify entity was created successfully
- Look for similar entities
Relationship Creation Failed
- Ensure both entities exist
- Check relationship type format
- Verify no duplicate relationship
- Review error message details
Search Returns Too Many Results
- Add type filter
- Use more specific terms
- Filter by relationships
- Limit to recent entities
Memory Growing Too Large
- Remove outdated observations
- Delete unused entities
- Consolidate similar entities
- Archive old information
Context Management Patterns
Session State Patterns
File-Based Context
# Session Context File Structure
.claude/
├── session-context.md # Current session state
├── task-history.md # Completed tasks
└── pending-decisions.md # Items needing user inputContext Handoff Pattern
When transitioning between agents or sessions:
1. Summarize Current State
- What was accomplished
- What's in progress
- What's blocked
2. Document Decisions
- Choices made and rationale
- Alternatives considered
- User preferences noted
3. List Open Items
- Pending tasks
- Questions for user
- Dependencies
Multi-Agent Coordination
Filesystem Artifact Pattern
# Each subagent writes to unique file
output_path = f"/tmp/agent_{task_id}_{timestamp}.md"
# Coordinator reads all artifacts
artifacts = glob.glob("/tmp/agent_*.md")
results = [read_file(f) for f in artifacts]Context Distribution
# Shared context structure
shared_context:
project_root: /path/to/project
conventions:
- Use TypeScript
- Follow existing patterns
constraints:
- No breaking changes
- Maintain backwards compatibility
agent_specific:
code_reviewer:
focus: security, performance
test_writer:
framework: pytest
coverage_target: 80%Token Optimization
Context Compression
- Summarize completed work
- Remove redundant information
- Reference files instead of including content
- Use bullet points over prose
Progressive Loading
1. Load minimal context initially 2. Expand sections as needed 3. Unload completed task context
Handoff Templates
Task Completion Handoff
## Completed: [Task Name]
### What Was Done
- [Action 1]
- [Action 2]
### Files Changed
- `path/to/file.ts` - [description]
### Decisions Made
- Chose X over Y because [reason]
### For Next Session
- [ ] Follow-up task 1
- [ ] Follow-up task 2Error/Block Handoff
## Blocked: [Task Name]
### Attempted
- [Approach 1] - Failed because [reason]
- [Approach 2] - Partially worked but [issue]
### Current State
- [Description of where things stand]
### Need From User
- [ ] Decision on [question]
- [ ] Access to [resource]Related skills
FAQ
What context formats does it define?
Quick Context under 500 tokens, Full Context under 2000 tokens, and Archived Context.
When is it used?
When coordinating multiple agents, preserving context across sessions, or managing long-running projects.