Skip to main content

FEATURE REQUEST: Prompt library syncing with local folder

I love the idea of the prompt library, but in actuality I don’t use much based on my workflow. What I’d like is for the prompt library to one-way sync from a local folder, to automatically update the prompt library based on the md files stored there. Therefore, as the prompts are updated in the local folder, Bolt would update the prompts that it saves.

This post is quite long, as it’s something I’m quite passionate about and would really like to see implemented in Bolt. I think it would improve the product immensely as to the prompt library, and moreover would benefit the workflow of others. So I apologize in advance, and add some caveats below (namely, that AI did not write this — nor did I even use AI to help write this post; I’m wordy by nature).

Overall suggestion

What I would suggest is that in settings—>Prompt Library, there is a setting to “load prompts from local folder” to initially load those prompts in (it would look for md files, and the prompt name would be the name of the file). This could be done on an entire local folder basis, or an individual file basis.

The next part is that I would be able to select an option to “sync prompts initially loaded from folders.” Therefore, Bolt would periodically look at the folder, and if the prompts stored in the folder are newer (by file modification date or whatever) than what it has loaded, it would update the Bolt-stored versions. The sync’ing with thus always be one way — from local folder to Bolt.

There would therefore be three types of prompts in the prompt library: prompts created in Bolt that you can change in Bolt itself, prompts loaded from a local folder but not synced (they essentially would be no different than prompts created in bolt) and therefore also can be changed in Bolt itself, and prompts loaded from a local folder but are synced — the latter would be read-only in Bolt, and could not be changed in Bolt.

  • One note about all this — my prompts are long; and therefore Bolt would have to be able to support long prompts. I’m not sure right now what the maximum length of individual prompts is, but I suspect this is not a dealbreaker.

Explanation of suggestion by way of example

Let me give you an example of my workflow to explain.

I’m a patent attorney. I’ve developed a prompt.md file for each type of work product I’m doing: the claims of a patent application; the detailed description of a patent application; the drawings of an application; addressing one type of “rejection” in responding to an “office action” from the patent office; addressing a different type of “rejection” in responding to an action; etc.

The way I work currently is that I select from my prompt folder the prompt.md file for the type of work product I’m doing, which is attached to the chat (or the project). I then tell the LLM what I’m looking to achieve with the work product, and ask it to draft the section in question based on the prompt — say, the detailed description (actually only a part of it at a time, but that doesn’t matter here). I copy and paste what it generated into Word. In Word, I review it word by word and make changes.

Sometimes there are few changes. Sometimes there are significant ones.

At the end of the process, I give the LLM a copy of what it generated based on my prompt, and a copy of what I ended up using. I ask it to draw lessons from what I did compared to what it suggested, and ask questions as to my preferred approach.

If early in the process of drafting the work product the LLM is way off in its output, I’ll give it instructions at that time, and at the end of the process will also ask about lessons in drew from those instructions compared to what was previously instructed in the prompt.

We work all of these lessons, and then I tell the LLM to generate an updated prompt, which I save in the local folder, and which is used as the prompt the next time I work on a similar work product.

This process sounds laborious, but it actually isn’t. Over time, the LLM suggests fewer and fewer revisions to the prompt.md file, because it’s learning to draft work product in the same way I do. But there are times when I draft a work product it a completely new way, and that becomes a new section in the prompt file.

The take-home

The idea, therefore, is that when the LLM generates an updated prompt.md file and I save it to the local folder, Bolt syncs that to its prompt library.

Therefore, the next time I work on a similar work product, I don’t have to attach the prompt from the local folder to the chat or project, but can simply pick the prompt from Bolt’s AI library.

Final thoughts

First, in case anyone was wondering, AI did not generate this feedback suggestion; this is how I write.

Second, also in case anyone was wondering, I do apologize for length. As noted above, this is something I’m quite passionate about as a way to improve my workflow, and genuinely think it could improve Bolt and the workflow of others.

Log in to comment and vote

No comments yet

Be the first to share your thoughts.