sentry: a claude code and codex plugin that sets sentry up right and proves it
tl;dr: point it at any repo. it works out whether sentry is there, audits it or sets it up from scratch, changes only what you approve, then proves every change with a real event landing in your sentry org. no "should work now" vibes. it runs on the new sentry v4 cli (the successor to sentry-cli), and it has no mcp server and no telemetry. it runs in claude code and in codex (see codex).
install
Every plugin of ours is installed once, globally, and off, then turned on per project. Nothing runs and no tokens are spent in chats that don't switch it on. It works the same in Claude Code and Codex.
1. install it globally
Claude Code
claude plugin marketplace add yigitkonur/plugin-sentry
claude plugin install sentry@plugin-sentry -s user # stays off: defaultEnabled is false in the manifest
Codex (0.163+)
codex plugin marketplace add yigitkonur/plugin-sentry
codex plugin add sentry@plugin-sentry
codex-plugin-project.sh global-off sentry@plugin-sentry # Codex has no enable/disable command; this keeps it off everywhere
All our plugins, both hosts, plus the plugin command and the 6-hourly update job, in one line:
curl -fsSL https://raw.githubusercontent.com/yigitkonur/plugin-kit/main/install.sh | sh -s -- --all
2. turn it on in a project
cd your-project
plugin on sentry # Claude Code and Codex, this folder only
plugin off sentry # undo
plugin # or pick from a list (TUI)
By hand, without the plugin command:
claude plugin enable sentry@plugin-sentry --scope project # undo: claude plugin disable sentry@plugin-sentry --scope project
codex-plugin-project.sh on sentry@plugin-sentry . --trust # undo: codex-plugin-project.sh off sentry@plugin-sentry
Restart claude / codex in that folder afterwards.
Codex reads a folder's .codex/config.toml only when the folder is trusted; --trust adds that, and it also enables the folder's hooks and rules, so use it for your own projects only. plugin and codex-plugin-project.sh come from plugin-kit (the one-line installer above).
3. updates
A plugin updates only when its version changes, and this repo's release workflow bumps it on every shipped change. Machines pick it up with plugin update, or by themselves with the 6-hourly job (plugin autoupdate install). By hand:
claude plugin marketplace update plugin-sentry && claude plugin update sentry@plugin-sentry
codex plugin marketplace upgrade plugin-sentry # then start a new session
No GitHub SSH key on the machine? export CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 (plugin install sets it in Claude's settings for you).
4. uninstall
claude plugin uninstall sentry@plugin-sentry -s user
claude plugin marketplace remove plugin-sentry
codex plugin remove sentry@plugin-sentry
codex plugin marketplace remove plugin-sentry
after switching it on
new chats in that folder (restart claude / codex first) get the /sentry: commands; start with /sentry:doctor, then /sentry:start.
the install may say 1 userConfig option not yet set. that's hook_mode, and it defaults to on, so you can ignore it, or set it right away with --config hook_mode=on (or quiet / off).
the plugin adds a few hundred tokens to every session while it's switched on, which is why it stays off until a project asks for it.
checked live through herdr on a scratch project: a fresh claude there answered NONE when asked for sentry: skills, after switching the plugin on it listed sentry:ground-rules and sentry:triage, and after switching it off it answered NONE again.
updates in claude code
if you run with CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, also set FORCE_AUTOUPDATE_PLUGINS=1, or background plugin updates are skipped. /sentry:doctor tells you when updates can't arrive by themselves.
the official sentry plugin
sentry also ships an official plugin that is also called sentry. you can run both. every command here is /sentry:<verb>, and none of our skill names clash with its sentry-* skills. /sentry:doctor tells you when both are on.
codex
same repo, same plugin, one extra marketplace file (.agents/plugins/marketplace.json). the first time codex loads the plugin's hooks it asks you to review them (t trusts all).