Tencent / Tencent/teamai-cli

[feat] Add Copilot usage, sessions, and dashboard telemetry

Open
#612 1 comment 1 reaction 1 assignee View on GitHub

@ousamabenyounes is already working on this.

Since Sep 17, 2026.

enhancement
Dominant language
TypeScript
Stars
4.8k
Forks
342
Avg merge
13h 48m
Merged PRs (30d)
211

Description

Context

Follow-up to #549 and merged PR #601. Copilot hooks are installed, but the support matrix still leaves usage, sessions, and dashboard unimplemented because the Copilot event and usage payloads have not been validated end to end.

Scope

  • Map official Copilot hook events and tool payloads into TeamAI usage and session events.
  • Record skill usage, session lifecycle, tool activity, and privacy-safe aggregates.
  • Determine token usage from an official supported payload or local Copilot session storage without recording prompt contents.
  • Feed the existing TeamAI dashboard and reports; do not create a Copilot-only dashboard.

Acceptance criteria

  • RED to GREEN tests cover event mapping, stable session IDs, skill usage, lifecycle aggregation, redaction, and missing-token fallback.
  • A real authenticated Copilot CLI session produces usage, session, and dashboard records.
  • No prompt text, secrets, or unrelated Copilot data are persisted.
  • Full local CI and bilingual documentation are green.

This is a separate child delivery of #549 because telemetry has a distinct privacy and payload-validation contract.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.