Description
Summary
It would be extremely useful to have the ability to clone an existing AI configuration in Sourcegit. This feature would allow users to duplicate a configuration setup—including prompts, settings, environment variables, and any other relevant metadata—with a single click or command.
Motivation
Currently, when users want to create a new AI configuration similar to an existing one, they must manually recreate it from scratch. This is time-consuming, error-prone, and makes it difficult to experiment with slight variations.
Use cases include:
- Quickly creating iterations of prompt configurations for A/B testing
- Reusing a configuration for different branches or repositories
- Preserving a base configuration while adjusting parameters for specific situations
Desired Workflow
- User views an existing AI configuration in Sourcegit.
- A "Clone Configuration" option is available via the UI or CLI.
- Sourcegit duplicates all relevant fields and creates a new configuration instance.
- The cloned configuration is editable and has a unique name or identifier.
Possible UI Implementation
- Add a "Clone" button next to each configuration in the configuration list
- Alternatively, provide a dropdown menu (⋮) with a "Clone" option
Additional Thoughts
An optional enhancement could be allowing users to specify which fields to clone (e.g., just the system prompt, without tokens or runtime parameters).
Benefits
- Better developer productivity
- Easier collaboration on prompt engineering
- Improved reproducibility of experiments
- Streamlined workflows for testing and debugging
Related Features
- "Edit Configuration" capability (if not yet implemented)
- Version history or configuration snapshots (future improvement)
Priority
🌟 High – Frequently requested and will improve user experience significantly.
Thanks for considering this request!