Install Spotter
Spotter is a macOS menu bar app. One Homebrew command installs it. You don't need Xcode.
Requirements
- macOS 26 or later.
- Apple's Command Line Tools (
xcode-select --install). Xcode itself is not needed.
Install
brew install samarthpatel24/tap/spotter
The Homebrew formula builds Spotter on your Mac with the Command Line Tools. Nothing needs a paid Apple account.
First run
- The Spotter window opens and welcomes you. Pick a few templates, or skip.
- New spotter (the Spotter icon in the bar, or the window) sets one up before it reaches the bar: pick a start such as Monitor, give it a name, an icon and a URL, press Check to see the fields, pick what to show, then Add to menu bar.
- Click a bar item to open it. Edit adds blocks, alerts, a look, a bar icon and a shortcut. File shows the JSON.
- Right-click a bar item to open, edit or remove it. A removed spotter's file goes to
.trash/.
Where files live
Everything is plain text under ~/.config/spotter. Edit any of it by hand, or ask your coding agent to.
| Path | What it holds |
|---|---|
spotters/<id>.json | One file per spotter. Set SPOTTER_DIR to use another folder. |
settings.json | Bar order (which also sets ⌥1–⌥9), the switcher shortcut, quiet hours, the app theme, how often sources are checked, and whether the Spotter icon shows in the bar. |
jobs/<id>.json | Background jobs from spotter run. Their output goes to jobs/<id>.log. |
agents/<agent>-<session>.json | Coding-agent sessions, readable only by you. Sessions untouched for a day are removed. |
claude/events.jsonl | Session events from the Claude Code plugin. |
spotters/.trash/ | Removed spotters. |
A spotter file with an error shows File error and keeps its last good version until it is fixed. The full format is in the docs.
The spotter command
The command line starts background jobs, lists and stops them, and feeds coding-agent hooks.
| Command | What it does |
|---|---|
spotter run [--name NAME] [--url URL] -- COMMAND [ARGS...] | Starts COMMAND in the background, so it outlives this shell, and shows it in Spotter. Prints the job's id. |
spotter jobs [--json] | Lists jobs: running, done, failed, stopped or lost. |
spotter stop ID | Stops a job and everything it started. |
spotter hook AGENT [EVENT] | For an agent's hook config. Reads one hook event on stdin. EVENT is only needed for Copilot CLI. |
Example:
spotter run --name "Dev server" --url http://localhost:3000 -- npm run dev
spotter jobs
spotter stop dev-server
A job that is still marked running but whose heartbeat is more than 15 seconds old shows as lost.
Coding agents
spotter hook AGENT is one hook for every agent below. Each event updates that session's file in agents/. Prompts, tool output and file contents are never written.
| Agent | Config file | Events to hook | Command | Allow or Deny |
|---|---|---|---|---|
| Claude Code | ~/.claude/settings.json | SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Notification, Stop, SessionEnd | spotter hook claude-code | Allow and Deny |
| Codex | ~/.codex/hooks.json | SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Stop, SessionEnd | spotter hook codex | Allow and Deny |
| Gemini CLI | ~/.gemini/settings.json | SessionStart, BeforeAgent, BeforeTool, AfterTool, AfterAgent, SessionEnd | spotter hook gemini-cli | Watch only |
| Cursor | ~/.cursor/hooks.json | sessionStart, beforeSubmitPrompt, preToolUse, postToolUse, stop, sessionEnd | spotter hook cursor | Watch only |
| Copilot CLI | ~/.copilot/hooks/spotter.json | sessionStart, userPromptSubmitted, preToolUse, postToolUse, notification, agentStop, sessionEnd | spotter hook copilot-cli EVENT | Watch only |
Claude Code, Codex and Gemini CLI
These three use the same shape, one entry per event:
{"hooks": {"PreToolUse": [{"hooks": [{"type": "command", "command": "spotter hook claude-code"}]}]}}
Cursor
{"version": 1, "hooks": {"preToolUse": [{"command": "spotter hook cursor"}]}}
Copilot CLI
Copilot CLI names the event on the command line:
{"version": 1, "hooks": {"preToolUse": [{"type": "command", "bash": "spotter hook copilot-cli preToolUse"}]}}
Allow and Deny
Allow and Deny work from the menu bar in Claude Code and Codex only. Those agents have an event that fires only when they would ask you. The hook waits up to 20 seconds for your answer, then the agent asks in its own window as usual. Spotter says "Allowed" only once the hook has taken the answer.
Cursor, Gemini CLI and Copilot CLI are watch-only. Cursor and Gemini CLI only have before-tool hooks, which fire on every call. Copilot CLI's permission request runs before its own rules, so Spotter shows the session as needing you from its permission_prompt notification instead.
Claude Code as a plugin
Claude Code can also get Spotter as a plugin. Spotter then never edits your Claude Code settings. In Claude Code, run:
/plugin install spotter --marketplace samarthpatel24/Spotter
To remove it: /plugin uninstall spotter@spotter.
Tell your agent once
Add this to CLAUDE.md or AGENTS.md:
Start long-running commands (dev servers, watchers, builds) with `spotter run --name NAME -- COMMAND`, and check them with `spotter jobs`.