Codex Context
Optimizes context usage for Codex CLI by storing large raw data locally and providing concise summaries with searchable artifact handles.
Codex Context is a specialized Model Context Protocol (MCP) server designed for the Codex CLI. It addresses the limitation of excessive context usage by intelligently managing large inputs such as repository scans, log files, and reports. Instead of passing entire raw data to the AI, it stores this information locally in a SQLite database, returning only short, bounded summaries and searchable artifact handles. This approach significantly reduces context waste, enabling more efficient and cost-effective interactions with the AI model for complex local analysis tasks.
Key Features
01View session-level statistics on raw bytes processed, returned bytes, and estimated tokens saved.
02Reset session statistics to measure performance for new benchmarks or measurement windows.
03Inspect and summarize large files including logs, JUnit XML reports, Markdown reports, and patch files.
040 GitHub stars
05Scan repositories, summarize architecture, and identify hotspots while persisting the full raw corpus.
06Query previously stored artifacts by handle to retrieve only relevant snippets without re-ingesting data.
Use Cases
01Performing repository discovery, architectural summaries, or hotspot detection on local codebases.
02Analyzing large log files, XML reports, Markdown reports, or patch files without overwhelming the AI model's context.
03Conducting follow-up inquiries on previously processed repository data or file analyses using artifact handles for precise information retrieval.