moai-foundation-context

Manage 200k token budgets and persist session state across Claude Code workflows.

Updated Jan 23, 2026
One-click install
npx skills add https://github.com/hnabyz-bot/gate_drv --skill moai-foundation-context-hnabyz-bot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-foundation-context
Source: https://github.com/hnabyz-bot/gate_drv/tree/main/.claude/skills/moai-foundation-context
Command: npx skills add https://github.com/hnabyz-bot/gate_drv --skill moai-foundation-context-hnabyz-bot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides enterprise-grade context management and session persistence to optimize token budgets and maintain continuity across long-running Claude Code workflows.

Core Features & Use Cases

  • Token budget optimization: manage a 200K token window across system prompts, active conversation, references, and emergency reserves.
  • Session persistence: track progress, save and reload state across interruptions, and support model switches.
  • Progressive disclosure: load and summarize content on demand to minimize token overhead while preserving essential information.
  • Multi-agent handoffs: coordinate task handoffs with minimal context transfer and integrity checks.
  • Use Case: In a large SPEC project with multiple agents, initialize a persistent context, plan steps, and resume after a restart without losing progress.

Quick Start

Initialize a MoAI foundation context session, configure token budget and persistence, then begin a SPEC-driven workflow with progressive disclosure enabled.

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 budget for long-running multi-agent Claude workflows?

To manage token budget for long-running multi-agent Claude workflows, you can automate context window allocation across system prompts, active conversations, references, and reserves to optimize a 200K token limit. This preserves session state and supports task handoffs with integrity checks.

Can I preserve Claude Code session state across interruptions and model switches?

Yes, you can preserve Claude Code session state across interruptions and model switches using session persistence protocols. The system tracks progress, saves state, and reloads it upon restart, allowing SPEC workflows to resume exactly where they left off without losing data.

What is progressive disclosure for context management in multi-agent systems?

Progressive disclosure for context management is a technique that loads and summarizes content on demand. It minimizes token overhead while preserving essential information, ensuring that multi-agent handoffs transfer only the necessary context to stay within the token budget.

How do I initialize a persistent context for a SPEC-driven project?

To initialize a persistent context for a SPEC-driven project, configure the token budget and persistence settings first. Then begin your workflow with progressive disclosure enabled, which allows you to plan steps, coordinate multiple agents, and resume seamlessly after any restart.

Does multi-agent context management work without external dependencies?

Yes, multi-agent context management works without external dependencies. The system implements internal token-budget allocation, progressive disclosure, and robust persistence protocols to handle multi-agent handoffs and session state independently.

What's the best way to allocate a 200K token window across active conversations and reserves?

The best way to allocate a 200K token window is to divide it across system prompts, active conversation history, reference materials, and an emergency reserve. This automated allocation prevents context overflow and maintains essential information for ongoing workflows.