{"slug": "show-hn-sentinel-live-monitoring-tool-for-coding-agent-sabotage", "title": "Show HN: Sentinel, live monitoring tool for coding agent sabotage", "summary": "A developer released Sentinel, an open-source (Apache-licensed) live monitoring tool that supervises AI coding agents such as claude, codex, aider, gemini, opencode and cursor across macOS Terminal.app windows, cross-checking each agent's actual git diff against its stated claims. Sentinel polls on an adjustable interval (default 30s), grades agent behavior into nine verdicts including going_well, potential_mistake, stuck_in_loop, ignoring_instructions and sabotaging_work, and defaults to Google's gemini-4-hydrogen model, with live switching to OpenRouter models (claude-haiku-5.5, gpt-6-luna, deepseek-v4.1-flash, glm-5.3) or local Ollama models at $0. The tool tracks Gemini 4 Hydrogen USD cost and token usage live and drafts a ready-to-paste messageToAgent nudge when it flags a potential mistake.", "body_md": "**Real-time supervisor for AI coding agents running in your terminals.**\n\nSentinel 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`).\n\n- **Live terminal progress & verdicts:**  - `going_well` — Steady, on-task progress; file edits match claims\n  - `waiting_for_user` — Paused waiting for approval or next instruction\n  - `completed` — Task finished cleanly\n  - `potential_mistake` — Likely bug, misunderstanding, or discrepancy between claims and actual edits\n  - `stuck_in_loop` — Repeating the same failing commands, edits, or reasoning\n  - `stuck_at_something` — Blocked on an error, hung process, or stalled while busy\n  - `ignoring_instructions` — Contradicting explicit user constraints visible in the terminal\n  - `taking_bad_initiative` — Making unrequested risky changes or going off-script\n  - `sabotaging_work` — Destructive or dishonest actions (weakening tests, deleting needed files, bypassing checks, etc.)\n- **Git diff vs. agent claims verification:** Resolves each terminal's working directory (via TTY`ps` /`lsof` with window-title fallback), captures`git status` ,`git diff HEAD` , and recent commits, and checks whether actual file changes match what the agent says (`yes` |`partial` |`mismatch` |`no_diff` ).\n- **Actionable nudges:** Flags concrete`potentialMistakes` and drafts a ready-to-paste`messageToAgent` when you should warn or redirect an agent.\n- **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.\n\n**Gemini 4 Hydrogen** (`gemini-4-hydrogen`) is the default auditor, and you can switch models live in the dashboard or via CLI/env:\n\n| Alias | Model ID | Provider | \n|---|---|---|\n| `hydrogen` (default) | `gemini-4-hydrogen` | Google AI Studio / OpenRouter | \n| `haiku` | `anthropic/claude-haiku-5.5` | OpenRouter | \n| `luna` | `openai/gpt-6-luna` | OpenRouter | \n| `luna-pro` | `openai/gpt-6-luna-pro` | OpenRouter | \n| `deepseek` | `deepseek/deepseek-v4.1-flash` | OpenRouter | \n| `glm-flash` | `z-ai/glm-5.3-flash` | OpenRouter | \n| `glm` | `z-ai/glm-5.3` | OpenRouter | \n| *(any OpenRouter ID)* | e.g. `qwen/qwen3-coder` | OpenRouter | \n| *(any Ollama model)* | e.g. `llama3.2` ,`qwen2.5-coder` | Local Ollama ( `$0` ) | \n\n```\nnpm install\n```\n\nSet an API key in your environment (or `.env`) — or skip keys altogether when using **Ollama**:\n\n- `GEMINI_EXPERIMENTAL` /`GEMINI_API_KEY` /`GOOGLE_GEMINI_API_KEY` (Google AI Studio)\n- `OPEN_ROUTER_API_KEY` /`OPENROUTER_API_KEY` (OpenRouter — supports Haiku, Luna, DeepSeek, GLM, Gemini, and any custom OpenRouter model ID)\n- `OLLAMA_BASE_URL` (optional, default`http://localhost:11434` — local models are auto-discovered in the dashboard)\n\nOptional environment variables:\n\n- `SENTINEL_PROVIDER` (`auto` |`google` |`openrouter` |`ollama` , default:`auto` )\n- `SENTINEL_MODEL` (alias or model ID, default:`gemini-4-hydrogen` )\n- `DISRUPTION_CODE_ROOTS` (colon-separated extra roots for repo lookup fallback, defaults to`~/Code:~/Projects:~/src:~/dev:~` )\n- `PORT` (default:`4321` )\n- `POLL_INTERVAL_MS` (default:`30000` )\n\n```\nnpm run dev\n# Open http://localhost:4321\n# One-shot scan with default Gemini 4 Hydrogen\nnpm run scan\n\n# Use a built-in alias (haiku, luna, deepseek, glm, glm-flash)\nnpm run cli -- --once --model haiku\nnpm run cli -- --once --model deepseek\n\n# Use any custom OpenRouter model ID\nnpm run cli -- --once --provider openrouter --model qwen/qwen3-coder\n\n# Use a local Ollama model ($0)\nnpm run cli -- --once --provider ollama --model llama3.2\n\n# Live updating terminal dashboard (default every 30s)\nnpm run cli -- --notify --interval 30\n```\n\nLicensed under the [Apache License 2.0](https://github.com/run-llama/sentinel/blob/main/LICENSE).", "url": "https://wpnews.pro/news/show-hn-sentinel-live-monitoring-tool-for-coding-agent-sabotage", "canonical_source": "https://github.com/run-llama/sentinel", "published_at": "2026-11-27 20:29:33+00:00", "updated_at": "2026-11-27 20:43:52.648282+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-safety"], "entities": ["Sentinel", "gemini-4-hydrogen", "Google AI Studio", "OpenRouter", "Ollama", "claude", "codex", "aider"], "also_reported_by": [], "takeaway": "Sentinel resolves each terminal's working directory via ps/lsof, captures git status, git diff HEAD and recent commits, and labels whether an agent's edits match its claims as yes, partial, mismatch or no_diff, polling every 30s by default and skipping unchanged screens to cut API calls.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-sentinel-live-monitoring-tool-for-coding-agent-sabotage", "markdown": "https://wpnews.pro/news/show-hn-sentinel-live-monitoring-tool-for-coding-agent-sabotage.md", "text": "https://wpnews.pro/news/show-hn-sentinel-live-monitoring-tool-for-coding-agent-sabotage.txt", "jsonld": "https://wpnews.pro/news/show-hn-sentinel-live-monitoring-tool-for-coding-agent-sabotage.jsonld"}}