[Question]Does anyone need the Source References feature? #4406

Open
opened 2026-02-16 17:43:41 -05:00 by yindo · 0 comments
Owner

Originally created by @tzengshinfu on GitHub (Jan 7, 2026).

Originally assigned to: @thdxr on GitHub.

Question

Please forgive me if I use the wrong terminology.

Now I will write the following in the prompt:

If you mention any modifications to the program, you need to include the source code location in the format `{file_path}:{line_no}:{column_no}`.

For example:

1. Created source code file in {.\source.code}

2. The validation logic is in {.\source.code:1:2}

3. The calculation logic is in {.\source.code:3:4}

...

OpenCode will reply as shown in the image below. I can click the hyperlink to view the affected part of the source code file.
Image

I'm wondering how many people need this feature? Or could it be a built-in feature of OpenCode? Or does it already exist?

(I am a beginner in OpenCode and am still exploring. I may demonstrate and share with other members.)

Originally created by @tzengshinfu on GitHub (Jan 7, 2026). Originally assigned to: @thdxr on GitHub. ### Question Please forgive me if I use the wrong terminology. Now I will write the following in the prompt: ``` If you mention any modifications to the program, you need to include the source code location in the format `{file_path}:{line_no}:{column_no}`. For example: 1. Created source code file in {.\source.code} 2. The validation logic is in {.\source.code:1:2} 3. The calculation logic is in {.\source.code:3:4} ... ``` OpenCode will reply as shown in the image below. I can click the hyperlink to view the affected part of the source code file. <img width="1920" height="1020" alt="Image" src="https://github.com/user-attachments/assets/e20033f8-cba2-408a-94c6-893acd5c5ebc" /> I'm wondering how many people need this feature? Or could it be a built-in feature of OpenCode? Or does it already exist? (I am a beginner in OpenCode and am still exploring. I may demonstrate and share with other members.)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4406