docs
Set up the Claude Code & Codex hooks
Open the notch's Agents tab and click Connect next to Claude Code or Codex. Majoor adds a few hooks to your agent's settings, keeps a backup, and shows every session's status in the notch. Disconnect removes only what it added.
Updated Dec 2, 2026 · By Vivek Chaudhari, who builds Majoor
This page is the technical detail. For what the feature does day to day, see Claude Code & Codex alerts.
Connect
- Hover the notch and open the Agents tab.
- Click the Claude Code chip, the Codex chip, or both.
- Start a new agent session. It shows up in the tab, grouped by project.
Sessions that were already running before you connected don't load the new hooks. Restart them to see them.
Exactly what Majoor writes
Before changing a file, Majoor saves a copy next to it as <file>.majoor-backup. It always merges with your own hooks. Nothing you added is removed or reordered.
| File | Hook events added |
|---|---|
~/.claude/settings.json | SessionStart, UserPromptSubmit, PreToolUse (AskUserQuestion only), PermissionRequest, PostToolUse, Notification, Stop, SessionEnd |
~/.codex/hooks.json | SessionStart, UserPromptSubmit, PermissionRequest, PostToolUse, Stop, SessionEnd (Codex has no Notification hook) |
Every hook runs one small script:
~/.majoor/bin/agent-hook <claude|codex> <event>The script sends one line of JSON to a local Unix socket, ~/.majoor/agent.sock. The socket is owner-only (0600) and Majoor checks the connecting user. Nothing goes over the network. If Majoor isn't running, there's no socket, and the script exits 0 at once with no output, so your agent never slows down or fails because of it.
Majoor never touches Codex's notify key. When Majoor updates, it upgrades its own hooks and script in place.
Answer permission prompts from the notch
This is on by default for Claude Code, with a switch in the Agents tab. When Claude asks to run a tool, the request drops down under the notch. You can:
- Allow once.
- Always allow, which adds Claude's own suggested rule (for Bash, the exact command) for this session.
- Deny, optionally with a typed reason that Claude reads.
- Answer an
AskUserQuestion: pick the options or type your own answer.
Return allows and Escdenies, but only after you click into the notch panel. The panel never takes focus by itself, so a Return you meant for another app can't approve anything.
Unattended runs, like claude -pand SDK scripts, wait only 30 seconds for an answer from the notch, with a countdown on the card. Nobody else can answer them, and a script shouldn't stall for an hour.
Usage meter (opt-in)
The Agents tab can show your 5-hour and weekly limits.
- Claude Code: turning the meter on sets
statusLinein~/.claude/settings.jsonto the Majoor script. It forwards the status data to Majoor and still runs your own status line command, which Majoor saves first. Limits appear on Pro and Max plans after the first reply. Turning it off, or disconnecting, restores your original status line. - Codex: Majoor reads the latest rate-limit line from the newest session file in
~/.codex/sessions/. Nothing is written.
Majoor never reads Keychain tokens and never calls private endpoints for this.
Disconnect
Click the chip again in the Agents tab. Majoor removes only the hook commands that point to ~/.majoor/bin/agent-hook and restores your status line if the meter was on. Your own hooks stay as they were. The .majoor-backup file is still there if you want to compare.
Common questions
Does this send my code anywhere?
No. Hook data goes from the script to Majoor over the local socket and stays on your Mac. See privacy.
Does it work with the Claude desktop app?
Yes. Sessions from the terminal and from the Claude app both appear. Clicking a Claude app session opens it directly.
Will it show alerts while I'm looking at the session?
No. If the app the session runs in is in front, Majoor skips the badge, sound and drop-down. The request is still answerable in the tab.
Give your notch a job.
Free, open source, no account. Updates itself.
Download Majoor for MacFirst launch needs one extra click in System Settings. See the 2-minute install guide
v1.8.0 · released Dec 2, 2026 · macOS 14 or later · Apple Silicon & Intel · 5.4 MB