I did something slightly narcissistic recently: I queried my own AI-agent session database and counted what I actually ask the agent to do. Six hundred and thirty unique prompts, months of sessions across more than a dozen projects. If you have ever wondered whether an autonomous coding agent is worth wiring into your real infrastructure - here are the receipts.


There is already a name for this: AgenticOps

Operations has evolved in waves, each one replacing handwork with a layer of intent:

  1. Manual ops - SSH in, run commands, remember everything yourself.
  2. Scripts - the repetitive commands become PowerShell/bash files.
  3. Infrastructure as Code (IaC) - machines are described in version-controlled files instead of clicked into existence.
  4. CI/CD - pipelines, not people, ship the changes.
  5. AIOps - machine learning watches the system and tells you what is wrong; you still do the work.
  6. AgenticOps - an AI agent does the work: it reasons about the goal, runs the commands, verifies the result, and reports back. You define the scope and approve the risky moves.

The industry positions AgenticOps explicitly as the step beyond AIOps: not stopping at alerts and recommendations, but acting - with a human in the loop, not in the way. Vendors published frameworks for it in 2026; the pattern is real and landing in production teams everywhere.

This article is that same pattern built personally and privately: my own machines, my own agent, models hosted on my own network. Call it self-hosted, or sovereign, AgenticOps.


First, the part that is non-negotiable: nothing leaves my network

I do not use cloud-hosted models. The agent runs against AI models hosted on my own network - I set them up, they live behind my firewall, and prompts, code, repository contents, environment variables and anything a session ever touches never go out to a third-party model API.

That is not a cost decision or a hobby flex. It is a security decision. The moment you let an agent act on your machines - run shell commands, edit deployment files, read config, hold SSH sessions - every prompt is effectively a log of your infrastructure. Sending that to a cloud model means your private topology, your package versions, your failure modes all become someone else’s telemetry. Self-hosting removes the whole category of problem. The agent is powerful precisely because it touches real systems; that is exactly why the model driving it must stay home.

Any agent that can run commands, read files and work with git will do for this article. I use several agents for different jobs - OpenCode is the example here - usually from a Windows workstation driving both the Windows side and a set of Linux machines over SSH, but the workflow is tool-agnostic.


An agent is not a chatbot with sudo - until it is

The difference between an assistant and an agent is verbs. An assistant answers. An agent: connects, compiles, copies, deploys, checks, verifies, rolls back. Once the agent can run PowerShell and SSH as me, "explain how to deploy" and "deploy it and prove it works" become completely different products.

Here is what that looks like in the numbers from my own history:

What I delegateShare of my prompts (audit)
Building, shipping and deploying Docker images~17%
Analysis, explanation, code review, investigation~16%
Writing and fixing code~13%
Git operations (staging, repo parity checks)~8%
Verification batteries and production checks~6%
Package/library upgrades and system updates~6%
SSH into Linux/Windows machines, inspect and manage them~5%
Dependency vulnerability scans and fixes~3.5%
Everything else (tests, content, transfers, misc)the rest

Deployment and operations - the stuff that used to eat my evenings - is the single biggest bucket. Chat about code is a minority of usage. That ratio surprised me; it shouldn’t have.


A day of delegating, reconstructed from real sessions

"Compile locally, ship to production, prove it is up"

The most-repeated pattern in my log. The actual prompts, lightly anonymized:

I want the website in that folder to be built for Docker locally and deployed to production. Confirm you can compile locally and which image you will publish.

yes, proceed with building locally and deploy

where did you compile the docker images - on this computer as I asked, or on the server?

compile new images locally with all production details, deploy to the remote server; do not compile anything on the remote server

The agent builds the Linux image on my workstation, docker saves a tar, ships it over SSH to the remote server, docker loads it, brings the container up with --no-build, then runs a verification battery: container healthy, server-local endpoints on localhost, the public domain returning correct status codes for key routes, error logs scanned for anything severe, and a rollback tag pinned on the previous image before anything moved. Two sentences of intent, minutes of wall clock. The manual version of that loop was always 30-60 minutes of typing and praying, or an hour of "wait, wrong architecture" if I was unlucky.

Fleet ops over SSH, no terminal zoo

There must be a copy of this project on the remote server. Find out if it exists, which branch it is on, whether anything is uncommitted, and whether it matches this machine.

Is the branch on this computer the same as the one on the remote? Same commits?

The agent SSHes into the Linux machines, inspects git state, diffs local against remote checkouts, and reports parity in one screen. It also discovered, documented, and now maintains the access configuration itself - the SSH aliases and Docker contexts got written into the repo’s AGENTS.md by the agent, so the next session starts already knowing how to reach every machine. Documentation that stays true because the person writing it is the person doing the work - except the person is the agent.

Dependency vulnerabilities: scan, fix, prove

