Agent Sentinel
TARGETMCP & Local Agents
WIREstdio (FD 0 / FD 1)
TELEMETRYJSON-RPC 2.0

The local analytics platform on the stdio wire for MCP & custom agents.

Agent Sentinel sits between your coding agent and its tools. It passively captures tool calls, latency, payloads, and errors into local session files — with zero cloud telemetry and an embedded local cockpit.

Zero cloud · 100% local
$curl -fsSL https://raw.githubusercontent.com/zaninifrancesco/agent-sentinel/main/install.sh | bash
Fig. 01 · stdio wire architectureTransparent Wire Proxy
Client RuntimeAI Agent / Local LLM

Ollama, DeepSeek, Qwen, vLLM, custom agents, or Cursor & Claude Code.

  • • Channel: stdio (fd 0/1)
  • • Framing: JSON-RPC 2.0
On The WireSentinel Local Proxy

Transparent Go proxy observing all frames without adding latency.

  • • Inspect: Raw JSON-RPC frames
  • • Record: Append-only JSONL
  • • Profile: Per-tool ms latency
  • • Observe: Passive capture, zero blocks
Machine TargetMCP Tools & FS

@modelcontextprotocol filesystem, Postgres, Git, Bash PTY, APIs.

  • • Executes with native agent permissions
  • • Returns output & latency upstream
Intercepted Wire Frames (Sample Trace)stdio pipe stream
RECORDtools/call: read_filepath: "src/config.ts"8 ms · 4.8 KiB
REDACTtools/call: query_dbsql: "SELECT * FROM tokens..." (secret redacted)14 ms · standard cap
PROFILEtools/call: run_shellcmd: "npm test -- --reporter=json"240 ms · sampled
Agent Sentinel cockpit · localhost:8848
The Agent Sentinel cockpit. Timeline call waterfall with tool duration lanes, per-call latency samples, status indicators, and payload inspector.
Live local cockpit at http://127.0.0.1:8848 — timeline call waterfall, execution latencies, and payload inspector.

The AI agent black box vs. Sentinel on the wire.

When coding agents run, tool calls happen silently over stdio pipes and IDE hooks. You get no local visibility into where time went, which tool is hanging, which payload exploded in size, or why the same command failed repeatedly across sessions.

Observable VectorDirect Hooks & Stdio (Without Sentinel)Sentinel Local Profiler (On The Wire)
Tool Call VisibilityOpaque terminal buffer; lost as soon as the session closes.Paged waterfall timeline with readable tool names, arguments, and full result inspection.
Execution LatencyNo breakdown; impossible to isolate slow tools from model thinking.Millisecond duration per call, median and p95 percentiles, and concurrency tracking.
Payload VolumeSilent multimegabyte dumps bloat your model context.Retained JSON bytes, response sizes, intelligent secret redaction, and truncation caps.
Historical ActivityFragmented across IDE sessions with no aggregate record.Persistent local catalog (~/.sentinel/sessions/), 24h/7d/30d trends, and project breakdowns.
Data PrivacyCloud observability platforms require sending code to third-party SaaS.100% loopback (127.0.0.1), zero cloud accounts, offline standalone HTML reports.

Every tool call, recorded and measurable.

Sentinel runs as a passive hook collector and transparent MCP stdio proxy. It records every event into append-only JSONL files without interfering with agent execution, asking for approvals, or adding latency.

Follow activity across recordings, filter by period, agent, and project, explore daily trends, and open the sessions behind the metrics.

No cloud accounts, no SaaS subscriptions, and zero data leakage. Everything stays strictly on your machine.

  • Call Waterfall & Timeline

    Primary view

    Paged call waterfall with one lane per call, proportional captured intervals, and available tool durations. Select any row to inspect arguments, outputs, and diffs.

  • Historical Statistics & Catalog

    24h / 7d / 30d

    Track agent usage across sessions with daily UTC call and error trends, breakdowns by agent and project, and a persistent catalog rebuilt from local JSONL files.

  • Call Inspector & Evidence

    Deep inspection

    Full-argument search, duration and response-size sorting, payload text search, file patch diffs, and transformation metadata (observed vs stored bytes).

  • Tool Profiling & Bottlenecks

    Performance

    Ranks longest completed calls, largest retained responses, and recurring error rates so you can spot lagging tools and runaway loops immediately.

  • Capture Profiles & Redaction

    Privacy first

    Standard capture automatically redacts recognized credentials with a 64 KiB cap; full capture retains up to 1 MiB unredacted. Everything stays on loopback.

