Skip to main content

Harness AI DLC Agent

Last updated on

The Harness AI DLC Agent is a lightweight, user-space daemon installed on developer workstations to collect telemetry data from AI coding tools such as Claude Code, Cursor, and GitHub Copilot. It correlates this telemetry with git activity and transmits it to the AI Engineering Insights dashboard, where engineering leaders can measure AI coding tool adoption, optimize token spend, and quantify the impact of AI on software delivery.

AI Engineering dashboard The AI Engineering dashboard displaying metrics such as session tracking, token spend, commit attribution, ship rate, and error rate.

Supported coding agents

The following coding agents/tools are supported for the Harness AI DLC Agent to capture usage and session level telemetry data.

  • Claude Code
    • Claude Code via Bedrock/Vertex/other Cloud vendors
    • Claude Code CLI
  • GitHub Copilot
    • Copilot CLI
    • Copilot on any IDE (Agent mode only)

Scope of data collection

Always collected (metadata)Configurable (off by default)Never collected
Token counts (input, output, cache)Prompt contentCode content or file contents
Tool usage events and session durationsAI response contentCredentials or secrets
AI vs. human line attribution counts
Cost estimates
Session details (tool, duration, timestamps)
info

Prompt and AI response collection is disabled by default. An administrator can enable it during MDM deployment. When disabled, only metadata (token counts, tool usage, attribution) is transmitted.

Security

Individual developers do not need to take action beyond having the agent installed and running, which is handled via MDM deployment (IT/EngOps owned). The agent runs in the background and captures signals from AI coding tool activity.

Go to Data Security to review the full list of collected data types and security controls.

Prerequisites

  • Operating system: macOS 12+ (Monterey or later), Intel or Apple Silicon. Windows support is coming soon.
  • Privileges: Standard user account. No admin or root required for operation.
  • Network: Outbound HTTPS to *.harness.io on port 443.
  • Harness account: Active Harness account with the AI Engineering Insights module enabled.

Install the agent

Step 1: Generate an API token

  1. Sign in to your Harness account and navigate to the AI Engineering Insights module.
  2. On the Insights page, select Download Agent to open the setup panel.
  3. In the setup panel, select Generate Token. This token is scoped to your organization and limits the agent to telemetry-write operations only.
  4. Copy the token and store it securely. You need it for the MDM installation script.

AI DLC Agent - API token

Step 2: Download the agent binary

In the setup panel, select the download option for the operating system used by developers in your organization. The agent is distributed as a signed, versioned binary for macOS (arm64 and x64).

Step 3: Install the agent

Organization administrators distribute the agent to developer machines using MDM (Mobile Device Management). The installation script performs the following steps:

StepActionDetails
1Distribute install script and binaryMDM deploys harness-aidlc-agent-macos-arm64-install.sh and the signed binary package to the target device.
2Inject configuration parametersMDM passes the endpoint, integration ID, and token to the installer as script arguments.
3Verify binary integrityThe script verifies the SHA-256 checksum before proceeding.
4Store token in KeychainThe script stores the API token in the macOS System Keychain. Tokens are never written to disk.
5Write configurationThe script creates ~/.harness-aidlc-agent/config.json containing the endpoint and integration ID.
6Install binaryThe agent binary is placed at /usr/local/bin/harness-aidlc-agent.
7Register LaunchAgentThe script creates a LaunchAgent plist at ~/Library/LaunchAgents/com.harness.aidlc-agent.plist.
8Start daemonThe LaunchAgent starts the daemon automatically, initiating telemetry collection.

Required parameters:

  • --endpoint: The Harness telemetry endpoint URL.
  • --integration-id: Your organization's integration identifier.
  • --token: The scoped API token generated in Step 1.

Optional parameters:

  • --checksum: SHA-256 hash for binary verification.
  • --disable-metrics: Comma-separated list of metric types to disable.

Deployment artifacts

ArtifactLocationPurpose
Binary/usr/local/bin/harness-aidlc-agentDaemon executable.
LaunchAgent~/Library/LaunchAgents/com.harness.aidlc-agent.plistStarts the agent automatically on user login.
Configuration~/.harness-aidlc-agent/config.jsonStores the endpoint and integration ID.
Telemetry cache~/.harness-aidlc-agent/telemetry/Local queue for telemetry data before upload.
Audit log~/.harness-aidlc-agent/send.logRecords telemetry transmission activity.
IPC socket~/.harness-aidlc-agent/socketInter-process communication with 0600 permissions.
Git hooks.git/hooks/post-commitPer-repository attribution triggered on commit events.
Keychain entriesmacOS System KeychainStores the API key securely.

Verify the installation

Run the following command to confirm the agent is running:

launchctl list | grep harness.aidlc

If the agent is running, you see a line with com.harness.aidlc-agent and a process ID. A 0 exit status in the second column indicates the agent started successfully.

To view recent telemetry activity, check the audit log:

tail -20 ~/.harness-aidlc-agent/send.log

Diagnostics

The Diagnostics tab in the AI Engineering Insights module displays the health and status of all machines where the agent was installed. When a new version of the agent is available, download and redeploy it from this tab. Harness recommends keeping agents up to date to ensure accurate telemetry collection and access to new capabilities.

Monitor rollout stats

AI DLC Agent - Monitoring

The Developer Installations table lists every developer machine with the agent installed. Use this table to verify coverage, identify machines on outdated versions, and audit installation timestamps.

ColumnDescription
NameDeveloper display name.
EmailDeveloper email address.
VersionAgent version installed on this machine.
Installation timeDate and time the agent was installed or last updated.
Last sessionMost recent timestamp when the agent reported AI coding tool activity. A stale date may indicate the agent has stopped or the developer has not used any coding tools recently.

To filter by a specific agent version, use the All Versions dropdown above the table. To export the list, select Download CSV.

Troubleshooting

A developer is missing from the AI Engineering dashboard

Verify the agent is installed on their machine by running launchctl list | grep harness.aidlc. Check the Last session timestamp in the Developer Installations table. If the agent has not reported in, reinstall using the MDM package.

A developer appears in the dashboard but shows no AI activity

The agent is running but has not detected any AI coding tool sessions. Confirm the developer has an active AI coding tool (such as Claude Code or Cursor) installed and has used it within the selected time range.

The agent is installed but launchctl shows no process

The LaunchAgent may not have loaded. Run the following command to start it manually:

launchctl load ~/Library/LaunchAgents/com.harness.aidlc-agent.plist

If the plist file does not exist, reinstall the agent via MDM.

Telemetry data is not appearing in the dashboard

Check network connectivity to *.harness.io on port 443. Review ~/.harness-aidlc-agent/send.log for transmission errors. The agent queues data locally in ~/.harness-aidlc-agent/telemetry/ when the network is unavailable and retries automatically when connectivity is restored.