/read command: whole file addition

Resolved 💬 2 comments Opened Oct 4, 2025 by ndurner Closed Dec 2, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

Background

In a recent writing task - akin to ChatGPT Canvas but with LaTeX - perceived quality of model suggestions drop as the paper got longer. Not just the edits became surgical, but also the context of the paper considered by the model became spotty. I attribute this to the use of external commands like sed-based scrolling and keyword-based search.

Idea

Add a new slash-command like "/read" to the Codex TUI. This will essentially work like pasting from the clipboard: read in the file whole so it's available in the model's context for full, entire and whole consideration. Adding a file in one go will also be much faster than the sed-based scrolling through file contents commonly observed. The /read command should allow several files to be added (e.g. the BibTeX file along with the LaTeX file) for full input fidelity. Ideally, tab-based auto-completion of file names would be supported during entry, e.g. "/read /tmp/inv <tab>" expanding to "/read /tmp/invitation_letter.txt", shell-style.

Additional information

I am jamming along to get this right for myself. Kindly let me know if you're interested in including this upstream to inform scoping.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected:

  • #2933
  • #2866
  • #3259

Powered by Codex Action

etraut-openai contributor · 8 months ago

Thanks for the feature request. This hasn't received any upvotes or follow-on posts in two months, so I'm going to close it out.