Codex Provider CourseENPT

Context ยท Lesson 2

Make Context Windows Visible

You can inspect context capacity before picking a model for orchestrator, executor, or validator.

RegistryProfileOrchestratorExecutorValidatorProof

Simple layer

The custom catalog now shows context windows: Claude, Kimi, Qwen, GLM, and GPT proxy models at 272k, Grok direct at 256k, local placeholders at 128k.

Technical layer

`~/.codex/custom-model-catalog.json` was updated to 48 models. Profiles set both `model_context_window` and `model_auto_compact_token_limit`, so context policy is visible at launch time and in the registry.

Real command

codex debug models | rg 'claude-opus-4-8|kimi-k2.6|qwen3.7-max|grok-4.3|gpt-oss:20b'

Practice with feedback

Where does Codex read the custom context metadata from?

Local proof

SCOPE.md
LOOP-LOG.md
~/.codex/provider-registry.json
~/.codex/provider-*.config.toml