[codex] Minimal IPython edit prompt guidance#99
Merged
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
Minimal alternative to the larger IPython prompt PR.
Changes:
%%bashmust be the first line of an IPython code celleditis installedawait edit(...)example using triple-single-quoted variables for texts that may contain triple double quotesNo runtime guard and no IPython tool schema changes.
Validation
uv run --frozen ruff check --isolated .=> passeduv run --frozen ruff format --check --isolated .=>31 files already formatteduv run --frozen pytest tests/test_prompt.py tests/test_git_block.py -q=>62 passedNote
Low Risk
Changes are limited to system prompt text and unit tests; no runtime, tool schema, or guard behavior.
Overview
Tightens IPython system-prompt guidance and adds a conditional edit skill hint.
The IPython section now states that
%%bashmust be the first line of a code cell (no leading comments, blanks, imports, or Python). Wheneditis among installed skills, the prompt adds a short block recommendingawait edit(path=..., old_str=..., new_str=...)with triple-single-quotedold/newand exact string matching.Tests cover the new
%%bashwording and assertEDIT_SKILL_PROMPTappears only wheneditis installed.Reviewed by Cursor Bugbot for commit b47e19f. Bugbot is set up for automated code reviews on this repo. Configure here.