Claude Code Hooks plugin for Grok Build

Community Claude Code plugin, installs in GrokPluginSecurity

🪝 Claude Code hooks + an installable plugin marketplace: safety, cost, observability, productivity.

How to install Claude Code Hooks in Grok Build

1. Add this repo as a plugin marketplace in Grok Build (once per computer):

grok plugin marketplace add karanb192/claude-code-hooks

2. Install the plugin:

grok plugin install context-hogs@karanb192/claude-code-hooks --trust
✓ Install-checked in Grok Buildchecked Oct 18, 2026

Review before you trust it. --trust lets this plugin's hooks, MCP servers and scripts run code on your computer. It's a community repo that neither xAI nor GrokStacks has reviewed, so read its code first.

This repo's marketplace has 22 plugins; we checked cache-tax, context-hogs, nerf-receipts. Install another the same way: grok plugin install <name>@karanb192/claude-code-hooks --trust (names under 'What it contains'). Then start a new Grok session, or press r in /plugins, to load it.

Inside Grok Build: type /plugins, open the Marketplace tab, press a and add karanb192/claude-code-hooks, then select context-hogs and press i.

Command format: Grok Build's plugin guide

What we checked: on Oct 18, 2026 it installed with grok 1.0.62 and Grok found 3 skills. That's an install check only: we haven't run it in a live Grok session.

What it contains

Skills (3)

  • leaderboard — Show this repo's context-cost leaderboard: the files that pulled the most tokens into context
  • status — Show this session's prompt-cache state, the cold-comeback price, and the cache writes paid so far
  • receipts — Show your personal model-quality trend card (failure rate, edit churn, tokens/task by model version)

Hooks (1)

  • hooks — PostToolUse, SessionEnd

Plugins in this marketplace (22)

  • context-hogs — Per-file context-cost leaderboard: attributes every tool result's tokens to the files it loaded, so you know which files cost you the most.
  • cache-tax — The comeback price of a cold prompt cache, shown before you pay it: a UserPromptSubmit guard that warns (or refuses once) when your next message re-writes a lapsed 1-hour cache at up to 80x the read rate, a SessionStart hook that prices a stale resume, and a one-line status line segment with minutes
  • nerf-receipts — A personal flight recorder for Claude Code quality: records your own per-session failure rate, edit churn, and tokens/task by model version, and flags real shifts when a model changes.
  • dead-rules-audit — CLAUDE.md compliance scorecard: tallies which rules Claude actually follows vs ignores as you edit, and flags chronically-ignored rules to promote into a deterministic hook.
  • pr-provenance-stamp — Stamps a provenance receipt (prompts, estimated spend, tests run with exit codes, and a truthful agent-authored line split) into your PR body on `gh pr create`.
  • standup-autopilot — Writes your daily standup from what your agents actually did across repos: captures tasks, tests, PRs, and blockers from session transcripts and re-injects yesterday's open blockers next session.
  • dead-end-registry — Remembers approaches you tried and reverted (with reason and estimated token cost) and warns before you retry them, via a prompt-submit card and an ask-before-edit guard.
  • bounty-board — Prices your repo's TODO/FIXME/HACK debt as aging XP bounties, injects the top 3 as opportunistic side quests, and verifies + pays out bounties you genuinely clear.
  • block-dangerous-commands — PreToolUse guard for Bash: blocks dangerous shell commands (rm -rf ~, fork bombs, curl|sh, force push to main) before they run, with three safety levels and opt-in per-level ask mode.
  • protect-secrets — Secrets firewall for tool calls: denies (or asks, per level) any Read/Edit/Write/Bash/Grep that would read, search, modify, or exfiltrate .env files, SSH keys, cloud credentials, or keystores, with tiered safety levels tunable via HOOK_SAFETY_LEVEL.
  • git-safety — Branch-aware git guardrails plus destructive gh CLI protection: denies pushes to main/master, protected-branch deletion, direct commit/merge/rebase/reset/push on a protected branch, and gh pr merge/close, issue close, release and repo delete.
  • protect-tests — Stops "fake green" test-gaming: blocks the agent from deleting, renaming-away, or skip/xfail-disabling tests so it fixes the code instead, across pytest, jest, Go, JUnit, RSpec, and more.
  • case-insensitive-guard — Stops `rm -rf content` destroying `Content` on case-insensitive filesystems (APFS/exFAT/NTFS): resolves the real target of destructive commands through cd chains, quotes, and subshells, and denies provable case collisions.
  • config-guard — Who guards the guards: blocks the agent from tampering with its own guardrail config (settings.json, hook scripts, hooks.json, .mcp.json, plugin manifests, claude CLI config writes); reads always pass.
  • subagent-spawn-cap — Per-session subagent spawn budget: a PreToolUse guard on the Agent tool that counts every spawn (nested fan-outs included) in an append-only ledger, asks at SPAWN_CAP_ASK (default 20) and every SPAWN_CAP_ASK_STEP after it (default 10), and denies at SPAWN_CAP_DENY (default 60). The total cap Claude
  • config-watch — Tripwire for out-of-band config changes: warns on every mid-session settings/skills change (or blocks it with CONFIG_WATCH_BLOCK=true) to catch installer scripts and npm payloads rewriting settings behind Claude Code's back.
  • auto-stage — Automatic git staging: runs `git add` on every file Claude edits or writes, so `git status` always shows exactly what Claude touched and pre-commit review needs no manual staging.
  • format-code — Auto-formats files the moment Claude writes them: ruff for Python, prettier for JS/TS/JSON/MD/YAML/HTML, with shell-injection-safe argv execution and silent skips for everything else.
  • session-logger — Durable markdown log of every session (cwd, git repo, files touched, secret-redacted bash commands), appended async so logging never blocks Claude.
  • instructions-audit — Prompt-injection tripwire for CLAUDE.md and .claude/rules files: flags invisible-Unicode smuggling, secret read/exfil directives, curl|sh, decode-and-execute, and hook/settings tampering as instructions load, then locks the session (every prompt and tool call denied) until a human clears it.
  • notify-permission — Slack alerts when Claude Code needs you: posts a rich card (project, session, and what needs approval) to your webhook on permission, idle, and choice prompts.
  • guard-pack — All seven guard hooks in one Node process: subagent-spawn-cap, config-guard, block-dangerous-commands, protect-secrets, protect-tests, git-safety, and case-insensitive-guard, first blocking verdict wins. One ~35 ms Node startup per tool call instead of seven. Do not install alongside the individual

