Codex Model Prompts Split into Pieces
Generated from codex-rs/models-manager/models.json by build.py.
Source and license
The prompt text comes from OpenAI Codex, file codex-rs/models-manager/models.json in https://github.com/openai/codex, licensed under the Apache License 2.0. A copy of the license is in LICENSE, and the project’s notice is in NOTICE.
OpenAI Codex. Copyright 2025 OpenAI.
Changes from the original: the prompts were taken out of the JSON file, the escaped \n sequences were turned into line breaks, and the text was split into pieces, grouped and indexed. In models-assembled/, headings inside the prompts were also moved down two levels. Placeholders such as <X> in the prose were wrapped in backticks so that Markdown shows them. The wording of the prompts was not changed.
This is not an official OpenAI project and is not endorsed by OpenAI.
Layout
pieces/holds each distinct text once. When models use different text for the same section, the most used version has the plain name and the others end in.v2,.v3, and so on.- File names use
__in place of folders, e.g.multi_agent__role__root.md. Pieces namedinstructions_template__*hold the main prompt cut at#and##headings. models-assembled/<slug>.mdhas the full prompt text for each model, with a link to the piece before each part. Headings inside the prompts are moved down two levels to sit under the##section headings.models/<slug>.mdlists the pieces each model uses, in order. Joining a model’sinstructions_templatepieces with a newline (after dropping each file’s final newline) gives back the original text, except for the backticks around placeholders.