%3Aquality(90)%2F&w=3840&q=75)
agento11y: open source safety and observability for local coding agents, by Grafana Labs
If there was an incident at your company where an agent leaked credentials or took down production, could you immediately confirm the agent wasn’t yours?
Could you verify which projects your agent touched, which commands they ran, which tools, skills, or MCP servers they reached for, and what it all cost? Neither could we.
The fact is, the least observable software on many developers' laptops these days is the software writing their code. And you don't have to look far to find examples of agents conspiring, escaping, and doing unexpected things with unexpected consequences. Claude Code, Codex, Cursor, Copilot, Pi: they read files, run shell commands, and push to remotes. But each stores its history in a different format and directory. None gives you a complete picture of what the others did, and each has its own configuration for what it is allowed to do.
So we built agento11y, an open source CLI tool from Grafana Labs that shows you what your AI coding agents are actually doing. It runs on your machine and gives you that complete picture by plugging into the coding agents you already use, including Claude Code, Cursor, and Codex. Sessions are recorded locally, and a local app lets you explore usage, cost, tokens, skills, MCPs, tools and session outcomes. Guardrails catch risky actions before they happen, and nothing leaves your machine unless you want it to.
The need for local coding agent oversight
We built agento11y for our own needs, but we feel there's a broader need in the community—and the data backs it up.
Coding agents are already part of everyday work, and no single tool dominates. JetBrains surveyed more than 10,000 professional developers in January and found that 90% regularly use at least one AI tool at work. Usage is spread across tools: Copilot was used by 29% of respondents, Claude Code by 18%, and Cursor by 18%.
What has not kept up is oversight. In EY’s Technology Pulse Poll of 500 senior leaders at large technology companies, 78% said AI adoption was moving faster than their ability to manage the risks. More than half of the AI work happening inside departments had no formal approval or oversight. And when something goes wrong, it rarely looks like an attack.
In September 2026, coding agents pushed more than 13,000 internal company images to public GitHub repositories across more than 300 organizations. GitGuardian measured a 3.2% secret-leak rate in public commits assisted by Claude Code, compared with a 1.5% baseline across public GitHub commits generally. It also found 24,008 unique secrets in public MCP configuration files, 2,117 of which were still valid.
This is just the beginning. As agents are given more and more autonomous responsibility, it is paramount that developers safeguard their environments by monitoring their agents. That is why we are open sourcing it. Monitoring agents is a problem every developer running them shares, so the tooling to solve it should be open for everyone to use, inspect, and improve. Open source has always been at the heart of how we build at Grafana, and we would rather solve this together with the community than alone.
Note: Despite the similar names, agento11y should not be confused with Agent Observability in Grafana Cloud, which lets you monitor agents you've built as well as the coding agents your team uses, providing insights across all your developers' coding agents. The agento11y CLI focuses on your individual usage. Later in this post, we'll show you how to use agento11y alongside Grafana Cloud.
Run your agent with agento11y
Install the agento11y binary once, then start your coding agent through it instead of launching the agent directly:
brew install grafana/grafana/agento11y
agento11y claude --local
agento11y records the session in a local store and opens the app. A built-in importer can also backfill the previous 90 days, so you do not start with an empty dashboard.
You get two things from it:
- Guards that check potentially risky actions before they run
- A record of what your agents actually did
Enable redaction and blocking with guard packs
Open the local app with the agento11y local open command. Under the Security tab, you choose which guard packs to enable. You don't need to write rules yourself, and the packs apply to every agent connected to agento11y. They provide two kinds of protection: redaction and blocking.
Redaction: remove the secret, keep the context
An agent debugging a failed request may encounter an API key in a configuration snippet, an authorization header in a log, or a token in an error message. The surrounding information is useful. The credential itself is not.
Secret redaction masks detected sensitive values. For example:
- An API key becomes
OPENAI_API_KEY=[REDACTED] - An authorization header becomes
Authorization: Bearer [REDACTED] - A GitHub token becomes
GITHUB_TOKEN=[REDACTED]
These examples illustrate the intended result: preserve enough context to understand what happened without exposing the detected credential. Each pack documents which secret patterns it recognizes and what it may miss.
Blocking: stop the tool call before it runs
Some actions should be stopped altogether. For example, an agent might try to read a .env file while investigating a configuration issue. That file could contain production API keys, database passwords, and signing secrets.
With the relevant file-safety rules enabled, a matching tool call is denied before it runs. Instead of receiving the file’s contents, the model receives an explanation of why the action was blocked.
Examples of actions covered by blocking packs include:
- Reading protected files such as .env
- Running destructive Git commands such as
git reset --hard, force pushes, orgit clean -f - Deleting files with
rm -rfand covered variations - Making unsafe permission changes or running disk-wipe commands
You can test your policy without running a dangerous command:
agento11y guards test 'rm -rf ~/.ssh'
This tells you whether your saved policy would block the command, but it doesn't execute it. Instead, every guard pack documents what it does not catch. A file-read rule may catch a direct request for .env without catching the same read hidden inside a script. Knowing those limits is part of using guards effectively.
Custom rules live in one file, guards.toml. The local daemon applies it to every agent that sends it checks. This is important because without one shared file, each agent would have to have its own rules, which means, for example, a command blocked in Claude Code might still run in Cursor. Your protection would only be as strong as the weakest set of rules.
%3Aquality(90)%2F&w=3840&q=75)
Which MCP servers and skills did your agent actually use?
Guards only stop what you've written rules for. So before you write any, it helps to know what your agents are actually reaching for.
Can you name every MCP server and skill your agent used last week? Most of us can't.
That's no surprise. We add an MCP server to try out a new integration, install a skill a teammate recommended, and copy another from a blog post. Then we move on. They stay in the config, and the agent keeps reaching for them long after we've forgotten they're there.
Attackers count on that. In September 2025, a fake Postmark MCP server quietly BCC'd every email it sent to an attacker. In August 2026, Zenity Labs found skills on skills.sh that started out as exact copies of popular skills and were later updated to steal credentials. One set of these skills alone was installed more than 1.7 million times. Every MCP server adds tools you didn't write, and every skill adds instructions your agent follows. You can't guard what you don't know is there.
Open Analytics, go to the Tools tab, and select Only MCP tools. Every MCP tool your agents called is in one list, with calls, failures, and the sessions that used it. The Skills tab does the same for skills.
%3Aquality(90)%2F&w=3840&q=75)
See a server you forgot you installed, or a skill you didn't know was running? Click it, read what the agent sent and what came back, and then decide: guard it or remove it.
See where your agents' work goes
Knowing which tools your agents reach for is one half of the picture. The other half is where their work goes: which repositories they spend the most time in, what kind of files they change, and how much of it ends up merged. The Overview tab on the Analytics page answers that with estimated cost, token usage, languages, and workspaces across every captured session. Three views have been especially useful for us.
Workspaces
Analytics opens with a workspace breakdown sorted by token usage. It shows each repository’s share of the total, along with its number of sessions, tokens, and estimated cost. The distribution is rarely even, and that concentration is the useful part. It shows where agent work is actually going, which is not always where you expect it to go.
%3Aquality(90)%2F&w=3840&q=75)
Languages
The language panel breaks down token usage by language. It is worth checking before assuming where the effort is going. Documentation and configuration files can easily outrank the languages your product is written in. That may be exactly what you want the agent doing. Or it may show that an expensive model is spending most of its budget editing YAML. The shares can overlap because one session may touch several languages.
Branches and merge status
Tokens and cost show how much your agents worked, but not whether that work shipped. The "Branches" view lists every branch your agents touched, with its merge status, sessions, tokens, and cost. A second panel groups that work by outcome:
- Merged
- Open
- Committed directly to a default branch
- Unknown
How much of your agent's work ends up in merged, reviewed code? A high share is a good sign that it's making it into your product.
%3Aquality(90)%2F&w=3840&q=75)
Beyond guards and observability
A guard sees the command it receives, not necessarily what eventually runs. Hide rm -rf / inside a script, and the guard may only see bash cleanup.sh. Guards don't read scripts, expand variables, or follow aliases.
That's why we think of agent security in four layers. agento11y gives you the first two:
- Guards catch ordinary mistakes cheaply, before they run
- Observability tells you what actually happened
For the remaining layers, pair it with:
- Scoped credentials, so what the agent can reach isn't catastrophic
- A sandbox, so the agent can't reach most things at all
Forward usage to your team in Grafana Cloud
agento11y becomes more useful when it is connected to more than one machine.
You can choose to send telemetry to Agent Observability in Grafana Cloud so a team’s sessions appear in one stack. This gives the team a view that no individual developer has: which repositories across the organization the agents are actually working in.
%3Aquality(90)%2F&w=3840&q=75)
You control how much of each session is sent. By default, only metadata is forwarded: the model, token usage, tool names, timing, and estimated cost. Prompts, responses, and tool output stay in each developer’s local store. That lets a team share the overview without sharing everyone’s transcripts.
%3Aquality(90)%2F&w=3840&q=75)
Guards work across the team as well. Rules defined in the stack apply to every session that forwards to it. A rule can be limited to particular agents, models, or tags, so one setup can cover the whole team without treating every session identically. Cloud rules can also perform checks that a local pattern cannot, such as using an LLM judge or a prompt-injection classifier.
Local rules still run first, so developers can keep personal safeguards on top of the shared policy.
Try agento11y today
Security incidents are not slowing down anytime soon. Agents are unpredictable when given a task and often try to find workarounds that lead to disaster. When this happens, it's the developer that’s accountable.
The agento11y CLI is a great first step in safeguarding your environment. It's open source, runs locally, and offers peace of mind.
Give it a try today or check out the documentation before you get started:
- grafana/agento11y contains the plugins and local app
- Local guard packs documents what each pack catches—and what it misses
- The coding-agent observability guide covers setup and local mode
Again, this project is open source. If something is missing or doesn't work the way you expect, let us know by opening an issue in grafana/agento11y.
Grafana Assistant makes it even easier to start using Grafana Cloud. Sign up for a forever-free account to try it today!
%3Aquality(90)%2F&w=3840&q=75)