devchat icon indicating copy to clipboard operation
devchat copied to clipboard

Automatic Context Detection from Open Files for Assistant

Open runjinz opened this issue 1 year ago • 0 comments

Feature Description

I propose a feature where the assistant automatically detects and uses the context from files currently being edited. This would greatly reduce the manual effort required by users to provide context for questions or commands they are asking the assistant. The assistant should at least be sensitive to the opened files, considering them as part of the question-and-answer context.

Benefits

  • Reduced Manual Effort: By automatically detecting context from open files, users would not need to manually input context, lowering the barrier to efficient use.

  • Improved Accuracy: The assistant's responses could become more accurate and relevant when it has automatic access to the context in which the question or command is made.

  • Flexibility: In cases where users want to provide additional context manually, this should override the automatically detected context, allowing for greater flexibility and precision in responses.

Implementation Considerations

  • The feature should intelligently discern which open file(s) are most relevant to the current query.

  • Privacy and security measures must be in place to ensure that sensitive information is not inadvertently processed or stored without user consent.

Conclusion

This feature could significantly enhance the usability and effectiveness of the assistant, making it more intuitive and responsive to the users' current working context. It aligns with the goal of reducing manual workload and improving overall user experience.

img_v3_029t_f98e53f4-001b-4d73-a2c8-e2171a16e7eg

runjinz avatar Apr 16 '24 11:04 runjinz