Check a safety rule against a risky command safely
Grafana Labs released agento11y, a free command-line tool that records what coding agents such as Claude Code, Cursor and Codex do on your laptop. It also blocks risky commands, like reading `.env` files. You can check a rule against a command first without running anything. Everything stays on your machine unless you choose to send it.
Grafana Labs published agento11y on December 2 as an open source command-line tool. It records coding agent sessions in a local store and gives you a local app for usage, cost, tokens, tools, MCP servers and outcomes. Guard packs redact secrets and block risky calls, such as reading `.env` files or running `git reset --hard`, before they run.
The post names Claude Code, Cursor and Codex as supported. Teams can forward session metadata to Grafana Cloud; by default only metadata goes, not prompts or tool output. An importer can backfill 90 days of earlier sessions.
Limits, stated by Grafana: guards only see the command they receive. They do not read scripts, expand variables or follow aliases, so a dangerous command hidden in a script may pass. Team-wide rules that use an AI judge exist only in Grafana Cloud. The post calls it open source but does not name the licence.
New to this? The key idea
Observability means recording what a system does so you can look back and understand it. Guard rules go one step further and stop a bad action before it happens, like a seatbelt rather than a dashcam. Local-first means the recordings stay on your own computer.
Use it at work
Use it for: any developer who runs coding agents locally and wants to see cost and block obvious mistakes.
Try it: the post shows these commands.
brew install grafana/grafana/agento11y
agento11y claude --local
agento11y local open
agento11y guards test 'rm -rf ~/.ssh'
The last one checks a policy without running the command.
Before you roll it out: licence not stated in the post. Data stays local unless you forward metadata to Grafana Cloud. Guards miss commands hidden in scripts, so keep scoped credentials and sandboxing as well.
Summaries are written by AI from the linked source. Always check the original.