Use LoongSuite Pilot to connect AI Coding Agent data from developer machines to AgentLoop. After onboarding, you can analyze sessions, model calls, tool calls, token usage, logs, and trace data in AgentLoop.
Overview of LoongSuite Pilot
LoongSuite Pilot is a lightweight collector that runs on developer machines. It automatically discovers installed AI Coding Agents and deploys the required hooks or plugins. LoongSuite Pilot normalizes raw activity data from different agents into a unified event format and reports the data to the log or trace backend used by AgentLoop.
Scenarios
When your team uses AI Coding Agents such as Claude Code, Codex, Cursor, or Qoder for daily development, you can use LoongSuite Pilot to collect client-side activity data for the following scenarios:
View which AI Coding Agents are being used across the team.
Analyze sessions, model calls, tool calls, and error events.
Track token usage broken down by agent.
Investigate agent runtime behavior through log queries, trace links, or custom interfaces.
Filter sensitive content such as prompts, completions, and tool parameters before data is reported.
Supported AI Coding Agents
The following tables list the agents and data collection capabilities supported by LoongSuite Pilot on Linux / macOS and Windows, respectively.
Linux / macOS Support
AI Coding Agent | Integration Method | Trace Reporting | Log Reporting | Token Collection | Session and Tool Call Collection |
Claude Code | Hook | Supported | Supported | Supported | Supported |
Codex | Hook | Supported | Supported | Supported | Supported |
Cursor | Hook | Supported | Supported | Supported | Supported |
Cursor CLI | Reuses the Cursor hook | Supported | Supported | Supported | Supported |
DeepSeek Harness | YAML patch plugin / local JSONL polling | Supported | Supported | Supported | Supported |
Grok Build | Hook / local session logs | Supported | Supported | Supported | Supported |
Hermes Agent | Native directory plugin | Supported | Supported | Supported | Supported |
Kiro CLI | Hook / session polling | Supported | Supported | Not supported | Supported |
MiMo Code | Plugin injection | Supported | Supported | Supported | Supported |
OpenClaw | Plugin injection | Supported | Supported | Supported | Supported |
OpenCode | Plugin injection | Supported | Supported | Supported | Supported |
Pi Coding Agent | Extension injection | Supported | Supported | Supported | Supported |
Qoder | Hook | Supported | Supported | Supported | Supported |
Qoder CN | Hook | Supported | Supported | Supported | Supported |
Qoder for JetBrains | Detection only; reuses the Qoder collection pipeline | Supported | Supported | Supported | Supported |
Qoder CLI | Hook / session polling | Supported | Supported | Supported | Supported |
Qoder Work | Hook / local data polling | Supported | Supported | Supported | Supported |
Qoder Work CN | Hook / local data polling | Supported | Supported | Supported | Supported |
Qwen Code CLI | Hook | Supported | Supported | Supported | Supported |
Qwen Work CN | Hook / local data polling | Supported | Supported | Supported | Supported |
Wukong | CLI API polling | Supported | Supported | Supported | Supported |
WorkBuddy | Hook trigger / local session listening with polling fallback | Supported | Supported | Supported | Supported |
OpenClaw integration supports OpenClaw 2026.3.8 or later. Versions earlier than 2026.5.12 use compatibility mode, and model call timing is inferred.
Token usage depends on the data that the source agent actually provides. The current Kiro CLI data source does not provide token usage.
Windows Support
AI Coding Agent | Integration Method | Trace Reporting | Log Reporting | Token Collection | Session and Tool Call Collection | Conditions |
Claude Code | Hook | Supported | Supported | Supported | Supported | - |
Cursor | Hook | Supported | Supported | Supported | Supported | - |
Qoder Work | Hook / Local data source | Supported | Supported | Not supported | Supported | User version |
Qoder CLI | Hook | Supported | Supported | Not supported | Supported | - |
Qoder IDE | Hook / Local data source | Supported | Supported | Supported | Supported | Qoder 1.10.0 or later, User version |
Qwen Work CN | Hook / Local data source | Supported | Supported | Supported | Supported | - |
OpenCode | Plugin injection | Supported | Supported | Supported | Supported | - |
WorkBuddy | Hook trigger / local session collection | Supported | Supported | Supported | Supported | WorkBuddy Desktop 5.3.5.0; end-to-end verified with the Windows 11 installer |
Agents that are not listed in this table currently have no explicit Windows support statement. Being unlisted does not necessarily mean that an agent cannot run on Windows.
Prerequisites
Before you begin, make sure that the following general requirements are met:
The target AI Coding Agent is installed and has been used at least once.
The AI Coding Agent onboarding resources have been initialized in the AgentLoop console, and you have obtained the auto-generated installation command.
macOS / Linux
Make sure that the following requirements are also met on your machine:
You usually do not need to pre-install Node.js or npm. The installer downloads and pins a managed Node.js runtime and prebuilt dependencies.
curl or wget is installed.
You can access the OSS download URLs in the installation command.
Windows
Make sure that the following requirements are also met on your machine:
Windows 10 or later.
PowerShell 5.1 or later.
You usually do not need to pre-install Node.js or npm, and you can access the OSS download URLs in the installation command.
Fallback: If the managed Node.js runtime is unavailable because the platform is not supported or the download fails, the installer falls back to the system Node.js. In this case, Node.js 18 or later and npm must be installed.
Known platform limits: Windows ARM64 and Linux distributions that use musl (for example, Alpine) currently have no matching managed Node.js artifact. On these platforms, prepare system Node.js 18 or later and npm in advance.
Install LoongSuite Pilot
For AgentLoop users, we recommend that you copy the installation command auto-generated in the AgentLoop console. The resource names and connection parameters in the command (except true and false) are generated automatically during onboarding resource initialization.
Obtain the CMS and SLS parameter values from the AgentLoop console.
macOS / Linux
# Run the installation command. Replace all parameter values with the ones obtained above.
curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh install \
--collect-log "true" \
--collect-trace "true" \
--sls-project "your_SLS_Project_name" \
--sls-logstore "your_SLS_Logstore_name" \
--sls-endpoint "your_SLS_endpoint" \
--cms-license-key "your_Trace_License_Key" \
--cms-endpoint "your_Trace_endpoint" \
--cms-workspace "your_Trace_workspace" \
--service-name-prefix "your_service_name_prefix"Windows
# Download the installer script
Invoke-WebRequest `
-Uri 'https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.ps1' `
-OutFile installer.ps1
# Run the installer. Replace all parameter values with the ones obtained above.
.\installer.ps1 install `
-CollectLog 'true' `
-CollectTrace 'true' `
-SlsProject "your_SLS_Project_name" `
-SlsLogstore "your_SLS_Logstore_name" `
-SlsEndpoint "your_SLS_endpoint" `
-CmsLicenseKey "your_Trace_License_Key" `
-CmsEndpoint "your_Trace_endpoint" `
-CmsWorkspace "your_Trace_workspace" `
-ServiceNamePrefix "your_service_name_prefix"The installer automatically performs the following operations:
Detects the AI Coding Agents supported on your machine.
Allows you to select the agents whose data you want to collect.
Deploys the corresponding hooks or plugins.
Writes the local configuration.
Starts the LoongSuite Pilot background service.
After the installation is complete, run the following commands to check the service status:
loongsuite-pilot status
loongsuite-pilot infoBy default, LoongSuite Pilot writes local configuration, runtime status, and JSONL collection results to the .loongsuite-pilot directory under the current user's home directory. The default paths are as follows:
Purpose | macOS / Linux | Windows |
Data root directory |
|
|
Configuration file |
|
|
Local JSONL output directory |
|
|
Agent access control file |
|
|
Manage LoongSuite Pilot
The local dashboard starts and stops together with the LoongSuite Pilot collection service. You do not need to run a separate monitor command. After the collection service starts, open the following default address. If you configured a custom port, replace 8765 with that port:
http://127.0.0.1:8765/
To uninstall LoongSuite Pilot and retain local data, run the following command:
macOS / Linux:
curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh uninstallWindows:
.\installer.ps1 uninstallTo remove both installation files and local data, run the following command:
macOS / Linux:
curl -fsSL https://aliyun-observability-release-cn-shanghai.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh uninstall --purgeWindows:
.\installer.ps1 uninstall -PurgeConfigure Agent Collection
After installation, you can control whether to collect data from a specific AI Coding Agent by modifying the agents section in the local configuration file. The default configuration file path is as follows:
OS | Configuration file path |
macOS / Linux |
|
Windows |
|
{
"agents": {
"claude-code": {
"enabled": true
},
"cursor": {
"enabled": true
},
"qoder": {
"enabled": false
}
}
}Configuration | Description |
| Enables data collection for this agent. LoongSuite Pilot still checks whether the corresponding data source exists on your machine. |
| Disables data collection for this agent. |
For example, to collect data from Claude Code and Cursor but disable Qoder, use the configuration shown above. After you modify the configuration, restart LoongSuite Pilot:
loongsuite-pilot restartConfigure Data Masking
LoongSuite Pilot can mask common credentials and personal sensitive data in normalized events before they are sent to the output backend. Masking applies to scenarios in which prompts, completions, tool parameters, or tool results may contain credentials or personal sensitive data.
To enable or adjust the masking policy, modify the local configuration file. The default configuration file path is as follows:
OS | Configuration file path |
macOS / Linux |
|
Windows |
|
To enable all masking rules:
{
"mask": {
"mode": "all"
}
}To enable only specific masking rules:
{
"mask": {
"mode": "custom",
"types": [
"apiKey",
"idCard",
"phone",
"email",
"ipAddress",
"bankCard"
]
}
}In logs that contain a large number of purely numeric business identifiers, phone number and bank card detection may match data of the same shape. In this case, use the custom mode and enable only the types that you need.
The following table describes the masking modes.
Mode | Description |
| No masking is applied. This is the default mode when the mask mode is not configured. |
| Enables all built-in sensitive data rules. |
| Enables only the masking types listed in |
The following table describes the masking types.
Type | Coverage | Replacement Marker |
| AccessKey IDs in Alibaba Cloud, AWS, or Tencent Cloud format. |
|
| OpenAI-compatible and common platform API keys. |
|
| PEM or OpenSSH private key blocks. |
|
| Database URLs that contain passwords. |
|
| Strictly validated 18-digit Chinese mainland ID card numbers. |
|
| Chinese mainland mobile numbers and landline numbers. |
|
| Common ASCII email addresses. |
|
| IPv4 addresses, including public and private addresses. |
|
| High-confidence bank card numbers that pass issuer prefix and Luhn checks. |
|
LoongSuite Pilot primarily scans fields that may contain user or tool content, such as:
LLM input and output messages.
Tool call parameters.
Tool call results.
Known agent content fields.
Stable metadata such as model names, token counts, latency, Git branches, and workspace paths are not scanned as credential content fields.
After you modify the configuration, run the following command to restart LoongSuite Pilot:
loongsuite-pilot restartVerify the Onboarding Result
After installation or configuration changes, follow these steps to verify that the onboarding is successful.
If the collection status is abnormal after you restart LoongSuite Pilot, run loongsuite-pilot start to start collection manually.
Check the Local Service Status
loongsuite-pilot status
loongsuite-pilot infoCheck the Local Collection Output
macOS / Linux:
ls ~/.loongsuite-pilot/logs/output
tail -f ~/.loongsuite-pilot/logs/output/*.jsonlWindows:
Get-ChildItem "$env:USERPROFILE\.loongsuite-pilot\logs\output"
Get-ChildItem "$env:USERPROFILE\.loongsuite-pilot\logs\output\*.jsonl" |
Sort-Object LastWriteTime |
Select-Object -Last 1 |
Get-Content -WaitIf new events appear in the local output directory, the AI Coding Agent collection pipeline is working.
Check the AgentLoop Console
After you trigger a new AI Coding Agent activity, go back to the AgentLoop console to check the data status of the corresponding onboarding task. Data arrival may be delayed due to local batch sending and backend processing.
Verify Agent Collection
If the expected agent has no data, check the following:
Make sure that the target agent is installed and has been used at least once.
Make sure that the agent is not set to
offin the agent access control file. The default path is~/.loongsuite-pilot/agent-control.jsonon macOS/Linux andC:\Users\<username>\.loongsuite-pilot\agent-control.jsonon Windows.Make sure that the agent is not set to
"enabled": falsein the configuration file. The default path is~/.loongsuite-pilot/config.jsonon macOS/Linux andC:\Users\<username>\.loongsuite-pilot\config.jsonon Windows.After you modify the configuration, run
loongsuite-pilot restart.Trigger a new agent activity and then check the local output or the AgentLoop console.
FAQ
What do I do if the expected agent is not found?
Make sure that the target agent is installed, has been used at least once, and is not disabled in agent-control.json or config.json. After you modify the configuration, run loongsuite-pilot restart. On macOS/Linux, the default configuration directory is ~/.loongsuite-pilot/. On Windows, the default directory is C:\Users\<username>\.loongsuite-pilot\.
What do I do if there is no new data locally?
Make sure that LoongSuite Pilot is running. After the service starts, trigger a new AI Coding Agent activity and then check the local JSONL output directory. The default path is ~/.loongsuite-pilot/logs/output/ on macOS/Linux and C:\Users\<username>\.loongsuite-pilot\logs\output\ on Windows.
What do I do if there is no data in the AgentLoop console?
First, check whether new events exist in the local output. If local events exist but are not displayed in the console, refresh the console later or verify that the installation command corresponds to the current AgentLoop onboarding task.
How do I enable data masking?
Modify the mask section in the local configuration file, save the file, and then run loongsuite-pilot restart. The default configuration file path is ~/.loongsuite-pilot/config.json on macOS/Linux and C:\Users\<username>\.loongsuite-pilot\config.json on Windows.