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

The installer bundles Watchman at /usr/local/bin/watchman along with shared libraries in /usr/local/lib/. These are not removed during uninstallation because the same paths may be used by Watchman installations from Homebrew or other sources. If the bundled Watchman is the only one on the system, you can remove /usr/local/bin/watchman and /usr/local/var/run/watchman manually.

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

The installer bundles Watchman at /usr/local/bin/watchman (x86_64 only). This is not removed during uninstallation because the same path may be used by other Watchman installations. If the bundled Watchman is the only one on the system, you can remove it manually along with /usr/local/var/run/watchman.