Install Spotter

Spotter is a macOS menu bar app. One Homebrew command installs it. You don't need Xcode.

Requirements

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

  1. The Spotter window opens and welcomes you. Pick a few templates, or skip.
  2. 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.
  3. Click a bar item to open it. Edit adds blocks, alerts, a look, a bar icon and a shortcut. File shows the JSON.
  4. 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.

PathWhat it holds
spotters/<id>.jsonOne file per spotter. Set SPOTTER_DIR to use another folder.
settings.jsonBar 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>.jsonBackground jobs from spotter run. Their output goes to jobs/<id>.log.
agents/<agent>-<session>.jsonCoding-agent sessions, readable only by you. Sessions untouched for a day are removed.
claude/events.jsonlSession 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.

CommandWhat 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 IDStops 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.

AgentConfig fileEvents to hookCommandAllow or Deny
Claude Code~/.claude/settings.jsonSessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Notification, Stop, SessionEndspotter hook claude-codeAllow and Deny
Codex~/.codex/hooks.jsonSessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Stop, SessionEndspotter hook codexAllow and Deny
Gemini CLI~/.gemini/settings.jsonSessionStart, BeforeAgent, BeforeTool, AfterTool, AfterAgent, SessionEndspotter hook gemini-cliWatch only
Cursor~/.cursor/hooks.jsonsessionStart, beforeSubmitPrompt, preToolUse, postToolUse, stop, sessionEndspotter hook cursorWatch only
Copilot CLI~/.copilot/hooks/spotter.jsonsessionStart, userPromptSubmitted, preToolUse, postToolUse, notification, agentStop, sessionEndspotter hook copilot-cli EVENTWatch 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`.