Individual skill
codex-1m-context-window-setup
Configures and verifies an expanded, model-aware context window for OpenAI Codex CLI and Desktop. Use to inspect local context settings, lower or set the auto-compaction threshold, expand ~258K context to 500K or 1M, or repair model_context_window/model_auto_compact_token_limit. Not for changing the selected model or other Codex settings.
daymade-codex/codex-1m-context-window-setup/SKILL.md
Source commit 7c4d326ddd94d504e00e241ba49498e95160afbe
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,520
- Repository last updated
- Nov 6, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesSKILL.mdcore · 8,191 bytesreferences/context_window_contract.mddoc · 2,897 bytesscripts/codex_context_window.pyruns · 21,484 bytestests/test_codex_context_window.pyruns · 23,725 bytes
Read excerpt
# Codex 1m Context Window Setup
Inspect local settings or change only automatic compaction. For full context
expansion, read Codex's current model catalog, cap the request at the model's
declared maximum, and apply the bundled expansion preset.
## Route the request
| User intent | Action |
|---|---|
| Read the current base-config window or compaction threshold | Run `show`; no Codex process or model catalog needed |
| Lower/set only automatic compaction | Run `show`, then `set-compact --tokens N` |
| Explain 258K, diagnose model limits, or preview full expansion | Run `doctor` |
| Configure/fix/raise the context window | Run `apply` |