Closed
Description
Problem
At the moment, Cody allows users to create their own custom commands by editing the configuration JSON file or using the command builder within the VS Code editor: https://sourcegraph.com/docs/cody/capabilities/commands#custom-commands
However, both approaches are relatively hard when creating complex prompts, especially when users attempt to apply some advanced techniques such as few-shot prompting or chain-of-thought.
Goal
- To create a better UI for writing prompts with Cody's configuration properties (mode, context, etc).
- Enable users to add, edit and remove any prompt from the workspace settings or global settings.
Proposed Solution
Tasks
- Read & parse the
.cody.json
file in.vscode
the folder as an array of commands. - Check the ability to edit & remove a command in the
cody.json
file. - Create a service to CRUD custom commands.
- Create the main webview for Cody++.
- List all available commands.
- "Add New" button.
- Create the page for creating a new custom command.
- Add the edit and trash icon in the commands list & add navigating.
- Reuse the create custom commands page for editing command.
- Delete command: display a modal to warn users before deleting a command (can be turned off).
Metadata
Metadata
Assignees
Labels
Projects
Status
Done