sourcegraph / cody

AI that knows your entire codebase
https://cody.dev
Apache License 2.0
2.22k stars 213 forks source link

Agent: Add custom commands list API #4715

Closed abeatrix closed 3 days ago

abeatrix commented 3 days ago

This change adds a new API endpoint customCommands/list that allows clients to retrieve a list of available custom commands stored in the local .cody/commands.json file. This is used to populate the list of custom commands in the Cody UI acrooss IDEs.

The changes include:

Test plan

Verified the new API works by porting it to the cli tool (for testing only, the code has been removed):

image

This is just to add the missing piece to the Agent API. Custom Commands is currently not integrated into other clients atm.