nicepkg / gpt-runner

Conversations with your files! Manage and run your AI presets!
https://github.com/nicepkg/gpt-runner
MIT License
347 stars 41 forks source link

Feature Request: "Add Folder to Workspace..." sync #15

Closed CogNetSys closed 1 year ago

CogNetSys commented 1 year ago

Im trying to figure out how to sync the folders I added to my workspace into gpt-runner so they appear below the "files" sidebar. In VS Code you can "Add Folder to Workspace..." but it don't appear in your sidebar below the files like it does in the VS Code Explorer primary sidebar.

The task seems to entail listing all the current files under a single top level directory so that additional directories can be added below. I'd like to do this so that I can use AI Chat with all my project documents and not just my codebase. It is very common for me to add folders to the workspace that contain project documents, sample code, snippets, and explicit directions and tutorials as well as notes and stuff.

Your coding skills are amazing! GPT-Runner is incredible and way ahead of the others. It is simple but not one step too simple thus it is kind of complex but as a coder I'd rather have the features and options than not.

CogNetSys commented 1 year ago

I am really having issues just getting started and trying to find the relevant code to work on TBH. If you could point me in the right direction on which files I'd appreciate it.

2214962083 commented 1 year ago

Hello @CogNetSys , thank you for your love for GPT-Runner. GPT-Runner is designed for universality and compatibility. It relies on nodejs and can become an extension in any IDE.

A GPT-Runner instance corresponds to a project path. You can open multiple GPT-Runner instances at the same time, each corresponding to a different path.

GPT-Runner does not have a concept of a workspace. This is unique to VS Code. For compatibility reasons, GPT-Runner may not incorporate this concept at present.

Thank you for using it. Feel free to ask if you have any further questions.

CogNetSys commented 1 year ago

I now understand your perspective and agree that integrating GPT-Runner with VS Code Workspaces isn't the optimal approach. GPT-Runner should remain independent of any specific IDE like VS Code or JetBrains.

Instead, a valuable enhancement would be the inclusion of top-level folders, similar to how presets are organized. This would enable users to seamlessly manage both their codebase and project documents within a unified environment. These top-level folders could serve as a hub for managing program iterations, product backlogs, sprint plans, sprint reviews, and other SCRUM and project-related materials. By supporting SCRUM and Agile methodologies, GPT-Runner could offer a comprehensive end-to-end development solution.

2214962083 commented 1 year ago

Hi @CogNetSys :

I understand that the workspace feature plays a significant role in linking information across different file directories.

However, the starting point of GPT-Runner is to serve as a project-level prompt or AI preset storybook, with chat with files being just one of its features. Its core functionality is scanning the current project for AI preset files and listing them out.

Therefore, any team member can reuse these AI presets or prompts. Incorporating workspaces would present significant challenges and maintenance difficulties to the current data structure. I'm not sure I have the energy to undertake this task. However, if you have examined the source code of GPT-Runner and are confident in implementing it, I welcome your pull request (PR).

In summary, while workspace is a very good feature, the current data structure does not support it. Supporting it would require a significant time commitment, but I would be very happy to receive a PR for it. I believe it would indeed be very useful.

CogNetSys commented 1 year ago

I agree. Workspaces and any specific vs code or IDE specific code should not be part of GPT-RUnner. I have no interest in pursuing it.