moai-foundation-context

Manage enterprise context and session state for Claude Code workflows.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/globalmsq/msq-relayer-service --skill moai-foundation-context-globalmsq
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: moai-foundation-context
Source: https://github.com/globalmsq/msq-relayer-service/tree/main/.claude/skills/moai-foundation-context
Command: npx skills add https://github.com/globalmsq/msq-relayer-service --skill moai-foundation-context-globalmsq

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enterprise context and session management with token budget optimization and state persistence for long-running Claude Code workflows and multi-agent coordination.

Core Capabilities & Use Cases

  • 200K token budget allocation and monitoring
  • Session state tracking with persistence
  • Context-aware token optimization
  • Multi-agent handoff protocols
  • Progressive disclosure and memory management
  • Session forking for parallel exploration

Quick Start

Initialize a new Claude Code session, allocate a 200K token budget, and enable progressive context loading with session persistence for multi-agent workflows.

Frequently Asked Questions about moai-foundation-context

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage token budgets across long-running Claude Code workflows?▼

Token budget management tracks allocation and consumption across extended sessions. Moai Foundation Context monitors your 200K token budget, optimizing context windows near limits and enabling progressive file loading to keep workflows within bounds across multi-step tasks.

What's the best way to handle context across multiple agent handoffs?▼

Multi-agent handoff protocols persist session state and context between orchestrated agents. The Skill manages handoff sequences, preserves memory across agent transitions, and applies aggressive context clearance to prevent token waste when switching between Haiku and Sonnet models.

Can I persist session state when switching models or restarting Claude Code?▼

Session state persistence saves context and configuration across restarts and model switches. Moai Foundation Context stores session data durably, enabling you to resume workflows without token loss and switch between model sizes while maintaining coordinated state.

How does context-aware token optimization work in multi-agent systems?▼

Context-aware optimization allocates tokens intelligently by monitoring window thresholds and progressively loading files only when needed. The Skill applies token-aware strategies to multi-agent coordination, preventing context overflow and balancing budget across parallel exploration or sequential handoffs.

When should I use session forking for parallel exploration?▼

Session forking lets you branch workflows for concurrent exploration while maintaining separate token budgets and context states. Use forking when exploring alternative approaches simultaneously without consuming context from your primary session or exceeding the 200K budget.

Does this work with MCP integration for enterprise workflows?▼

MCP integration is supported within the Skill's session management framework. Moai Foundation Context coordinates context and token tracking across MCP-connected tools, enabling enterprise workflows to persist state and optimize budgets across integrated external services.