/tattletale:setup-tattletalefrom tattletale
Installs and configures tattletale to send Claude Code, Codex, OpenCode, and Pi sessions to Sentry as agent traces. Handles DSN setup, scope selection, and hook installation.
Ships in tattletale. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
tattletale sends the user's Claude Code, Codex, OpenCode and Pi sessions to a Sentry project as agent traces: one conversation per session, model calls with exact token usage, tool calls, and subagents. Everything below runs on the user's machine.
The only thing it needs is the DSN of the Sentry project the data goes to. Everything else has a default.
Use, in order:
https://<key>@o<org>.ingest.<region>.sentry.io/<project>).find_dsns returns an existing
project's DSN; create_project creates one (suggest coding-agents) and returns its DSN.By default every session is sent. Ask once which sessions should go, unless the user already said. The choice decides what leaves their machine (prompts, code and tool output, scrubbed of common secret patterns).
| The user wants | Flags |
|---|---|
| Everything | (none) |
| One repo, in any folder or worktree | --repo getsentry/terra (or --repo terra for any owner) |
| One folder and everything below it | --include ~/code/terra |
| Several | repeat --include / --repo |
| Everything except something | --ignore ~/personal or --ignore repo:<owner/name> |
| Counts and timings only, no text | --content metadata |
npx @sentry/tattletale setup --dsn '<DSN>' [scope flags from step 2]
npx @sentry/tattletale install
install adds lightweight hooks to whichever of Claude Code, Codex, OpenCode and Pi is installed (--claude,
--codex, --opencode, --pi to pick). For Claude Code and Codex it shells out to claude plugin … and
codex plugin …; for OpenCode it writes a plugin file to ~/.config/opencode/plugins/tattletale.js, and for Pi
an extension to ~/.pi/agent/extensions/tattletale.ts. Both load in sessions started afterwards. Hooks never
block the agent. If the user already has Sentry's @sentry/pi extension sending to the same org, tell them to
keep only one of the two, or Pi sessions show up twice.
Tell the user that Codex asks them, once, to approve the new hooks under /hooks. You can't approve them for
them. Until then, Codex sessions are still sent, in batches whenever another agent's session starts.
Optional, for Claude Code only: npx @sentry/tattletale install --otel. This switches Claude Code to its own
OpenTelemetry through a local relay. It adds request timing and model calls that never reach the transcript.
It writes telemetry variables into ~/.claude/settings.json, and refuses if the user already configured
OpenTelemetry differently. Mention that it applies to sessions started afterwards.
npx @sentry/tattletale status # DSN, scope, what was sent, relay, recent log
npx @sentry/tattletale verify --days 1 # local token reconciliation; sends nothing
npx @sentry/tattletale test-error # optional: proves the DSN accepts events
Data appears in Sentry under Explore → Conversations, usually within a few minutes.
To send past sessions (replay, alias backfill), always dry-run first and show the user the counts:
npx @sentry/tattletale replay --days 7 --dry-run # or --since 2026-10-01 [--until …]
npx @sentry/tattletale replay --days 7
npx @sentry/tattletale replay --session <id> # one session
npx @sentry/tattletale replay <file-or-folder> # transcripts copied from elsewhere
Replays respect the scope. Spans already in Sentry are never sent twice. Sentry drops spans older than the
project's retention, and Claude Code deletes transcripts after 30 days unless cleanupPeriodDays is raised.
setup again with new flags. --everything clears the scope.TATTLETALE_DISABLED=1 in the environment, or "disabled": true in ~/.tattletale/config.json.npx @sentry/tattletale uninstall --otel (if OTel was installed), then npx @sentry/tattletale uninstall.~/.tattletale/tattletale.log. Lines show sync <agent> <session>: built=… sent=… and why a
session was skipped: ignored path (outside the scope) or waiting for OTel relay (it resolves by itself
within about 10 minutes).setup --dsn was not run, or ran with a different TATTLETALE_HOME.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub getsentry/tattletale --plugin tattletaleOther plugins' skills for the same job