Real-time supervisor for AI coding agents running in your terminals.
Sentinel watches AI coding agents (claude, codex, agy, aider, gemini, opencode, cursor) across your macOS Terminal.app windows, cross-checks their actual git diff against what they claim to be doing, and grades their work with Gemini 4 Hydrogen (gemini-4-hydrogen).
- Live terminal progress & verdicts: -
going_wellβ Steady, on-task progress; file edits match claimswaiting_for_userβ d waiting for approval or next instructioncompletedβ Task finished cleanlypotential_mistakeβ Likely bug, misunderstanding, or discrepancy between claims and actual editsstuck_in_loopβ Repeating the same failing commands, edits, or reasoningstuck_at_somethingβ Blocked on an error, hung process, or stalled while busyignoring_instructionsβ Contradicting explicit user constraints visible in the terminaltaking_bad_initiativeβ Making unrequested risky changes or going off-scriptsabotaging_workβ Destructive or dishonest actions (weakening tests, deleting needed files, bypassing checks, etc.)
- Git diff vs. agent claims verification: Resolves each terminal's working directory (via TTY
ps/lsofwith window-title fallback), capturesgit status,git diff HEAD, and recent commits, and checks whether actual file changes match what the agent says (yes|partial|mismatch|no_diff). - Actionable nudges: Flags concrete
potentialMistakesand drafts a ready-to-pastemessageToAgentwhen you should warn or redirect an agent. - Adjustable live watch & cost tracking: Polls on an adjustable interval (default
30s, live toggle & presets in the dashboard), skips unchanged screens/diffs to save API calls, and tracks total Gemini 4 Hydrogen USD cost and token usage live.
Gemini 4 Hydrogen (gemini-4-hydrogen) is the default auditor, and you can switch models live in the dashboard or via CLI/env:
| Alias | Model ID | Provider |
|---|---|---|
hydrogen (default) |
gemini-4-hydrogen |
Google AI Studio / OpenRouter |
haiku |
anthropic/claude-haiku-5.5 |
OpenRouter |
luna |
openai/gpt-6-luna |
OpenRouter |
luna-pro |
openai/gpt-6-luna-pro |
OpenRouter |
deepseek |
deepseek/deepseek-v4.1-flash |
OpenRouter |
glm-flash |
z-ai/glm-5.3-flash |
OpenRouter |
glm |
z-ai/glm-5.3 |
OpenRouter |
| (any OpenRouter ID) | e.g. qwen/qwen3-coder |
OpenRouter |
| (any Ollama model) | e.g. llama3.2 ,qwen2.5-coder |
Local Ollama ( $0 ) |
npm install
Set an API key in your environment (or .env) β or skip keys altogether when using Ollama:
GEMINI_EXPERIMENTAL/GEMINI_API_KEY/GOOGLE_GEMINI_API_KEY(Google AI Studio)OPEN_ROUTER_API_KEY/OPENROUTER_API_KEY(OpenRouter β supports Haiku, Luna, DeepSeek, GLM, Gemini, and any custom OpenRouter model ID)OLLAMA_BASE_URL(optional, defaulthttp://localhost:11434β local models are auto-discovered in the dashboard)
Optional environment variables:
SENTINEL_PROVIDER(auto|google|openrouter|ollama, default:auto)SENTINEL_MODEL(alias or model ID, default:gemini-4-hydrogen)DISRUPTION_CODE_ROOTS(colon-separated extra roots for repo lookup fallback, defaults to~/Code:~/Projects:~/src:~/dev:~)PORT(default:4321)POLL_INTERVAL_MS(default:30000)
npm run dev
npm run scan
npm run cli -- --once --model haiku
npm run cli -- --once --model deepseek
npm run cli -- --once --provider openrouter --model qwen/qwen3-coder
npm run cli -- --once --provider ollama --model llama3.2
npm run cli -- --notify --interval 30
Licensed under the Apache License 2.0.