Line-scoped Q&A + Edit Requests with Codex
What feature would you like to see?
Developers should be able to highlight specific lines in a file or PR diff and directly ask Codex questions or request edits, with responses returned as clean, range-limited diffs. This avoids noisy whole-file edits, improves code reviews, and makes AI assistance precise. In VS Code/JetBrains, users could highlight lines → “Ask Codex” / “Request Edit” → get an explanation or patch preview with options to apply, stage, or open as PR. In GitHub’s UI, the same flow should surface as review suggestions on selected lines. The response format must be a unified diff scoped to the selection, auto-formatted, and constrained to within range unless explicitly expanded by the user. This would streamline focused bug fixes, refactors, and review suggestions, cutting review cycles while maintaining code safety.
Are you interested in implementing this feature?
_No response_
Additional information
_No response_
2 Comments
Thanks for the suggestion. I presume that you're using the Codex CLI? In case you weren't aware, this feature exists in the Codex VS Code extension. You can add specific lines of code to your context.
This feature request has received only one upvote and no additional posts in three months, so I'm going to close.