Skip to content
News

AI insights

Grafana Labs agento11y: Local Guardrails & MCP Audit for Coding Agents

How Grafana Labs' open-source agento11y CLI blocks .env leaks and destructive commands, redacts secrets, and audits MCP tools across Claude Code, Cursor, and Codex.

Grafana Labs agento11y: Local Guardrails & MCP Audit for Coding Agents

Q. I use Claude Code, Cursor, and Codex side by side—can I block dangerous commands like reading .env and log every agent action in one place? Yes. agento11y, open-sourced by Grafana Labs on December 2, 2026, puts a single local guardrail and session-audit dashboard in front of your coding agents. Launch your agent through it (agento11y claude --local) to record every tool, MCP, and skill call locally and stop risky actions before they execute.

⚠️ Accuracy guardrail: This post was written on December 3, 2026 based directly on the official Grafana Labs blog announcement (Dec 2, 2026) and the grafana/agento11y GitHub repository (Apache 2.0). Supported agent integrations and regex coverage in guard packs may change across releases, and local pattern guards do not inspect inside shell scripts (such as bash cleanup.sh) or expand environment variables and aliases.

30-second summary

  • Unified local oversight: Consolidates session logs, token usage, and estimated cost across Claude Code, Cursor, Codex, Copilot CLI, OpenCode, and more inside one local app (agento11y local open), with a built-in 90-day session backfill importer.
  • Pre-execution blocking & secret redaction: Blocks .env reads, git reset --hard, force pushes, and rm -rf before they run, while masking detected API keys and tokens as [REDACTED] in logs.
  • MCP & skill supply-chain audit: Inspect every MCP tool (Analytics > Tools > Only MCP tools) and skill your agents actually invoked, along with inputs, outputs, and failure counts.
  • Shared guards.toml policy: Enforce one rule set across every connected coding agent and dry-run policies safely with agento11y guards test.

Why local coding agent oversight matters now

On many developer laptops today, the least observable software is the AI agent writing the code. According to JetBrains' January 2026 survey of over 10,000 professional developers, 90% regularly use AI tools at work across fragmented setups—Copilot (29%), Claude Code (18%), and Cursor (18%).

Oversight has lagged behind adoption. EY's Technology Pulse Poll of 500 senior tech leaders found 78% believe AI adoption is outpacing risk management. In September 2026, coding agents exposed more than 13,000 internal images across 300+ organizations to public GitHub repos, and GitGuardian measured a 3.2% secret-leak rate in Claude Code-assisted public commits—more than double the 1.5% public GitHub baseline—alongside 24,008 unique secrets in public MCP configs (2,117 still valid).

Developer workstation running a local coding agent security audit dashboard

Advertisement

Installing agento11y and supported agents

agento11y is an Apache 2.0 open-source CLI (github.com/grafana/agento11y) that wraps your existing coding agent launches rather than replacing the agents themselves.

# macOS (Homebrew)
brew install grafana/grafana/agento11y

# Linux / macOS quick install
curl -fsSL https://raw.githubusercontent.com/grafana/agento11y/main/plugins/agento11y/scripts/install.sh | sh

# Run Claude Code in local mode
agento11y claude --local

According to the official repository README, the shared launcher supports Cursor, Claude Code, Codex, Copilot CLI, OpenCode, Pi, Vibe, and experimental Kiro CLI. Note that Hermes is not supported by the shared launcher and requires its separate Python plugin guide. Running agento11y local open launches the local dashboard with zero data leaving your machine by default.

Pre-execution blocking & redaction: how guard packs work

Inside the Security tab of the local app, you can toggle built-in guard packs without writing custom regex rules from scratch. Protection works in two modes: Redaction and Blocking.

agento11y core architecture: local guardrails and observability pipeline

Mode Target Examples Behavior
Secret redaction OPENAI_API_KEY, Authorization: Bearer, GITHUB_TOKEN Preserves debugging context while replacing secrets with [REDACTED]
File safety blocking Reading or writing .env and protected files Denies tool call before execution and explains why to the model
Git safety blocking git reset --hard, force pushes, git clean -f Prevents accidental loss of uncommitted work or history rewrites
Destructive command blocking rm -rf, unsafe chmod/chown, disk-wipe commands Stops dangerous shell tool calls before they run

Custom rules live in a single file, ~/.config/agento11y/guards.toml. Because every agent routes checks through the same local daemon, you avoid the weak-link problem where a command blocked in Claude Code still runs in Cursor. You can test rules without executing anything via agento11y guards test 'rm -rf ~/.ssh'.

Security tab in the agento11y local app showing guard pack toggles

Q. Do guard packs catch 100% of dangerous agent actions? No. As Grafana Labs notes, local guards only inspect the command string passed to the tool. If rm -rf / is hidden inside cleanup.sh and the agent calls bash cleanup.sh, local guards do not parse script bodies, expand variables, or resolve aliases.

Auditing forgotten MCP servers, skills, and merge outcomes

Config drift is one of the biggest blind spots in agentic workflows. In September 2025, a malicious Postmark MCP server quietly BCC'd outbound emails to an attacker, and in August 2026 Zenity Labs uncovered cloned skills on skills.sh updated to steal credentials (installed over 1.7 million times).

Opening Analytics > Tools > Only MCP tools or the Skills tab in agento11y lists every MCP tool and skill your agents called, including failure rates and captured payloads. The Overview and Branches views also break down token spend by repository and language (showing if an expensive model is mostly editing YAML) and track how much agent work actually ends up Merged.

Teams that want shared visibility can optionally forward telemetry to Grafana Cloud Agent Observability. By default, prompts, responses, and tool outputs stay on each developer's machine while only metadata (model, tokens, tool names, timing, estimated cost) is forwarded, and cloud rules can add LLM-judge or prompt-injection checks on top of local guards.

Toris's take

When to adopt agento11y right away: If you switch between two or more coding agents (such as Claude Code, Cursor, and Codex) and want immediate visibility into token spend plus a shared safety net against .env leaks or git reset --hard, agento11y is a practical drop-in addition. Pairing it with scoped credential tools like AWS Credential Daemon (credsd) or GitHub Copilot CLI 1.0.119's subprocess restrictions strengthens defense in depth.

When it is not enough: If your agents run arbitrary shell scripts or hold broad production credentials, pattern-based guards alone will not save you. Grafana Labs frames agent security in four layers (Guards → Observability → Scoped credentials → Sandbox); agento11y covers the first two, so high-risk workflows still belong inside scoped tokens and isolated sandboxes.

Sources

Advertisement