What problem does it solve?
This Skill helps Claude Code manage large contexts, optimize a fixed token budget, persist session state, and coordinate multi-agent workflows to prevent context overflow and improve reliability.
Core Features & Use Cases
- Token budget awareness: Allocate and monitor a 200K token context window with smart reallocation.
- Session persistence: Maintain session state across interruptions for seamless resumption.
- Context optimization: Progressive loading and memory management to reduce token waste.
- Multi-agent handoffs: Handoff and forking protocols to enable parallel exploration without losing state.
- Memory discipline: Clear guidance on memory files and disciplined context retention.
Example: When working on a long-running SPEC, initialize a 200K budget, persist session state, and enable handoffs between agents to explore multiple design options without blowing the token window.
Quick Start
Activate moai-foundation-context with a 200K token budget and persistent session, then begin a long-running SPEC exploration.