Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add custom prompt to library #1521

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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
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.

1 participant