Closed
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussionwebRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Description
Add support for "@" mention syntax to reference and include files directly in the prompt window of the OpenCode web UI. This would allow users to easily reference specific files when writing prompts without manually copying file paths or content.
Use Case
When crafting prompts for code generation, debugging, or analysis, users often need to reference specific files from their project. Currently, they must manually type file paths or copy-paste content. An "@" mention system would streamline this workflow by:
- Providing autocomplete suggestions for files in the project
- Allowing users to reference files with a simple "@filename" syntax
- Automatically including file context in the prompt
Expected Behavior
- User types "@" in the prompt window
- A dropdown appears showing available files in the project
- User selects a file from the list
- The file reference is inserted into the prompt (e.g., "@src/main.js")
- When the prompt is submitted, the referenced file's content or path is included in the context
Benefits
- Faster workflow for developers
- Reduced manual effort in referencing files
- Better context awareness for AI-assisted coding
- Improved user experience similar to mention systems in other tools
Additional Context
This feature would be particularly useful for:
- Code review prompts
- Bug fixing requests
- Feature implementation guidance
- Documentation generation
Reacted by Stanislav U.
Metadata
Metadata
Assignees
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionUsed for feature requests, proposals, ideas, etc. Open discussionwebRelates to opencode on web / desktopRelates to opencode on web / desktop
Activity
github-actions commentedon Jan 13, 2026
This issue might be a duplicate of existing issues. Please check:
@is not listing the available files #6618:@is not listing the available files - Reports that @ mention autocomplete for files is not working in the TUIFeel free to ignore if none of these address your specific case.
alexyaroshuk commentedon Feb 6, 2026
This feature is already done in the current release, for both web and desktop.
github-actions commentedon Apr 8, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.