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.
Claude Code doesn't load everything this plugin declares
dist/cc-capture.js, which isn't in the repository. Claude Code installs the plugin without an error, but the hook exits with an error each time it runs. Claude Code installs a copy of the repository and runs no build step.dist/cc-gate.js, which isn't in the repository. Claude Code installs the plugin without an error, but the hook exits with an error each time it runs. Claude Code installs a copy of the repository and runs no build step.Checked against Claude Code 2.1.332.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code hooks that capture plan-mode output to PACT for human review before execution.
| Hook | Event | Behaviour |
|---|---|---|
cc-capture | PermissionRequest / ExitPlanMode | Sends the plan to PACT, stores the share URL + creator token locally, prints the URL to your terminal |
cc-gate | PermissionRequest / ExitPlanMode | Blocks plan execution until a human approves in the browser |
cc-nudge | UserPromptSubmit | If your prompt is long and no plan has been captured yet for this session, suggests using /plan mode |
npm install -g @baz-scm/pact-hooks
pact-hooks install
Or with pnpm:
pnpm add -g @baz-scm/pact-hooks
pact-hooks install
Or one-liner:
curl -fsSL https://pact.baz.co/install.sh | sh
Restart Claude Code. That's it.
By default hooks talk to http://localhost:3000. To use a hosted instance:
mkdir -p ~/.pact
echo '{"server":"https://plan.baz.co"}' > ~/.pact/config.json
~/.pact/config.json — global, applies to all repos:
{
"server": "http://localhost:3000",
"enabled": true,
"nudge": true,
"redact": [],
"gate_timeout_seconds": 300
}
.pact.json at your repo root — per-repo overrides (git-committable):
{
"redact": ["ACME_API_KEY_\\w+"],
"nudge": false
}
| Field | Default | Description |
|---|---|---|
server | http://localhost:3000 | PACT server URL |
enabled | true | Set false to disable all hooks |
nudge | true | Remind you to use plan mode on long prompts |
redact | [] | Regex patterns — matched text replaced with [REDACTED] before upload |
gate_timeout_seconds | 86400 | How long the gate hook waits for approval |
Each plan belongs to a series — a thread of related revisions for the same feature. When you exit plan mode, the hook compares the new plan against the previous one using word-level Jaccard similarity (the same heuristic git uses for rename detection).
This means you can work on multiple features in the same session or on the same branch without them clobbering each other.
// .pact.json
{ "enabled": false }
Run the PACT server locally:
docker run -p 3000:3000 -v ./data:/data ghcr.io/baz-scm/pact
Then set server in your config to http://localhost:3000 (already the default).
npx claudepluginhub baz-scm/pact --plugin pact-hooksBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground