Codex App: rank @ file and folder suggestions by reference frequency
What variant of Codex are you using?
App
What feature would you like to see?
When using @ in the Codex App to mention a file or folder, the autocomplete suggestions should prioritize items by how many times the user has referenced them.
Files and folders naturally have different levels of importance within a project. Items referenced repeatedly are usually the most relevant to the current workflow, so surfacing them first would reduce repeated searching and typing—especially in large repositories.
Suggested ranking behavior:
- Strong prefix or fuzzy-match quality
- Reference frequency within the current workspace/project
- Recency as a tie-breaker when reference counts are equal
- Generic filename/path similarity
This should apply to both files and folders, not files only. Ideally, usage history would remain scoped to the current workspace or project so unrelated projects do not affect the ranking.
Related: #17255, which focused mainly on recent file references in the IDE extension and is now closed as completed. This request is specifically for the Codex App, includes folders, and treats reference frequency as the primary usage signal.