[Question]: why not support symbol/function @mentions in prompt ? #8384

Open
opened 2026-02-16 18:09:50 -05:00 by yindo · 2 comments
Owner

Originally created by @jensenojs on GitHub (Feb 2, 2026).

Originally assigned to: @thdxr on GitHub.

Hi all — maybe I missed something, but I can’t find a quick way to @mention a function/method/class symbol directly in OpenCode.

In Cursor/Windsurf I can just @ a symbol and it’s immediately part of the context. In OpenCode, I always end up going back to Neovim to search the symbol and manually copy/paste it, which is pretty inconvenient.

This is a large open-source project, so I doubt I’m the first person asking for this. I’m not asking for implementation here — just raising the need: symbol-level @mentions, not just file/agent.

I also had GPT investigate this requirement, and it seems that current custom tools/plugins don't yet support custom mention sources. However, I haven't looked into this issue in depth yet; if it does, I'll probably implement one for myself.

If this isn’t supported for a reason (limitations or tradeoffs), I’d love to know.

Originally created by @jensenojs on GitHub (Feb 2, 2026). Originally assigned to: @thdxr on GitHub. Hi all — maybe I missed something, but I can’t find a quick way to @mention a function/method/class symbol directly in OpenCode. In Cursor/Windsurf I can just `@` a symbol and it’s immediately part of the context. In OpenCode, I always end up going back to Neovim to search the symbol and manually copy/paste it, which is pretty inconvenient. This is a large open-source project, so I doubt I’m the first person asking for this. I’m not asking for implementation here — just raising the need: **symbol-level @mentions**, not just file/agent. I also had GPT investigate this requirement, and it seems that current custom tools/plugins don't yet support custom mention sources. However, I haven't looked into this issue in depth yet; if it does, I'll probably implement one for myself. If this isn’t supported for a reason (limitations or tradeoffs), I’d love to know.
Author
Owner

@github-actions[bot] commented on GitHub (Feb 2, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8223: [FEATURE]: add "@" mention files in prompt support in opencode web ui prompt window - Covers file reference functionality via @ mentions
  • #11505: [FEATURE]: Web UI UX: Select files from file tree and insert into chat prompt - Related file selection/reference feature for web UI
  • #9696: [FEATURE]: Add @ mention syntax for one-time MCP server activation in chat - Explores @ mention syntax extensions
  • #6263: Feature Request: Integrate Serena for Semantic Code Understanding - Requests semantic code context awareness
  • #6265: Feature Request: Integrate mgrep for Semantic Code Search - Requests semantic code search capabilities

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 2, 2026): This issue might be a duplicate of existing issues. Please check: - #8223: [FEATURE]: add "@" mention files in prompt support in opencode web ui prompt window - Covers file reference functionality via @ mentions - #11505: [FEATURE]: Web UI UX: Select files from file tree and insert into chat prompt - Related file selection/reference feature for web UI - #9696: [FEATURE]: Add @ mention syntax for one-time MCP server activation in chat - Explores @ mention syntax extensions - #6263: Feature Request: Integrate Serena for Semantic Code Understanding - Requests semantic code context awareness - #6265: Feature Request: Integrate mgrep for Semantic Code Search - Requests semantic code search capabilities Feel free to ignore if none of these address your specific case.
Author
Owner

@jensenojs commented on GitHub (Feb 3, 2026):

When dealing with behemoths like MySQL, 99% of your effort goes into tracing complex call chains and understanding module interactions. Conversations with the agent become an iterative cycle of exploration and reference. To maintain the agent's reasoning foundation and prevent it from veering off course, you must frequently provide it with specific symbols and code snippets.

The bottleneck here is context-switching overhead. Every time I have to pause my train of thought and manually jump between buffers, copy and paste symbols into the prompt, it creates friction.


update :

Image
@jensenojs commented on GitHub (Feb 3, 2026): When dealing with behemoths like MySQL, 99% of your effort goes into tracing complex call chains and understanding module interactions. Conversations with the agent become an iterative cycle of exploration and reference. To maintain the agent's reasoning foundation and prevent it from veering off course, you must frequently provide it with specific symbols and code snippets. The bottleneck here is context-switching overhead. Every time I have to pause my train of thought and manually jump between buffers, copy and paste symbols into the prompt, it creates friction. --- update : <img width="546" height="309" alt="Image" src="https://github.com/user-attachments/assets/62e25736-4730-4b47-961e-368cd3432875" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8384