/read command: whole file addition

Resolved 💬 2 comments Opened Oct 4, 2025 by ndurner Closed Dec 2, 2025

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 ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