Repository navigation
ai-dev v1.3.0
ai-dev v1.3.0
Production release of ai-dev-cli-tools v1.3.0 introducing voluntary, privacy-preserving Community Telemetry alongside the self-contained production backend Collector, extended multi-matrix CI validation, and performance hardening.
Published on PyPI: https://pypi.org/project/ai-dev-cli-tools/1.3.0/
Community Telemetry
Community Telemetry is a voluntary, opt-in layer designed to gather real-world benchmark metrics for AI coding-agent workflows:
- Strictly Opt-in & Default OFF: Telemetry is completely disabled by default. Installing or upgrading
ai-devnever enables telemetry automatically. - Privacy-Preserving Strict Allowlist: Source code, file names, paths, repository names, prompts, model completions, user IDs, device fingerprints, and API keys are never collected or transmitted.
- Three Transparent Levels:
OFF: Nothing is collected, queued, or sent (zero network traffic).BASIC: Minimal operational metrics (command name, category, duration bucket, exit outcome, OS family, Python version).RESEARCH:BASICmetrics plus model provider usage (model name, token counts, task outcome, repository size bucket).
- Preview Before Sharing: Full transparency via
ai-dev telemetry sharing preview(shows exact queued fields) andai-dev telemetry sharing preview --sample. - Bounded Local Queue: Spools up to 1,000 events locally with automatic 7-day retention pruning and 32 KB per-event limit.
- Single-Flight Non-Blocking Background Flush: Detached daemon thread transport with bounded 50 ms shutdown wait; network failures never impact local command execution or exit codes.
- Configured Production Endpoint: Ships with the verified HTTPS production collector endpoint (
https://35.209.177.185.sslip.io/v1/events).
Production Telemetry Collector
A standalone, privacy-first ingestion backend service:
- FastAPI Ingestion: High-throughput
POST /v1/eventsendpoint with liveness (/health) and readiness (/ready) probes. - Fail-Closed Validation: Rejects unrecognized keys, path traversal strings, or unexpected types before database writes.
- Streaming 32 KB Body Size Guard: Reads request bodies in chunks, terminating oversized payloads with HTTP 413 without memory buffering.
- In-Memory Rate Limiting: Hard-bounded token bucket rate limiter with LRU eviction and trusted proxy header sanitization.
- Idempotent Ingestion & Deduplication: Uses random UUIDv4
event_idas primary key with atomic conflict resolution (ON CONFLICT DO NOTHING). - PostgreSQL 16 & Alembic: Backed by versioned schema migrations without unversioned runtime table mutations.
- Privacy-Safe Application Logging: Zero client IP storage in the database; reverse proxy access logs for
/v1/eventsdiscarded at the edge; application logs never record payload contents. - Automated 90-Day Retention: Scheduled purge job based strictly on server
received_attimestamps (python -m collector.app.retention --days 90).
Quality & Validation
- Multi-OS CI Matrix: 12/12 matrix jobs passing across Ubuntu, macOS, and Windows on Python 3.11, 3.12, 3.13, and 3.14.
- Zero CodeQL Alerts: Clean GitHub Code Scanning security evaluation.
- Live PostgreSQL E2E: End-to-end integration tests validating container startup, Alembic migrations, rate limiting, and live ingestion.
Installation
# Recommended isolated installation via pipx
python -m pip install --upgrade pipx
pipx install ai-dev-cli-tools==1.3.0
ai-dev --versionOr with standard pip:
pip install ai-dev-cli-tools==1.3.0Important Note
Community Telemetry remains completely disabled unless you explicitly choose to participate:
# Check current telemetry status (default: OFF)
ai-dev telemetry sharing status
# Optionally enable basic operational metrics
ai-dev telemetry sharing enable basic
# Or disable at any time (clears all queued events immediately)
ai-dev telemetry sharing disableDocumentation Links
- Community Telemetry Specification
- Collector Architecture & API
- Collector Deployment Guide
- Reference GCE Deployment Templates
Full Changelog: v1.2.2...v1.3.0