// the find
DataDog/pup
Give your AI agent a Pup — a CLI companion with 200+ commands across 33+ Datadog products.
Pup is an official Datadog CLI written in Rust that exposes 200+ API commands across their entire product surface, with first-class support for AI agent consumption — structured JSON output, auto-detection of agent environments (Claude Code, Cursor, Codex, etc.), and a machine-readable schema via `pup agent schema`. It is aimed squarely at teams who want to give an LLM or automation pipeline access to their Datadog account without hand-rolling API calls.
The agent mode auto-detection is the most thoughtful part: it checks for a list of known agent environment variables and switches to structured JSON with metadata and hints rather than human-formatted tables — that's the right design decision and it actually works with Claude Code today. The OAuth2 + PKCE implementation handles multi-site, multi-org sessions with named org aliases and graceful fallback ordering (DD_ACCESS_TOKEN → OAuth → API keys), which is how you want auth to work when ops teams use the same tool against staging and prod. The WASM target (wasm32-wasip2) is non-trivial and opens up edge deployment in Cloudflare Workers with stateless auth. The runbooks engine — YAML-defined multi-step procedures with output capture, polling, and variable interpolation — is a practical operational primitive for teams who want repeatable triage workflows without standing up a separate orchestration layer.
API coverage has real gaps: Session Replay, Powerpacks, IP Allowlist, and full Roles CRUD are marked 'not yet implemented' with no timeline, so if any of those are in your workflow you're still making raw API calls. The snapshot test suite compares golden JSON files but has no mechanism to detect upstream schema drift from Datadog's API — the tests pass until someone manually notices a broken response in a live environment. The runbooks engine reinvents a thin version of what Ansible or shell scripts already do, but with a proprietary YAML DSL that has no ecosystem around it; the failure modes are also poorly documented. The ACP server feature (`pup acp serve`) tunnels to 'Datadog Bits AI' — a Datadog-internal service — with sparse documentation on availability, what happens when it's unreachable, and which customer tiers can actually use it.