feat: Add GPT-5.4 system prompt optimizations#38953
Closed
rmashate wants to merge 1 commit intoopenclaw:mainfrom
Closed
feat: Add GPT-5.4 system prompt optimizations#38953rmashate wants to merge 1 commit intoopenclaw:mainfrom
rmashate wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Based on OpenAI's GPT-5.4 prompting guide, adds: - Output contract (prevents verbose/off-format responses) - Verbosity controls (concise but complete) - Tool persistence rules (prevents incomplete workflows) - Dependency checks (ensures prerequisites aren't skipped) - Verification loop (pre-flight checks before actions) - Missing context gating (prevents hallucination) Benefits both OpenAI and Anthropic models. Token cost: ~500 tokens (acceptable overhead). Source: https://developers.openai.com/api/docs/guides/prompt-guidance
|
This pull request has been automatically marked as stale due to inactivity. |
Contributor
|
Thanks for the draft. Closing because this approach has been superseded by the current provider-scoped GPT-5 prompt overlay. Why this should not land now:
That provider-owned path avoids changing prompts for unrelated providers and is the maintained direction. If we need more GPT-5 prompt tuning later, it should update the current overlay and tests, not add a second global prompt block. |
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
Adds a GPT-5.4-inspired prompt section to the agent system prompt in source code, inserted between Tool Call Style and Safety.
What it adds
Why
These patterns come from OpenAI's official GPT-5.4 prompting guidance and are model-agnostic. They should improve token efficiency, workflow reliability, action safety, and grounding quality for both OpenAI and Anthropic-backed agents.
Cost
Estimated prompt overhead: ~500 tokens, which seems acceptable relative to the expected gains in answer quality and execution reliability.
Source
Notes
src/agents/system-prompt.ts), not compileddist/