cd /news/ai-agents/show-hn-sentinel-live-monitoring-too… Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-177470] src=github.com β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Sentinel, live monitoring tool for coding agent sabotage

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.

key 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.

read3 min views6 publishedNov 27, 2026
Show HN: Sentinel, live monitoring tool for coding agent sabotage
Image: Michielbdejong (auto-discovered)

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 claims
    • waiting_for_user β€” d waiting for approval or next instruction
    • completed β€” Task finished cleanly
    • potential_mistake β€” Likely bug, misunderstanding, or discrepancy between claims and actual edits
    • stuck_in_loop β€” Repeating the same failing commands, edits, or reasoning
    • stuck_at_something β€” Blocked on an error, hung process, or stalled while busy
    • ignoring_instructions β€” Contradicting explicit user constraints visible in the terminal
    • taking_bad_initiative β€” Making unrequested risky changes or going off-script
    • sabotaging_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 TTYps /lsof with 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 concretepotentialMistakes and drafts a ready-to-pastemessageToAgent when you should warn or redirect an agent.
  • Adjustable live watch & cost tracking: Polls on an adjustable interval (default30s , 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.

── more in #ai-agents 4 stories Β· sorted by recency
── more on @sentinel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/show-hn-sentinel-liv…] indexed:0 read:3min 2026-11-27 Β· β€”