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-hooksbefore 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-hooksbefore uninstalling. If the binary has already been removed, remove hook entries manually from each agent’s settings.
Uninstall the daemon:
- Open Settings (press
Windows+I). - Go to Apps → Installed apps.
- Search for AI Code Insights.
- Click the three-dot menu next to the app.
- 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-hooksbefore 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