Skip to content

Cody's custom command management #1

Closed
@mnismt

Description

@mnismt

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

Configuration properties

Wireframe

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

featureNew feature or request

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions