bashkid

Agent Hooks Manager — Development skill for Claude Code

Development community

Local GUI + macOS menu-bar app to add, review and remove hooks for Claude Code, Codex, Hermes and OpenClaw.

How to install Agent Hooks Manager

This entry records only its repository, not the path inside it, so there is no exact command to give. Open bashkid/agent-hooks-manager and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Hooks Manager does

Local GUI + macOS menu-bar app to add, review and remove hooks for Claude Code, Codex, Hermes and OpenClaw.

Alternatives in Development

  • Quosparr — 🐦 Native menu bar & tray app for macOS, Windows and Linux: track Codex, Claude Code and Grok quotas, resets 288 ★
  • Cc Bar — Native macOS menu bar app: track quota, usage and cost for Codex (multi-account) and Claude Code, from your me 119 ★
  • Agent Cat Releases — Agent Cat downloads — a free macOS menu bar and Windows tray app that shows Claude Code, Codex and Gemini CLI 57 ★

README

Agent Hooks Manager

A small local GUI to add, review and remove **hooks** for four coding agents: Claude Code, Codex, Hermes and OpenClaw. Zero npm dependencies (Node 20+).

./start.command        # or: npm start   -> http://127.0.0.1:4377
npm test               # 31 tests, run against a temp HOME

What it writes

Agent File Notes
Claude Code ~/.claude/settings.json hooks key; other settings preserved. PreToolUse can block (exit 2).
Codex ~/.codex/hooks.json Needs [features] hooks = true. Codex asks you to trust new hooks. Not yet verified against a live Codex session.
Hermes hooks: block in ~/.hermes/config.yaml Only that block is rewritten (comments inside it are lost). Consent needed on first use. Refuses YAML it cannot edit safely.
OpenClaw ~/.openclaw/hooks/ahm-*/ (HOOK.md + handler.js) Enabled via openclaw hooks enable. Observation only: cannot block.

Every write is atomic and preceded by a backup in `~/.agent-hooks-manager/backups/`.

Security

Hooks run commands as you, so the server is locked down: it binds to `127.0.0.1` only, rejects foreign `Host` headers (DNS rebinding), requires a per-launch token on every `/api` call (CSRF), caps request bodies, serves only three fixed static files, and sets a strict CSP.

If a config file is immutable (`chflags uchg`), writes fail with the exact `chflags nouchg` command to run.

Layout

`src/adapters/*` one adapter per agent (shared `jsonHookFile.js` for Claude/Codex) · `src/api.js` transport-independent routes · `src/server.js` HTTP + security · `public/` UI · `test/` node:test suite.

Menu-bar app (macOS)

./menubar/build.sh --install     # builds and copies to ~/Applications
open ~/Applications/"Agent Hooks Manager.app"

A `link` icon appears in the menu bar. Click it for the manager in a popover; right-click (or ctrl-click) for Open in Browser, Reload, Restart Server, Launch at Login, Show Server