Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bantoilatoiv0.1.0MIT
Claude Code plugin for memory and context optimization.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
Universal memory and context optimizer for AI coding agents. Load minimal context, rank relevance, compact at 60%, detect stale memory, and redact secrets.
Optimizes active context usage by:
Without MCO (context bloat):
Context: 85,000 tokens
- Full repo dump
- All memory entries
- Stack traces repeated 3x
- Redundant system prompts
With MCO (optimized):
Context: 28,000 tokens
- Current task + criteria
- Ranked file list (top 20)
- Recall summary (compact)
- Active errors only
- Critical facts only
# Unix/macOS
curl -fsSL https://raw.githubusercontent.com/bantoilatoi/memory-context-optimizer/master/install.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/bantoilatoi/memory-context-optimizer/master/install.ps1 | iex
Or directly with Node.js:
node bin/install.js --all
Node.js v20+ required. No pip, no npm dependencies, no Docker, no daemon.
When working in a project with MCO installed:
Analyze my codebase for memory optimization opportunities. Focus on
stale entries and context bloat patterns.
Or manually trigger:
node bin/memory-context.js recall # Compact at 60%
node bin/memory-context.js rank # Rank by relevance
node bin/memory-context.js audit # Check for stale/conflicts
node bin/memory-context.js compress # Compress logs
Default: .memory-context/
Compatible paths:
.qwen/memory/.claude/memory/.gemini/memory/.opencode/memory/.codex/memory/Note:
deprecated memory pathis deprecated and not used.
When active context reaches 60% usage:
| Agent | Support Level |
|---|---|
| Claude Code | Full (.claude-plugin) |
| Gemini CLI | Full (gemini-extension.json) |
| Qwen Code | Full (qwen-extension.json) |
| Codex CLI | Full (AGENTS.md) |
| OpenCode | Full (AGENTS.md) |
| Cursor | Partial (rule files) |
| Windsurf | Partial (rule files) |
| Cline | Partial (rule files) |
| Copilot | Partial (rule files) |
node src/tools/validate-repository.js
node bin/install.js --list
node bin/install.js --dry-run --all
node bin/install.js --test-install --only generic
node bin/install.js --test-install --only gemini
node bin/install.js --test-install --only qwen
node bin/install.js --test-install --only claude
Real Gemini CLI install:
gemini extensions install .
gemini extensions list
memory-context-optimizer/
skills/ # Single source of truth for behavior
agents/ # Subagent role definitions
commands/ # Command prompt stubs
plugins/ # Distribution mirrors
src/ # Internal implementation
context/ # YAML policies
prompts/ # Reusable prompt templates
adapters/ # Provider-specific views
See INSTALL.md for detailed installation per agent.
See CLAUDE.md for maintainer documentation.
Generated from the plugin's indexed repository (bantoilatoi/memory-context-optimizer) — no native marketplace selected
npx claudepluginhub p/bantoilatoi-memory-context-optimizerBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground