reset-kilocode-state.sh 703 B

12345678910111213141516
  1. #!/bin/sh
  2. echo "Kilocode state is being reset. This probably doesn't work while VS Code is running."
  3. # Reset the secrets:
  4. sqlite3 ~/Library/Application\ Support/Code/User/globalStorage/state.vscdb \
  5. "DELETE FROM ItemTable WHERE \
  6. key = 'kilocode.kilo-code' OR \
  7. key LIKE 'workbench.view.extension.kilo-code%' OR \
  8. key LIKE 'secret://{\"extensionId\":\"kilocode.kilo-code\",%';"
  9. # delete all kilocode state files:
  10. rm -rf ~/Library/Application\ Support/Code/User/globalStorage/kilocode.kilo-code/
  11. # clear some of the vscode cache that I've observed contains kilocode related entries:
  12. rm -f ~/Library/Application\ Support/Code/CachedProfilesData/__default__profile__/extensions.user.cache