Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By paulnsorensenv0.1.0MITIn 1 marketplace
pydantic-ai-powered semantic hook enforcement for Claude Code — classifies assistant output against YAML rules using a configurable hosted LLM provider
You run one by typing its /name in Claude Code.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
hooks, enforcement, slm, quality-gates, semantic, claude-code
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
pydantic-ai-powered semantic hook enforcement for Claude Code. Classifies AI assistant output against YAML rules using a configurable LLM provider.

In turn-of-the-century vaudeville theatres, a stagehand waited in the wings with a long shepherd's crook. When an act started flailing — forgetting lines, losing the crowd, running past its slot — the manager would signal and the hook would shoot out from the curtain and yank the performer offstage before the audience soured on the whole bill. "Get the hook!" became shorthand for cutting a bad act short.
That's the job here. A model watches what Claude is about to say or do and, when the performance goes off the rails — hedging about untested code, dismissing a test failure as "pre-existing," deferring a reviewer's concern to a follow-up PR, declaring work complete with known gaps — it reaches out from the wings and pulls the act. Unlike regex hooks, the model reads intent, so it catches the act whether Claude says "this should work," "I believe this addresses it," or "we can tighten this up later." Bad patterns get yanked; honest uncertainty gets through.
Vaudeville runs a local daemon that classifies Claude Code's output in real time via pydantic-ai, calling whichever model provider you configure. You write rules as YAML files with few-shot prompt templates. The daemon evaluates them on every hook event and returns block/warn/log verdicts.
Fail-open by design — if the daemon is down, the config is missing, or a model call errors out, your session continues normally. Vaudeville never blocks you from working.
/plugin marketplace add paulnsorensen/vaudeville
/plugin install vaudeville@paulnsorensen
Then run the one-time setup to write your config:
/vaudeville:setup
This creates ~/.vaudeville/config with a default_model, providers (API key env vars), and optional commands. Any project rule may invoke any configured command; a command's child process never sees the provider API key env vars.
pi install git:github.com/paulnsorensen/vaudeville
Pi loads pi/extensions/vaudeville.ts from the package's pi.extensions manifest entry (package.json). The extension talks to the same daemon over its Unix socket and spawns it on session_start via hooks/session-start.sh; it does not run hooks/hooks.json, so a Pi-only install has exactly one enforcement path.
In an oh-my-pi session:
/marketplace add paulnsorensen/vaudeville
/marketplace install vaudeville@paulnsorensen
oh-my-pi reads .claude-plugin/marketplace.json and loads the extension from package.json#omp.extensions. Its Claude-plugin loader reads only hooks/pre/ and hooks/post/, so it does not run hooks/hooks.json. The extension is the one enforcement path.
The extension sends rule context to the model on its next turn without starting a new turn. Warnings remain notifications.
Pi evaluates Stop at agent_before_settle. oh-my-pi evaluates terminal agent_end events that own the willContinue field.
This distinction follows the native producers: Pi omits that field; oh-my-pi includes it even when its value is undefined.
Failed or cancelled runs do not trigger continuation. Each user input permits at most three forced continuations.
Unsupported block channels, including PostToolUse, produce warnings with recorded downgrades.
Extension regression tests require Node.js 22.6 or later. The pytest suite runs them through Node's native TypeScript loader.
Copy the bundled rules to your global rules directory:
mkdir -p ~/.vaudeville/rules
cp ~/.claude/plugins/**/paulnsorensen/vaudeville/**/examples/rules/*.yaml ~/.vaudeville/rules/
Start a new Claude Code session — the daemon launches automatically on SessionStart.
Try it: ask Claude to make a small change and watch it finish. If it ends with "Should I commit and push?" instead of just doing it, git-gate warns. Reply to a PR comment with "I'll address this in a follow-up PR" and deferral-detector blocks the comment.
Vaudeville also ships as a Codex CLI plugin. Add the repo as a marketplace, then install:
codex /plugins
Open the plugin browser, add paulnsorensen/vaudeville as a marketplace source, and install vaudeville from it.
Run /hooks.
Review and trust the Vaudeville hooks.
Start a new Codex session.
Codex CLI runs the same daemon and rules as Claude Code — the codex harness adapter maps Codex's hook events and tool names (apply_patch → Edit) onto the same rule vocabulary. On SessionStart, hooks/session-start.sh launches the daemon exactly as it does under Claude Code.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub paulnsorensen/vaudeville --plugin vaudevillePlugins from other owners that cover similar ground