$npx -y skills add openai/codex --skill code-review-contextModel visible context
| 1 | Codex maintains a context (history of messages) that is sent to the model in inference requests. |
| 2 | |
| 3 | 1. No history rewrite - the context must be built up incrementally. |
| 4 | 2. Avoid frequent changes to context that cause cache misses. |
| 5 | 3. No unbounded items - everything injected in the model context must have a bounded size and a hard cap. |
| 6 | 4. No items larger than 10K tokens. |
| 7 | 5. Highlight new individual items that can cross >1k tokens as P0. These need an additional manual review. |
| 8 | 6. All injected fragments must be defined as structs in `core/context` and implement ContextualUserFragment trait |