context-budget

Audit Codex context window consumption across agents, skills, MCP servers, and rules.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/mostafa-ismail-2004/codex-plugin --skill context-budget-mostafa-ismail-2004
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-budget
Source: https://github.com/mostafa-ismail-2004/codex-plugin/tree/main/skills/context-budget
Command: npx skills add https://github.com/mostafa-ismail-2004/codex-plugin --skill context-budget-mostafa-ismail-2004

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you understand why a Codex session feels crowded by measuring how much context is consumed by agents, skills, rules, MCP servers, and project instructions.

Core Features & Use Cases

  • Context inventory: Scans the loaded workspace components and estimates token usage so you can see where the budget is going.
  • Bloat detection: Flags heavy agent files, oversized descriptions, redundant skills, overlapping rules, and MCP configurations that waste context.
  • Prioritized recommendations: Ranks the biggest savings opportunities so you can remove or lazy-load the most expensive components first.
  • Use case: Before adding more tooling to a large Codex setup, use this Skill to check whether you still have enough headroom.

Quick Start

Ask the assistant to run a context budget audit of the current Codex workspace and summarize the biggest token-saving opportunities.

Frequently Asked Questions about context-budget

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

FAQPage Schema
How do I audit my Codex context window to reduce token overhead?

To audit your Codex context window, scan loaded workspace components like agents, skills, rules, and MCP servers to estimate token usage and identify bloat. This process flags oversized descriptions and overlapping rules, generating a ranked report of the biggest token-saving opportunities.

Why does my Codex session feel crowded and run out of context?

Your Codex session feels crowded because heavy agent files, redundant skills, and MCP configurations consume excessive context window tokens. Auditing workspace components detects this bloat and identifies overlapping rules, showing exactly where the token budget is being wasted.

What is the best way to check context headroom before adding new MCP servers?

The best way to check context headroom before adding new MCP servers is to run a pre-expansion capacity planning audit. This estimates current token consumption across agents and rules, ensuring you have enough available context budget for the new tooling.

How do I detect overlapping rules and redundant skills in my workspace?

Detect overlapping rules and redundant skills by running an overlap detection analysis on your workspace components. This classifies loaded agents and rules, highlighting redundant configurations that waste context budget so you can remove or lazy-load them.

Can I troubleshoot session performance issues by analyzing context budget consumption?

You can troubleshoot session performance issues by analyzing context budget consumption to find heavy agent files and oversized descriptions. This workspace maintenance audit identifies components causing performance degradation, providing ranked recommendations to optimize token usage.