About this listing

Claude Code Hooks is a community plugin on GitHub by karanb192, written as a Claude Code plugin that Grok Build installs. We install-checked it in Grok; we haven't run it in a live session or reviewed its code. When we installed it, Grok found 3 skills, 1 hook, 22 plugins in this marketplaces. Its license is MIT. We checked commit 57a28c768730. It's one of 79 listings in the Security category on GrokStacks.

Stacks Weekly: every new Grok Build and Codex plugin, every Tuesday.

One short email for GrokStacks and CodexStacks readers, with each new plugin's install line and what it ships. Subscribe and get the free starter list: 20 Grok Build plugins worth installing first.

You'll get a confirmation email first. Unsubscribe anytime.

Claude Code Hooks FAQ

How do I install Claude Code Hooks in Grok Build?

Add the repo as a marketplace with grok plugin marketplace add karanb192/claude-code-hooks, then run grok plugin install context-hogs@karanb192/claude-code-hooks --trust. This repo's marketplace has 22 plugins; we checked cache-tax, context-hogs, nerf-receipts. Install another the same way: grok plugin install <name>@karanb192/claude-code-hooks --trust (names under 'What it contains'). Then start a new Grok session, or press r in /plugins, to load it.

Is Claude Code Hooks an official Grok Build plugin?

No. Claude Code Hooks is a community plugin on GitHub by karanb192, not in xAI's official Grok Build marketplace. We checked that it installs and what Grok loads from it, but haven't run it in a live Grok session or reviewed its code.

What does Claude Code Hooks include?

According to what Grok loaded in our install check, Claude Code Hooks includes 3 skills, 1 hook, 22 plugins in this marketplaces: leaderboard, status, receipts, hooks, context-hogs, cache-tax….

Details

Type
Plugin
Category
Security
Source
Community Claude Code plugin, installs in Grok
License
MIT
Author
karanb192
Keywords
ai-tools, anthropic, automation, claude, claude-code, claude-code-plugin, cli, developer-tools, hooks, marketplace, notifications
Source repo
https://github.com/karanb192/claude-code-hooks
Checked commit
57a28c768730
Homepage
https://hooks.karanbansal.in
Checked by GrokStacks
Install-checked in Grok Build on Oct 18, 2026; not run in a live session

Something wrong or missing? Submit or improve this listing. Marketplace listings also refresh automatically every night.

For maintainers: badge and embeds

Maintain Claude Code Hooks? Add the badge; it links to this page.

Listed on GrokStacks

Markdown

[![Listed on GrokStacks](https://grokstacks.com/badge.svg)](https://grokstacks.com/p/claude-code-hooks/)

HTML

<a href="https://grokstacks.com/p/claude-code-hooks/"><img src="https://grokstacks.com/badge.svg" alt="Listed on GrokStacks" width="164" height="28"></a>

Embed card (static HTML and inline CSS, no JavaScript). Preview:

<a href="https://grokstacks.com/p/claude-code-hooks/" style="display:block;max-width:380px;box-sizing:border-box;padding:14px 16px;border:1px solid #2a2e3c;border-radius:12px;background:#0a0b0f;color:#e8eaf0;font:14px/1.45 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;text-decoration:none"><span style="display:block;font-size:16px;font-weight:700;color:#e8eaf0">Claude Code Hooks</span><span style="display:block;margin:2px 0 8px;font-size:12px;color:#9aa0b1">Community plugin for Grok Build · 3 skills, 1 hook, 22 plugins in this marketplaces</span><span style="display:block;margin:0 0 10px;color:#c9cdd8">🪝 Claude Code hooks + an installable plugin marketplace: safety, cost, observability, productivity.</span><span style="font-size:12px;font-weight:600;color:#7c9cff">View on GrokStacks →</span></a>

Markdown summary

**[Claude Code Hooks on GrokStacks](https://grokstacks.com/p/claude-code-hooks/)**: Community plugin for Grok Build with 3 skills, 1 hook, 22 plugins in this marketplaces. Install: `grok plugin install context-hogs@karanb192/claude-code-hooks --trust` (after `grok plugin marketplace add karanb192/claude-code-hooks`)

More on badges, embeds and keeping your listing up to date: GrokStacks for plugin authors.

Also in Security

All 79 security listings →