cody使ってみる

cody が良いという評判を聞いたので使ってみる

コーディングAI課金するならCodyが断トツ良い話
https://zenn.dev/sanami/articles/7c24ce973b7e7c

vimには codeiumgithub copilot を設定しているので補完AIはもう要らない
CLIを設定してみる

マニュアル
https://sourcegraph.com/docs/cody/clients/install-cli

ここからアクセストークンを発行
https://sourcegraph.com/users/gitlab-etjbc/settings/tokens

環境変数に設定

export SRC_ACCESS_TOKEN=sgp_xxxxxxxxxxxxxxxxxxxxxx

インストール

npm install -g @sourcegraph/cody
cody auth whoami

こんな感じで使える

cody chat -m 'Explain React hooks'
git diff | cody chat --stdin -m 'Write a commit message for this diff'
cody chat --context-file src/controller.ts -m 'Are there code smells in this file?'

ターミナルから使えて良いかもしれない