Add OpenAI Codex prompt bundle support - #508
Open
0xAWM wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds first-class OpenAI Codex-style prompt bundle support to the OpenAI runtime.
It moves the Codex prompt shape into editable bundled resources, wires those resources into OpenAI request assembly, and fixes project/global memory loading so Codex-style prompts receive the
expected
AGENTS.md/CLAUDE.mdcontext.Changes
Added Codex prompt resources:
resources/prompts/openai-codex-base.yamlresources/prompts/openai-codex-developer.yamlresources/prompts/openai-codex-contextual-user.yamlAdded OpenAI Codex prompt context assembly:
Updated OpenAI runtime paths to use the new prompt bundle plumbing across responses, streaming, and websocket flows.
Updated provider metadata for OpenAI Codex compatibility options.
Fixed global memory handling for Codex-style prompts:
AGENTS.mdfrom repo root to cwd.AGENTS.mdfrom supported home config locations.AGENTS.mdpriority overCLAUDE.md.CLAUDE.mdonly when noAGENTS.mdcontext exists.Added/updated specs under
specs/puffer-core/documenting the prompt bundle and compatibility behavior.Compatibility Notes
Verification
Ran:
cargo test -p puffer-core openai::prompt_context::tests16 passedcargo fmt --all --checkcargo check -p puffer-coregit diff --checkcargo checkstill reports existing warnings, but exits successfully.