Skip to content

Conversation

frankiesardo
Copy link

@frankiesardo frankiesardo commented Mar 16, 2025

Why this feature

For those that want to customize an existing deployed instance of bolt.diy, there should be an easy way to tweak the system prompt and play with variations of it. For example: you should be able to add specific guidelines about the stack that can be reused over and over across multiple chats. I find myself using this constantly while building shopify apps and injecting extra context to the prompt about polaris ui and polaris icons.

Approach

I'm persisting the custom prompt to localStorage as it can easily exceed the limits of a session token. I haven't touched the "default" and "optimized" prompts which are still available in the dropdown. There is an explicit save action and toast that confirms the custom prompt has been updated. The UI could use some work but I wanted to keep things basic for now.

Screenshot 2025-03-16 14 11 46

Happy to integrate any feedback you have!

@frankiesardo frankiesardo changed the title Add custom prompt to library feat: add custom prompt to library Mar 16, 2025
@xKevIsDev
Copy link
Collaborator

Hi @frankiesardo Could you please resolve the conflicts, i would like to test this out.

@Stijnus Stijnus self-assigned this Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants