Codex App: rank @ file and folder suggestions by reference frequency

Open 💬 0 comments Opened Jul 14, 2026 by shenmuxing

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:

  1. Strong prefix or fuzzy-match quality
  2. Reference frequency within the current workspace/project
  3. Recency as a tie-breaker when reference counts are equal
  4. 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.

View original on GitHub ↗