Skip to content

Commit f6cf784

Browse files
committed
refactor(translator): remove unused log dependency and comment out debug logging
docs: add GPT-5 Codex guidelines for CLI usage - Added detailed guidelines for GPT-5 Codex in Codex CLI. - Expanded instructions on sandboxing, approvals, editing constraints, and style requirements. - Included presentation and response formatting best practices. fix(codex_instructions): update comparison logic to use prefix matching - Changed system instructions comparison to use `strings.HasPrefix` for improved flexibility.
1 parent e783923 commit f6cf784

18 files changed

+2
-3
lines changed

internal/misc/codex_instructions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func CodexInstructionsForModel(modelName, systemInstructions string) (bool, stri
2020
// lastReviewPrompt := ""
2121
for _, entry := range entries {
2222
content, _ := codexInstructionsDir.ReadFile("codex_instructions/" + entry.Name())
23-
if systemInstructions == string(content) {
23+
if strings.HasPrefix(systemInstructions, string(content)) {
2424
return true, ""
2525
}
2626
if strings.HasPrefix(entry.Name(), "gpt_5_codex_prompt.md") {

internal/misc/codex_instructions/gpt_5_codex_prompt.md-006-c9505488a120299b339814d73f57817ee79e114f renamed to internal/misc/codex_instructions/gpt_5_codex_prompt.md-002-c9505488a120299b339814d73f57817ee79e114f

File renamed without changes.

internal/misc/codex_instructions/gpt_5_codex_prompt.md-005-f6a152848a09943089dcb9cb90de086e58008f2a renamed to internal/misc/codex_instructions/gpt_5_codex_prompt.md-003-f6a152848a09943089dcb9cb90de086e58008f2a

File renamed without changes.

internal/misc/codex_instructions/gpt_5_codex_prompt.md-003-35c76ad47d0f6f134923026c9c80d1f2e9bbd83f renamed to internal/misc/codex_instructions/gpt_5_codex_prompt.md-005-35c76ad47d0f6f134923026c9c80d1f2e9bbd83f

File renamed without changes.

internal/misc/codex_instructions/gpt_5_codex_prompt.md-002-0ad1b0782b16bb5e91065da622b7c605d7d512e6 renamed to internal/misc/codex_instructions/gpt_5_codex_prompt.md-006-0ad1b0782b16bb5e91065da622b7c605d7d512e6

File renamed without changes.

internal/misc/codex_instructions/prompt.md-013-31d0d7a305305ad557035a2edcab60b6be5018d8 renamed to internal/misc/codex_instructions/prompt.md-001-31d0d7a305305ad557035a2edcab60b6be5018d8

File renamed without changes.

internal/misc/codex_instructions/prompt.md-012-6ce0a5875bbde55a00df054e7f0bceba681cf44d renamed to internal/misc/codex_instructions/prompt.md-002-6ce0a5875bbde55a00df054e7f0bceba681cf44d

File renamed without changes.

internal/misc/codex_instructions/prompt.md-011-a6139aa0035d19d794a3669d6196f9f32a8c8352 renamed to internal/misc/codex_instructions/prompt.md-003-a6139aa0035d19d794a3669d6196f9f32a8c8352

File renamed without changes.

internal/misc/codex_instructions/prompt.md-010-063083af157dcf57703462c07789c54695861dff renamed to internal/misc/codex_instructions/prompt.md-004-063083af157dcf57703462c07789c54695861dff

File renamed without changes.

internal/misc/codex_instructions/prompt.md-009-d31e149cb1b4439f47393115d7a85b3c8ab8c90d renamed to internal/misc/codex_instructions/prompt.md-005-d31e149cb1b4439f47393115d7a85b3c8ab8c90d

File renamed without changes.

0 commit comments

Comments
 (0)