Check if there are any vulnerabilities in the dependencies of this repo.

Fix all vulnerabilities. Ensure lint, type checking and unit tests all run successfully.

Do not upgrade one specific library - everything else go.

A dependency audit that used to be a half-day of npm outdated / dotnet outdated cross-referenced against advisories is now a prompt. The agent fixes what is fixable, keeps the CVE-pinned versions pinned (it can read the security comments I leave in Dockerfiles), runs the test suite, and stages only the files it touched. The staged-files discipline matters: I always get to decide what becomes a commit.

Upgrades with a human on the gate

Do 3 changes one by one, running all tests successfully and asking me to confirm before the next step: 1) safe same-major upgrades 2) major upgrades 3) the TypeScript bump.

This is what an agent should feel like: a senior engineer who reports after each increment and never barrels through three risky upgrades to show you a green build at the end.

Another Windows machine, no remote-desktop zoo

Windows boxes get the same treatment over the network, no third-party remote-control software needed:

What can I do to manage a remote Windows 11 computer from this machine? I want to run apps, install apps, and so on.

Install the tooling I use to open and print my 3D models on that machine.

Completely uninstall that game and clean up its leftover folders.

Check if there is a newer version of this software on the other machine, comparing versions. Do not install it yet.

Install, uninstall with leftover cleanup, version comparison across machines - all as one-liners from my desk, with the same read-first, confirm-before-you-write discipline. The agent also explained how the remote-management transport works (and how to enable it) before touching a single setting, because I asked it to explain first and install later. When I need to trial risky software, I ask for it on a second machine that has its own agent - "use it to test without touching configuration on this laptop" - so experiments stay contained by architecture, not by hope.

Several agents, several OSes, several sites - including the phone in my pocket

OpenCode is the example in this article, not the only agent I run. Different agents take different jobs, and they are not all on one machine: a second computer runs its own agent for risky trials, so an experiment can be contained per machine instead of per wish.

What ties the fleet together is geography. A Windows workstation, Linux servers, another Windows box and the network itself sit in different physical locations and are joined by my own private networking, not public endpoints - and I can reach most of them from anywhere, including from my phone. So delegation does not depend on where I am standing: assign a task, check a deployment, troubleshoot a problem - from a terminal on the workstation or a browser on the phone, an agent inside my network does the actual work. The rule from the beginning of this article is what makes that comfortable rather than reckless: the "remote" in remote access is always my own network.

Publishing is a pipeline now, not a ritual

For this blog: "publish this markdown file as an article with today’s date" turns into: HTML built to the template, manifest updated, sitemap and RSS regenerated by the real build tool, local test server, status-code battery, commit, image rebuilt and deployed, public verification. I audited a past session that published an article; the agent asked me to fix its own gaps ("did you follow the README?") better than most release managers.

And the images themselves

Agents also cut the thing they travel on: I had one agent run a measured Docker-image slimming pass across the fleet - four production images lost 37-74% of their size, every change backed by layer measurements, A/B smoke tests, and instant rollback tags. On self-hosted Linux infrastructure where images ship as tars over SSH, smaller images are faster patches.


The guardrails that make delegation safe

None of the above works if you do not fence the agent in. What I enforce, learned the hard way or the smart way:

  1. Self-hosted models. Infrastructure telemetry never crosses the internet.
  2. Read-only first. Default posture is inspect; mutating the remote requires my explicit words ("deploy", "commit", "update").
  3. Rollback before touch. Any change to a running remote server starts with a rollback tag on the current state. The agent documents the inventory afterwards.
  4. Deployments and commits are gated by human sentences. An agent may build a thousand images; it publishes nothing until I say so.
  5. Scope is written down. "Do not compile anything on the server." "Do not deploy yet." The agent obeys scope lines better than it obeys vibes.
  6. Verification is part of the task, not an afterthought. "Deploy and check it is available in production" is a single request; the battery is non-optional.

The honest time math

The pitch "it saves hours" needs a receipt, so here is mine. The repetitive operational work in the audit - deploys, checks, upgrades, git chores, vulnerability fixes - is comfortably 6-10 hours a week of typing when I do it by hand. Delegated, my cost is roughly the reading time: a few minutes to phrase the ask, minutes to review what came back. The real saving is not minutes - it is context switches. A deploy-and-verify loop no longer interrupts whatever I was thinking about; it interrupts with a result.


What I do not delegate

Production databases with write access, anything involving secrets I have not scoped, DNS and firewall changes, and judgment calls about what to build. The agent is given hands, not taste.


Start here

If you want the same: run an agent that can execute, point it at self-hosted models if your work is sensitive, teach it your infrastructure in an AGENTS.md, make it write rollback nets before it touches anything, and start with the most boring repetitive task you have. My boring task was deploying Docker images to Linux boxes. The audit says it is still my most common one - I just stopped doing it myself.