29 October 2026 / Agent operations

Know which agents are running on your machines

Microsoft's security team says agents are now insiders, and its first rule is knowing which agents exist and what they're doing. On a developer workstation that's harder than it sounds, so I'd start with a plain inventory.

A row of grey equipment cabinets with one open to show stacked hardware modules and bundled cables.
Generated image: Villar David editorial

Microsoft's identity and security team published Agents are your newest insiders on 19 October. Nadim Abdo, who runs identity and network access there, argues that an agent with access to company data and tools carries the same kind of risk as a person with that access. He's careful to say agents aren't malicious. They can make mistakes, be manipulated or be compromised, and they can keep going at machine speed while that happens. The post sets out four responsibilities that run together: know which agents exist, who owns them, why they exist and what they're doing; contain what each agent can reach before it acts; protect the data and tools in its path; and adjust that protection as its behaviour changes.

Most of the post is about Microsoft products, and its worked example is an expense-approval agent in a large company. The part I found most useful is smaller. Microsoft says agents are often "introduced locally without a central deployment process", and it's expanding discovery to 60 types of local agent, including Claude Code, OpenAI Codex and GitHub Copilot. That's a plain admission that a lot of agents now live on developer machines, installed by the developer, with nobody else aware of them. On my own workstation that's exactly the situation, and I'm the developer.

What a workstation actually runs

A typical setup for me now includes a coding agent in the terminal, a background agent gateway handling scheduled jobs and chat, a few model command-line tools, local model servers, and since last week a self-hosted runner that starts containers for a hosted coding agent (I wrote up that setup in [Running Amp Orbs on my own workstation](/blog/running-amp-orbs-on-my-own-workstation)). Each of these can read files, run commands or call external services, and several of them start other processes: shells, browsers, tool servers and containers.

Late on 23 October I noticed the machine was busy for no obvious reason and asked an agent to find which agent instance was using the most CPU. It turned out the background gateway's main thread was spending most of its time polling session lists. A fix for that had already been released, and after the gateway restarted on the new version its CPU use dropped to under 10 percent. While looking, we also found 51 empty, untitled sessions that had built up from interfaces opened and closed before a message was sent. None of that was dangerous. It was just stuff running and accumulating that I hadn't been tracking.

Finding the CPU problem took one question. Working out what else is running and what it can reach takes longer, because the answer is spread across the service manager, the scheduled job lists, the container runtime and each tool's own config folder.

Finding what's there

These are the commands I'd run to build the first list. They're for Linux, with the Mac equivalents where they differ:

  • Services that start by themselves: systemctl --user list-units --type=service --state=running, and the same without --user for system services. On a Mac, launchctl list and the files in ~/Library/LaunchAgents.
  • Scheduled jobs: crontab -l and systemctl --user list-timers, then the scheduler inside each agent tool. Several agent tools keep their own job list that cron knows nothing about.
  • Busy and long-running processes: ps -eo pid,ppid,etime,%cpu,rss,cmd --sort=-%cpu | head -30. Look at the parent process ID, because agents start children, and the parent is the thing you need to account for.
  • Containers: docker ps --format '{{.Names}} {{.Image}} {{.Status}}', then docker inspect on anything you don't recognise to see its mounts and resource limits.
  • Listening ports: ss -ltnp on Linux or lsof -iTCP -sTCP:LISTEN -n -P on a Mac. Local model servers and tool servers usually sit on a localhost port.
  • Tool servers: each coding agent keeps its own list of MCP servers in a config file in your home folder or the project. Find all of them, because the same server can be registered in three tools with three different credentials.

The output is raw material. You'll get plenty of ordinary system processes, and the job is to pick out the agents and the things agents started.

A plain inventory

I'd keep one entry per agent or agent service, with the same fields each time. Here's the entry for the self-hosted runner, using what I checked when I set it up:

  • Name: hosted coding agent runner, local Docker provider.
  • Starts: as a background service on this machine.
  • Owner and reason: me. It runs coding-agent threads in local containers.
  • Can reach: Docker on this machine. Each container has CPU and memory caps, no host folders mounted and no published ports.
  • Sends out: file contents read during a thread, tool output and diffs go to the vendor, where the agent loop and the model run.
  • Logs: the service's own log, and the thread history in the vendor's app.
  • Review when: the runner updates, or a repository-backed project is added.

The list doesn't need special tooling to start. A text file you update when you install something is enough to answer "what is this process?" quickly. If your organisation already runs endpoint security that can discover local agents, it's worth seeing what it finds on your developer machines and comparing that with your own list.

Owners, limits and what to turn off

Every entry on the list should have an owner and a reason to exist. On a personal machine the owner is usually you, but the reason still matters. A scheduled job that nobody remembers setting up is the agent equivalent of an old login nobody turned off.

Microsoft's second responsibility is containment. Its advice is that an agent should start with no permissions and shouldn't inherit all the standing access of its user. On a workstation the default is the opposite. Most agents run as you, so they can read your SSH keys, your cloud credentials and anything your browser is signed in to. That's why I'd note the limits on each entry: which folders are mounted, what resource caps apply, and whether it can reach the Docker socket. Access to the Docker socket is effectively root on that machine, which is far more than most agent jobs need. Running agents in containers with named mounts, or under a separate user account, puts at least some of the controls outside the agent. That matches the point Satya Nadella makes in the Microsoft post, that a model shouldn't be asked to be its own security authority.

Where I'd start

The CPU problem and the empty sessions were harmless, and I only found them because the machine felt slow. Spend half an hour running the commands above on your main machine and write one entry for each agent, agent service and scheduled agent job, with what it can reach and what it sends out. Turn off anything you can't explain. Then put the list somewhere you'll see it the next time you install a new tool, because that's when it goes out of date.

Got a take on this?

Share it on X. I read the replies.

All blogs