During a long refactoring session, a developer realizes Claude Code has been operating with an outdated understanding of a utility module because the file was changed on disk by a teammate's branch merge. The developer wants Claude to re-read the current contents of that file before continuing. Which action accomplishes this most directly?
Prefixing a path with @ in a prompt instructs Claude Code to read the current file contents from disk and include them in the context. This refreshes the model's view of that specific module without discarding the rest of the session, which is exactly what the developer needs.
Why this answer
Using the @ reference in a prompt causes Claude Code to read the named file's current contents from disk and inject them into the conversation, updating the model's view without losing session context. Clearing or restarting discards valuable history, and compacting only summarizes dialogue rather than re-reading files.
Exam trap
The trap here is reaching for session-reset commands to fix a stale file view, when a targeted @ file reference refreshes just that file while preserving context.