Troubleshooting
Use this guide when the AI Code Insights daemon is installed but data is missing, stale, or not matching expectations.
Before you begin
- Run commands on the developer machine: The daemon must run on the same machine where code changes happen.
- Use a monitored repository: The daemon only monitors AI sessions and code changes in repositories whose Git remote matches a repository imported into in your organization’s DX account.
- Push a commit before checking commit data: AI code attribution data is sent to DX when changes are committed and pushed to a branch.
- End the AI session before checking session data: AI session data is sent when the session ends. Session evaluations should appear within 1 hour after the session posts to DX.
Step 1: Confirm the latest version
Run the status command and compare the Version shown against the latest daemon version listed under Admin → AI Code Insights.
On macOS or Linux:
aicodemetricsd status
On Windows (PowerShell):
& "$env:ProgramFiles\AICodeMetrics\aicodemetricsd.exe" status
If the installed version is out of date, install the latest daemon and retry the workflow that is failing.
Step 2: Resolve failed checks
Each check in the status output is marked ✓ (OK), ⚠ (warning), or [FAIL], and failed checks include an inline hint describing how to remediate.
Most failed checks are self-explanatory from the output. A few benefit from additional context:
| Failed check | What to do |
|---|---|
| Service: stopped (after restart) | If the daemon repeatedly stops after restarting, endpoint security software may be terminating it. On macOS, capture launchctl print gui/$(id -u)/com.getdx.aicodemetrics and share with DX support. See Endpoint considerations for processes and paths that may need EDR exclusions. |
| API connectivity | The daemon cannot reach DX or is not authenticated. Confirm the api_url and api_key values match Admin → AI Code Insights. For local config see Configuration; for managed deployments see MDM installation. Also verify HTTPS traffic for the DX API URL is not blocked by a proxy or firewall. |
| Monitored Repositories: no repos found | The daemon has not yet fetched the repository list, or no local repos match repos imported into DX. Restart the daemon to force a fresh fetch. For a repository that should be monitored, run git remote -v in that repo — the origin URL must match the canonical URL in DX. If developers clone from an internal mirror or SSH alias, configure url_rewrites. Repositories nested inside another Git repository are not supported — if a parent directory contains a .git directory, the nested repo will not be discovered. If the issue persists, continue to Step 3. |
| Current data: 0 commits | Expected immediately after install. If the count stays at 0 after using AI in a monitored repo and pushing a commit, continue to Step 3. |
Step 3: Gather logs and escalate
If status shows all checks passing but data is still missing, or if the issue is inaccurate AI attribution, escalate to DX support with the following:
- Full output of
statuscommand (see step 1) - Daemon logs and installer logs (paths below)
- For attribution issues, the problematic commit SHA(s)
Daemon logs are stored here:
| Platform | Path |
|---|---|
| macOS | ~/Library/Logs/AI Code Metrics/aicodemetrics.log |
| Linux | ~/.aicodemetrics/aicodemetrics.log |
| Windows | $env:LOCALAPPDATA\aicodemetrics\aicodemetrics.log |
Installer logs are stored here:
| Platform | Path |
|---|---|
| macOS | /tmp/aicodemetrics-install.log |
| Linux | /tmp/aicodemetrics-install.log |
| Windows | Run msiexec /i <installer>.msi /l*v install.log to capture a log |