AI Telemetry Agent
A local developer telemetry agent for Antigravity AI usage, Git activity, and engineering signals.
Architecture Overview
Developer Interaction
│
▼
Antigravity Lifecycle Hooks (%USERPROFILE%\.gemini\config\hooks.json)
│
▼
AI Telemetry Agent Collector (ai_telemetry_agent)
│
▼
Append-Only Daily JSONL Storage (~/.telemetry_agent/)
Storage Structure
~/.telemetry_agent/
├── identity.json
├── device_id
└── data/
├── telemetry-2026-10-07.jsonl
├── telemetry-2026-10-08.jsonl
└── telemetry-YYYY-MM-DD.jsonl
identity.json(WHO): Local developer identity and hardware metadata (member_id,member_name,device_id,hostname).data/telemetry-YYYY-MM-DD.jsonl(WHAT): Append-only daily JSONL telemetry files named by UTC date. Exactly one valid JSON object per line.
Privacy & Security
The AI Telemetry Agent enforces strict privacy boundaries:
- NO Prompts or Model Responses: Never collects, records, or transmits conversational text or prompts.
- NO Source Code or File Contents: Never collects repository file contents, code diffs, or patch bodies.
- NO Tool Arguments or Command History: Never stores terminal history or tool call parameter values.
- NO Secrets or Credentials: Environment variables, API keys, passwords, and tokens are scrubbed and excluded.
- Metadata Only: Collects only execution metadata (event type, UTC timestamp, session ID, model name, tool name, repository name, branch).
Installation & Setup
1. Install Package
pip install ai-telemetry-agent
2. First-Time Developer Enrollment & Hook Setup
Run the setup command:
telemetry-agent install
When run for the first time, you will be prompted for your name:
========================================
AI Telemetry Agent Setup
========================================
Enter your name: Rahul Sharma
Developer: Rahul Sharma
Device: DELL-LAPTOP-123
Device ID: dev-401e19f040bb
Save this identity? [Y/n]: Y
[OK] Developer identity saved
[OK] Antigravity hooks installed
[OK] Telemetry agent configured
Subsequent runs are idempotent and reuse the saved identity:
========================================
AI Telemetry Agent Setup
========================================
[OK] Telemetry Agent already configured
Developer: Rahul Sharma
Device: DELL-LAPTOP-123
Device ID: dev-401e19f040bb
Member ID: mem-401e19f040
CLI Commands
Agent Status
telemetry-agent status
Displays collector daemon state, local developer identity, device ID, hook installation status, and total recorded events.
View Recent Events
# View last 10 events
telemetry-agent events --last 10
# Filter by event type
telemetry-agent events --type ai_run_started
# Filter by repository
telemetry-agent events --repo chatbot-service
# Output formatted JSON
telemetry-agent events --last 5 --json
View Session Summaries
# Aggregate multi-model sessions across all JSONL logs
telemetry-agent sessions
# Inspect specific session history
telemetry-agent session <session-id>
Repository & Engineering Summary
# Aggregated metrics per repository
telemetry-agent summary
Manage Antigravity Hooks
# Check hook installation status
telemetry-agent hook-status
# Install or repair global hooks
telemetry-agent install-hook
# Uninstall hooks cleanly
telemetry-agent uninstall-hook
Running Tests
Run the full automated test suite:
pytest tests -v
Building Distribution Packages
# Clean previous artifacts and build package
python -m build
# Validate distributions
python -m twine check dist/*
Publishing Packages to PyPI / TestPyPI
Secure publishing is configured via local .env and scripts/publish_pypi.py:
- Configure local
.env(ignored by Git, never committed):TWINE_USERNAME=__token__ TWINE_PASSWORD=
- Build and validate package artifacts:
python -m build python -m twine check dist/*
- Run pre-flight check (Dry Run):
python scripts/publish_pypi.py --dry-run
- Publish:
# Production PyPI: python scripts/publish_pypi.py # TestPyPI: python scripts/publish_pypi.py --repository-url https://test.pypi.org/legacy/
Metadata
Release files for ai-telemetry-agent 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ai_telemetry_agent-0.1.1.tar.gz | 60.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_telemetry_agent-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 109.8 kB
Release files / ai_telemetry_agent-0.1.1.tar.gz
| Download URL | ai_telemetry_agent-0.1.1.tar.gz |
|---|---|
| Size | 60.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e79c88463b55da735f1b71aa37acb66a75be727d934a86f734508297c69cd35
|
|
BLAKE2b-256 checksum How to use checksums |
4cee32cfa3be3e4a6289645dec0acc6108d4c08259c05831b3a6aa24dcafb279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / ai_telemetry_agent-0.1.1-py3-none-any.whl
| Download URL | ai_telemetry_agent-0.1.1-py3-none-any.whl |
|---|---|
| Size | 49.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdd00d8b1be03e313607e9f8846b0ee34feacb54e66de3ef6e1af6434f7198d1
|
|
BLAKE2b-256 checksum How to use checksums |
e11210ffe8d3a626d644bd0a338bc6eed559ea8f4f4a1ba2ab9e826945e94e6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|