Back to browse
GitHub Repository

Audit trail and cost tracker for AI coding agents. See exactly what Claude Code and Cursor read, wrote, and executed - locally, in real time.

4 starsRust

Vigilo – Local audit trail and cost tracker for AI coding agents

by idanr3011·Feb 24, 2026·2 points·5 comments

AI Analysis

●●●BangerSolve My ProblemSlick

MCP server that audits Claude Code and Cursor without any cloud dependency.

Strengths
  • Captures unified diffs and token counts with zero code changes to agents
  • Real-time dashboard and queryable stats ($69.16 cost visibility in minutes)
  • Encryption at rest (AES-256-GCM) with key stored locally in ~/.vigilo/
Weaknesses
  • Only works with Claude Code and Cursor, not arbitrary agents or APIs
  • No export formats beyond JSONL, limiting integration with external cost platforms
Target Audience

Developers using Claude Code or Cursor for AI-assisted coding

Similar To

LocatorJS · PostToolUse hooks · MCP servers

Post Description

I realized I'd spent $197 in a single day using Claude Code and Cursor without any visibility into what they were actually doing. No breakdown of which operations cost what, no record of what files were read or written, no way to audit what the agent executed on my behalf.

So I built vigilo.

It sits between your AI agent and your system as an MCP server, logging every tool call — file reads, writes, shell commands, git operations — to a local append-only JSONL ledger. For write operations it captures a unified diff. Every event gets a risk level (read/write/exec), timing, git context, model, and token count.

Nothing leaves your machine. No accounts, no telemetry, no cloud. Arguments and results can be encrypted at rest with AES-256-GCM — the key never leaves ~/.vigilo/.

Works with Claude Code and Cursor. Claude Code uses MCP + a PostToolUse hook to capture both MCP tools and built-in tools (Read, Write, Bash, Edit). Cursor uses MCP + cursor.com's API for real per-request token and cost data.

The CLI gives you: - vigilo view — full session history with collapsible events, diffs, costs - vigilo stats — aggregate breakdown by tool, file, model, project - vigilo watch — live tail as events happen - vigilo dashboard — real-time web UI with SSE live feed, time-series charts, session explorer - vigilo cursor-usage — actual billing data pulled from cursor.com

The ledger is plain JSONL, rotates at 10MB, optionally encrypted. You can export to CSV or JSON anytime.

Built in Rust.

Similar Projects

Security●●Solid

Agent-pd – A zero-token audit log to catch rogue Claude Code subagents

Catches denied calls that never reach transcripts—six detectors at zero token cost.

Big BrainNiche Gem
softie123
624d ago