Claude Code Hooks plugin for Grok Build
πͺ 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-hooks2. Install the plugin:
grok plugin install context-hogs@karanb192/claude-code-hooks --trustReview 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 Dec 1, 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.
New Grok Build plugins every Tuesday, install line ready to copy.
Stacks Weekly is one short email from GrokStacks and CodexStacks. Subscribe and get the free starter list: 20 Grok Build plugins worth installing first.
Confirmation email first. Unsubscribe anytime.
What it contains
Skills (3)
leaderboardβ Show this repo's context-cost leaderboard: the files that pulled the most tokens into contextstatusβ Show this session's prompt-cache state, the cold-comeback price, and the cache writes paid so farreceiptsβ 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 minutesnerf-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 Claudeconfig-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 da9c8f7251bb. It's one of 77 listings in the Security category on GrokStacks.
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
da9c8f7251bb- Homepage
- https://hooks.karanbansal.in
- Country
India (from the location on the makerβs public GitHub profile; country only. How we mark countries)
- Checked by GrokStacks
- Install-checked in Grok Build on Dec 1, 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.
Markdown
[](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
Aaron Marketing Skills
?120 marketing skills as an AI marketing staff β plugin, portable skills, or an 8-bot team across 7 disciplines (narrative, SEO/GEO, social, email, paid, influencer, launch) on one contract, with 8 auditor gates: TALE Β· CORE-EEAT Β· CITE Β· ECHO Β· SEND Β· ROAS Β· STAR Β· RAMP.
Adrian
Open-source runtime AI agent security tool - monitors and controls AI agents, catching malicious tool use, prompt injection, and policy drift in real time, before the agent acts.
Agent Beacon
The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Agent Governance Toolkit
AI Agent Governance Toolkit β Policy enforcement, zero-trust identity, execution sandboxing, and reliability engineering for autonomous AI agents. Covers 10/10 OWASP Agentic Top 10.
Android Reverse Engineering Skill
?Claude Code skill to support Android app's reverse engineering
Avoid AI Writing
Skill that audits and rewrites content to remove AI writing patterns. Use it with your favorite agents including Claude Code, OpenClaw, Codex, and Hermes.