Uninstallation

Complete steps for removing the AI Code Insights daemon, hooks, and local data from developer machines.

macOS

Note: These steps can be run by a developer on their own machine, or executed remotely via an MDM tool (Jamf, Kandji, Intune) using a remote shell or script-execution policy.

Remove hooks from agent configurations first:

aicodemetricsd uninstall-hooks

Note: Run aicodemetricsd uninstall-hooks before removing the binary. If the binary has already been removed, remove hook entries manually from each agent’s settings.

Stop and remove the service:

launchctl unload ~/Library/LaunchAgents/com.getdx.aicodemetrics.plist
rm ~/Library/LaunchAgents/com.getdx.aicodemetrics.plist

Remove the binary:

sudo rm /usr/local/bin/aicodemetricsd

Tell macOS the package is no longer installed:

sudo pkgutil --forget com.getdx.aicodemetrics

Optionally, delete local data and logs:

rm -rf ~/.aicodemetrics
rm -rf ~/Library/Logs/AI\ Code\ Metrics

Windows

Remove hooks from agent configurations first:

aicodemetricsd uninstall-hooks

Note: Run aicodemetricsd uninstall-hooks before uninstalling. If the binary has already been removed, remove hook entries manually from each agent’s settings.

Uninstall the daemon:

  1. Open Settings (press Windows + I).
  2. Go to AppsInstalled apps.
  3. Search for AI Code Insights.
  4. Click the three-dot menu next to the app.
  5. Select Uninstall and confirm.

Optionally, delete local data:

Remove-Item -Recurse -Force "$env:LOCALAPPDATA\aicodemetrics"

Linux

Remove hooks from agent configurations first:

aicodemetricsd uninstall-hooks

Note: Run aicodemetricsd uninstall-hooks before removing the binary. If the binary has already been removed, remove hook entries manually from each agent’s settings.

Stop and remove the service:

systemctl --user stop com.getdx.aicodemetrics
systemctl --user disable com.getdx.aicodemetrics
rm ~/.config/systemd/user/com.getdx.aicodemetrics.service
systemctl --user daemon-reload

Remove the binary:

sudo rm /usr/local/bin/aicodemetricsd

Optionally, delete local data:

rm -rf ~/.aicodemetrics