Feature request: Make @ mentions extensible for integrations
What variant of Codex are you using?
CLI, Codex App, and IDE Extension
What feature would you like to see?
Please make the @ mention system extensible so integrations can contribute their own mentionable resources to Codex.
Codex already provides @ mentions for native resources. Integrations should have a supported way to make external resources discoverable and selectable through the same experience, including resources that may change while Codex is running.
At a product level:
- Integration-provided resources can appear in
@suggestions alongside native resources. - Users can search for and select those resources using the standard mention experience.
- The selected resource keeps its identity and can be handled by the contributing integration when the prompt is submitted.
- Integrations can update their available resources without requiring changes to Codex itself.
- An unavailable integration does not break native
@behavior.
This request is intentionally implementation-neutral. It is not tied to a particular integration, resource type, transport, protocol, or Codex surface. The goal is a supported extension point so @ mentions can be extended without forking Codex or intercepting terminal input.
Additional information
Examples of mentionable resources could include repositories, documents, issues, services, people, agents, environments, or other objects from external tools. The exact extension mechanism should follow Codex's architecture.
1 Comment
Mapping this onto existing machinery, since most of the pieces have homes already:
mentions_v2in the TUI with a typed candidate model — currently onlyMentionType::{Skill, File, Directory}(https://github.com/openai/codex/blob/1f41cc5d92/codex-rs/tui/src/bottom_pane/mentions_v2/candidate.rs#L19-L45) plus asearch_catalog/search_modepipeline that already handles async, filterable sources. Adding a kind backed by an external provider is an extension of that catalog rather than new UI.resources/list+resources/updatednotifications). Codex's MCP client tracks server resources today (the/mcpview lists them —tui/src/history_cell/mcp.rs), so the shortest path to this feature is: surface connected servers' resources as@-mention candidates, insert a reference the turn context resolves viaresources/readat submit time. That gives repositories/documents/issues/people for free to any server that exposes them, with zero codex-specific plugin API.The main open design question is trust/provenance: mention candidates from an external server are untrusted text entering the prompt at user-selection time, so labeling the source in the popup (and in the inserted reference) matters more here than for local files.