Don’t get me wrong defining custom commands in ajson file is nice and the structure is simple. But, when you start tuning prompts and they become larger, tweaking it in a single-line string isn’t ideal and a little tedious. Especially when you start including output examples into the prompts.
The feature request is to support other files types for the config file, like YAML (cody.yaml or cody.yml). This would allow for multi-line viewing and management of prompt text blocks.
Thank you for reporting! I agree with you, writing prompts in JSON files is tedious.
We are working on a new system to write and manage shared prompts, which does not require writing in JSON files
The initial version is focused on editing prompts in the Sourcegraph web UI. A future version may add support to define prompts in something like markdown files YAML config in frontmatter blocks at the top of the file.