Codex maintains a context (history of messages) that is sent to the model in inference requests.
No history rewrite - the context must be built up incrementally.
Avoid frequent changes to context that cause cache misses.
No unbounded items - everything injected in the model context must have a bounded size and a hard cap.
No items larger than 10K tokens.
Highlight new individual items that can cross >1k tokens as P0. These need an additional manual review.
All injected fragments must be defined as structs in core/context and implement ContextualUserFragment trait
1---2name: code-review-context3description: Model visible context4---56Codex maintains a context (history of messages) that is sent to the model in inference requests.
781. No history rewrite - the context must be built up incrementally.
92. Avoid frequent changes to context that cause cache misses.
103. No unbounded items - everything injected in the model context must have a bounded size and a hard cap.
114. No items larger than 10K tokens.
125. Highlight new individual items that can cross >1k tokens as P0. These need an additional manual review.
136. All injected fragments must be defined as structs in `core/context` and implement ContextualUserFragment trait
Run npx skillmds@latest add openai/code-review-context in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Model visible context It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
OpenAI (@openai) published this skill. Their other Agent Skills are listed on their SkillMD profile.