loongsuite-pilot
Health Pass
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 102 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Local-first telemetry collector for AI coding agents — unified OpenTelemetry events for Claude Code, Codex, Cursor and more. Token usage, cost, traces and security audit, exported anywhere.
LoongSuite Pilot
English | 简体中文
Quick Start | Documentation | Agent Onboarding | License
LoongSuite Pilot is a local telemetry collector for AI coding agents. It discovers supported agents on a developer machine, installs the required hooks or plugins, normalizes activity into a shared GenAI event schema, and exports logs or traces to your chosen backends.
Local dashboard — multi-agent collection status, token usage, and reporting health at a glance.
Why LoongSuite Pilot?
Development teams often use more than one AI coding agent, and each agent records activity in a different local format. Pilot gives teams one local collector that can discover those agents, collect their activity, normalize the data, and send it to destinations that are useful for analysis, audit, and observability.
Pilot is designed to answer practical questions:
- Which agents are being used?
- What model, session, turn, and tool activity happened?
- How much token usage is available from each agent?
- Where should the data be exported: local files, SLS, HTTP, or traces?
- How should sensitive prompts, tool arguments, and secrets be controlled before export?
Core Capabilities
| Capability | What Pilot Does |
|---|---|
| Agent discovery | Detects supported agents from local paths and commands. |
| Collection deployment | Installs hooks or plugins and reads local logs, sessions, or data files. |
| Unified event schema | Normalizes agent-native events into a shared GenAI schema. |
| Multi-destination output | Exports to JSONL, Alibaba Cloud SLS, HTTP, and OTLP trace backends. |
| Privacy controls | Supports per-agent content capture policy and secret masking before output. |
| Local operations | Provides service status, restart, rollback, and optional local dashboard commands. |
Supported Agents
| Agent | Integration | Trace Export | Log Export | Token Usage | Conversation / Tool Calls |
|---|---|---|---|---|---|
| Claude Code | Hook | Yes | Yes | Yes | Yes |
| Codex | Hook | Yes | Yes | Yes | Yes |
| Cursor | Hook | Yes | Yes | Yes | Yes |
| Cursor CLI | Shared Cursor hook | Yes | Yes | Yes | Yes |
| Hermes Agent | Native directory plugin | Yes | Yes | Yes | Yes |
| Kiro CLI | Hook / session polling | Yes | Yes | No | Yes |
| MiMo Code | Plugin injection | Yes | Yes | Yes | Yes |
| OpenClaw | Plugin injection | Yes | Yes | Yes | Yes |
| OpenCode | Plugin injection | Yes | Yes | Yes | Yes |
| Pi Coding Agent | Extension injection | Yes | Yes | Yes | Yes |
| Qoder | Hook | Yes | Yes | Yes | Yes |
| Qoder CN | Hook | Yes | Yes | Yes | Yes |
| Qoder for JetBrains | Detection-only | Yes | Yes | Yes | Yes |
| Qoder CLI | Hook / session polling | Yes | Yes | Yes | Yes |
| Qoder Work | Hook / local data polling | Yes | Yes | Yes | Yes |
| Qoder Work CN | Hook / local data polling | Yes | Yes | Yes | Yes |
| Qwen Code CLI | Hook | Yes | Yes | Yes | Yes |
| Wukong | CLI API polling | Yes | Yes | Yes | Yes |
| WorkBuddy | Hook wakeup + local transcript watch/poll fallback | Yes | Yes | Yes | Yes |
OpenClaw integration requires OpenClaw 2026.5.12 or later.
Documented Windows Agent Support
The table above describes Pilot's general integration capabilities; it does not imply that every agent is supported on every operating system. The following agents are currently explicitly documented as supported on Windows:
| Agent | Windows Integration | Trace Export | Log Export | Token Usage | Conversation / Tool Calls | Requirement |
|---|---|---|---|---|---|---|
| Claude Code | Hook | Yes | Yes | Yes | Yes | — |
| Cursor | Hook | Yes | Yes | Yes | Yes | — |
| Qoder Work | Hook / local data source | Yes | Yes | No | Yes | User edition |
| Qoder CLI | Hook | Yes | Yes | No | Yes | — |
| Qoder IDE | Hook / local data source | Yes | Yes | Yes | Yes | Qoder 1.10.0 or later, User edition |
| OpenCode | Plugin injection | Yes | Yes | Yes | Yes | — |
| WorkBuddy | Hook wakeup + local transcript | Yes | Yes | Yes | Yes | WorkBuddy Desktop 5.3.5.0; Windows 11 installed-product E2E |
Agents omitted from this Windows table do not currently have an explicit Windows support statement; omission does not necessarily mean that the agent cannot run on Windows. See the Alibaba Cloud AI Coding Agent access guide for the source support matrix and Installation for Windows prerequisites and setup.
Agent definitions live in agents.d/. You can add new agents without changing the deployment framework; see Agent Onboarding.
Quick Start
Prerequisites:
- Node.js 18 or later
npmcurlorwget- PowerShell 5.1 or later on Windows
Install from the public package on Linux or macOS:
curl -fsSL https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.sh -o /tmp/loongsuite-pilot-installer.sh && bash /tmp/loongsuite-pilot-installer.sh install
Install from the public package on Windows:
$installer = "$env:TEMP\loongsuite-pilot-installer.ps1"
Invoke-WebRequest `
-Uri "https://loongcollector-community-edition.oss-cn-shanghai.aliyuncs.com/loongsuite-pilot/installer.ps1" `
-OutFile $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer install
Verify the service:
loongsuite-pilot status
loongsuite-pilot info
Local JSONL output is enabled by default under ~/.loongsuite-pilot/logs/output/ on Linux/macOS and %USERPROFILE%\.loongsuite-pilot\logs\output\ on Windows.
For installer options, uninstall commands, and source builds, see Installation.
Configure Pilot
Configuration is loaded in this order: environment variables, then ~/.loongsuite-pilot/config.json, then built-in defaults.
Start with the guide that matches what you want to change:
| Task | Guide |
|---|---|
| Choose agents and content capture policy | Agent Configuration |
| Write local JSONL logs | Local JSONL Output |
| Report logs to SLS | SLS Output |
| Report OTLP traces | Trace Output |
| POST events to HTTP | HTTP Output |
| Mask secrets before output | Data Masking |
| See global config loading and retention settings | Configuration Guide |
Upstream Trace Linking (optional)
Link collected agent spans to an upstream trace so each turn's span tree reparents under the upstream span. Disabled by default, and fully fail-open (never affects normal collection/reporting).
| Setting | Values | Default |
|---|---|---|
LOONGSUITE_PILOT_UPSTREAM_LINK (env) · upstreamLink.enabled (config.json) |
true / 1 to enable; unset, false, or 0 to disable |
disabled |
LOONGSUITE_PILOT_UPSTREAM_LINK_PROPAGATE_TO_TOOLS (env) · upstreamLink.propagateToTools (config.json) |
propagate the first-turn upstream context to supported CLI tool calls | disabled |
LOONGSUITE_PILOT_UPSTREAM_LINK_TTL_MS (env) · upstreamLink.ttlMs (config.json) |
cleanup TTL in ms for acp-correlate files |
86400000 (24h) |
When enabled, the upstream traceparent reaches Pilot via one of two schemes and is stamped onto collected records (trace_id on the turn, parent_span_id on the user-input event):
- Correlation file (per-turn): the caller writes
{sessionId, contentHash, contentPrefix, traceparent}to~/.loongsuite-pilot/acp-correlate/<sessionId>.jsonlwhen it sends a prompt. Linking is protocol-agnostic — the only requirement is thatsessionIdmatches thegen_ai.session.idPilot collects for that turn, and the content (hash or prefix) matches the collected user text. ACP clients satisfy this naturally (thesession/newid flows into collection), so ACP is the primary case. - Environment (
TRACEPARENTon the agent process): applied to the session's first turn, via the agent's hook. Use this when the caller cannot obtain a per-turnsessionIdup front.
For Claude Code, enabling both upstream linking and propagateToTools also passes the first turn's context into main-agent Bash calls. Pilot's PreToolUse(Bash) hook reserves the TOOL span id, prepends TRACEPARENT (and valid TRACESTATE, when present) to the Bash command, then reuses that id when the Stop hook builds the TOOL span. The downstream CLI must read these environment variables and configure its own trace exporter. This initial scope is fail-open and does not cover subagents, PowerShell, MCP tools, later turns, or resumed sessions with a newly supplied context.
Output Data
| Backend | Use Case |
|---|---|
| JSONL | Local backup and easy inspection. Enabled by default. |
| SLS | Alibaba Cloud Log Service reporting. Supports WebTracking, AK, and API Key modes. |
| HTTP | POST batches to a custom endpoint. |
| OTLP Trace | Export GenAI activity as OpenTelemetry traces. |
LoongSuite Pilot emits a normalized GenAI event schema across all supported agents. See Output Event Schema for event names, field definitions, provider values, finish reasons, and sensitivity notes for opt-in content fields.
Operate Pilot
Use the loongsuite-pilot command after installation:
loongsuite-pilot start
loongsuite-pilot stop
loongsuite-pilot restart
loongsuite-pilot status
loongsuite-pilot info
loongsuite-pilot token-usage
loongsuite-pilot rollback
Optional local dashboard:
loongsuite-pilot monitor start
Then open http://127.0.0.1:8765/.
macOS menu bar app:
On macOS, Pilot automatically runs a menu bar app after installation — no extra command needed. It shows live token, session, request, and tool counts, plus per-agent and per-provider breakdowns, so you can keep an eye on activity without opening the dashboard.
To disable it, set LOONGSUITE_PILOT_ENABLE_STATUS_BAR_APP=false or add "enableStatusBarApp": false to ~/.loongsuite-pilot/config.json.
Documentation
User Manual - Complete guide to installing, configuring, operating, and extending Pilot
Installation Guide - Install from package, verify service, uninstall, and run from source
Configuration Reference - Global config loading, runtime switches, retention, and links to output and privacy setup
Output Schema - Normalized event names, fields, provider values, and finish reasons
Developer Guide - Add support for a new AI coding agent
Build From Source
git clone https://github.com/alibaba/loongsuite-pilot.git
cd loongsuite-pilot
npm install
npm run build
node scripts/postinstall.js
node dist/index.js
For local development:
npm install
npm run build
npm run typecheck
npm test
For packaging and service installation from a local build, see Installation.
Community
We are looking forward to your feedback and suggestions. Scan the QR code below to join the LoongSuite Pilot DingTalk group.
| LoongSuite Pilot SIG |
|---|
![]() |
Related Projects
- LoongCollector - Universal node agent for log, metric and eBPF-based collection
- LoongSuite JS - OpenTelemetry instrumentation plugins for JS-based AI coding agents
- LoongSuite Python - Process agent for Python applications
- LoongSuite Go - Process agent for Golang with compile-time instrumentation
- LoongSuite Java - GenAI telemetry utility library for Java applications
License
Apache License 2.0 - see LICENSE for details.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found