Inspect real agent calls, timing, and evidence.

Explore an interactive sample of the cockpit's primary workspace. Select any call to inspect its execution timing, raw arguments, output payload, and diffs.

Session: auth-refactor-v2 (Claude Code)
Calls: 6Median: 38 msp95: 490 msJSON: 34.8 KiB
Tool / TargetDuration (Waterfall)
edit_fileOK
38 ms·2.1 KiB
Observed: 2.1 KiB
Stored: 2.1 KiB
Redactions: 0
Time: 14:22:01.412
Call Arguments
Output Evidence / Patch Diff

Interactive sample of the Agent Sentinel cockpit workspace. Navigate calls with keyboard or mouse.

Step-by-step installation

Ready in 30 seconds. Zero config.

Install the single binary, connect passive hooks into your agent of choice, and inspect live call waterfalls on your machine.

01

Install & Launch Collector

1-Line Universal Setup · macOS & Linux

Downloads the prebuilt binary into ~/.sentinel/bin/sentinel and starts the passive background collector on port 8848:

$ curl -fsSL https://raw.githubusercontent.com/zaninifrancesco/agent-sentinel/main/install.sh | bash

Or compile locally: git clone https://github.com/zaninifrancesco/agent-sentinel && cd agent-sentinel && make install.

02

Connect your Agent (Hooks)

Zero blocking · Native flight recorder

Choose your coding tool. Sentinel registers passive hooks that capture execution without altering your agent's permissions.

# Option A: From scratch (installs binary + hooks automatically)
$ curl -fsSL https://raw.githubusercontent.com/zaninifrancesco/agent-sentinel/main/install.sh | bash

# Option B: If Sentinel is already installed on your machine
$ sentinel hook install --dir .

Configures passive hooks in .cursor/hooks.json. Cursor reloads immediately on save. Zero blocking, zero permission changes.

💡 Tip for Cursor Agent: Paste "Configura Agent Sentinel per questo progetto" in the chat and Cursor will execute the install and setup automatically.
03

Verify & Open Local Cockpit

100% Local · Loopback telemetry

Open the local cockpit dashboard to inspect live call waterfalls, tool latency, arguments, and file diffs:

Local Observation Cockpithttp://127.0.0.1:8848 ↗
Open Cockpit
$ curl -sf http://127.0.0.1:8848/api/config

Expected output: {"mode":"observe","policy":"off","approvals":false}. Telemetry is strictly stored on disk in ~/.sentinel/sessions/.

Local by design, transparent about limits.

Private on your machine

  • Runs 100% locally on your machine. Zero cloud services, zero telemetry sent to third parties.
  • Single self-contained Go binary with Vite web cockpit embedded. No Docker, no external database.
  • Passive observation: Sentinel records actions without blocking commands, holding calls, or asking for approvals.
  • Sessions saved on disk as plain JSONL files in ~/.sentinel/sessions/.
  • One-click standalone offline HTML audit report export with zero external scripts or CDN assets.

Limits, stated plainly

  • Tool durations are observed execution intervals from adapters, not LLM thinking or model inference time.
  • Retained JSON sums stored payload bytes, not model token counts or context window fill.
  • Standard capture caps retained payloads at 64 KiB with best-effort sensitive field redaction (full capture allows 1 MiB).
  • macOS and Linux supported (Windows has not been tested).
  • Native lifecycle hook support verified for Cursor Agent and Claude Code.

Complete visibility into your coding agents.

Free, open source, and everything stays on your machine.

Star on GitHub

SETUP WITH YOUR AI AGENT

Paste this prompt into Cursor, Claude Code, or your terminal LLM. Your agent will read the official AGENTS.md playbook, install the binary, configure background observation, and guide you through each check step-by-step.

Install and set up Agent Sentinel for this project.

Run the automated one-line setup or follow https://github.com/zaninifrancesco/agent-sentinel:
1. Run: curl -fsSL https://raw.githubusercontent.com/zaninifrancesco/agent-sentinel/main/install.sh | bash
2. The installer will download the binary, launch the background collector ('~/.sentinel/bin/sentinel serve --mode observe'), configure hooks for your agent, and verify with synthetic events.
3. Once completed, guide me through what you configured and show me how to open http://127.0.0.1:8848 in my browser.