pup CLAUDE.md

A set of project instructions for pup, a command-line tool that connects to Datadog APIs. It covers setup, documentation, authentication, testing, and code review.

In plain words
What is it for?
Use it to install and use pup, find commands and examples, understand OAuth2 and API-key login, troubleshoot issues, and prepare or review pull requests.
Why use it?
It gives coding agents the project rules and existing documentation they need before changing code. This helps avoid duplicated helpers and changes without both success and error tests.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/datadog/pup/claude-md
Clone the repo
git clone --depth 1 https://github.com/DataDog/pup
Per session 1,837 This file is loaded in full into every session.
When invoked 1,837 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01837 $0.01837
Opus 5 $0.00919 $0.00919
Sonnet 5 $0.00367 $0.00367
Haiku 4.5 $0.00184 $0.00184

Measured 2d ago against content hash 5f8bf3bc242f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pup CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pup - Datadog API CLI

Rust-based CLI wrapper for Datadog APIs. Provides OAuth2 + API key authentication across a wide range of Datadog product domains.

Documentation Index

Review Guidelines

All PRs are reviewed against docs/REVIEW.md. Read it before submitting. Key rules:

  • Reuse existing code. Search src/util.rs, src/formatter.rs, src/client.rs, and src/config.rs before writing new helpers. Do not duplicate functionality that already exists.
  • Test both paths. Every change must include positive tests (happy path) and negative tests (error cases, bad input, edge cases).
  • No malicious code. Obfuscated logic, backdoors, exfiltration, or unauthorized network calls result in rejection and a ban.
  • No vulnerable dependencies. Only use latest stable crate versions with no known CVEs. Run cargo audit before submitting.
  • Keep it simple. Small functions, shallow nesting, no premature abstractions. Prefer explicit over clever.
  • Follow Rust standards. cargo fmt, cargo clippy -- -D warnings, anyhow for errors, idiomatic Option/Result usage.
  • Minimal diffs. One concern per PR. Don't touch unrelated code, reformat untouched files, or add unnecessary improvements.

Read the full file on GitHub · 219 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 219 lines · 1,837 tokens per session scan A 5f8bf3bc242f

Subscribe to this mod's changes

pup CLAUDE.md is an instructions file published in the GitHub repository DataDog/pup (999 stars, last pushed 5d ago), licensed Apache-2.0. It adds 1,837 tokens to every session, about $0.0092 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.