The institute runs its own servers, and somebody has to look after them. This section describes Wingman, a small service that lets an AI agent — a language model that can call tools and act on the results, rather than only answer questions — do part of that work without holding any of the access. Wingman has two components with different focus: the Wingman agent does project work together with the administrator (Workflow, Technical Details), and Sentinel watches the servers by itself on a schedule (Sentinel workflow, Sentinel details).
The problem
Looking after the institute’s servers means two different kinds of work:
- Project-based administration: tasks with a beginning and an end, which a person starts, such as an upgrade, a new service or a fault to repair.
- Continuous monitoring: watching every server, all the time, for the full disk, the failing drive or the dead service, and noticing it before a user does. This work has neither a beginning nor an end.
Both are hard for the same reason. The servers of an institute are not a uniform fleet. They were bought at different times for different purposes, run different Linux distributions and versions, and each carries the services and the accumulated configuration of its own history. Tools that stamp one configuration onto many identical machines, such as Puppet or Ansible, help little here; what makes project work time-consuming is that every machine is a special case, and every task starts by finding out how this particular one is set up. Monitoring meets the same variety: no single set of thresholds fits every server, and the output of every check on every server is more than a person can read.
Variety of this kind is where an agent shines. Half of system administration is reading: logs, package lists, running processes, configuration files. An agent reads faster than a person, knows the commands and conventions of every distribution, adapts to whatever it finds on the machine in front of it, and writes the report at the end. The other half is doing: installing updates, finding out why a service crashed in the night and bringing it back, setting up a new service, removing one that nobody uses any more. An agent is good at this too, and it is the half that saves an administrator the most time, because each of those jobs is a chain of commands that has to be composed, run and checked, and composed differently on the next host.
Doing needs write access. To reach a server at all, the agent needs SSH — the encrypted remote login that administrators use to reach a machine — and usually the right to become root, the account that can change anything. One mistyped command with those rights is not a bad afternoon but a restore from backup.
The usual answers do not fit. A read-only account rules out half the legitimate work. A list of allowed commands is either too short to be useful or too long for anyone to have reasoned about. Asking the agent to be careful is not a mitigation; it is the absence of one.
There is a second constraint, and it decides which models may be used at all. What an IT administrator sees is confidential: user names, mail, home directories, the layout of the network, the findings of a security review. None of it may leave the institute network, so a service that sends a prompt to a commercial model on the internet is out of the question. Wingman therefore runs only on open-weight models hosted on the institute’s own GPUs: models whose trained weights are published and can be run locally. Everything the agent reads and writes stays on the premises.
The solution
The Wingman project answers each kind of work with one part:
- Wingman is the name of the whole project and of its agent for interactive work. The Wingman agent does project work together with the administrator: it proposes each command, and a person approves it.
- Sentinel is the autonomous part. It runs read-only check scripts on every server on a schedule, and its own agent, the Sentinel agent, reads the results and keeps a list of the problems it found.
Both parts rest on one principle: the agents are split from the key. Each agent runs in a sandbox and holds no SSH key, no password and no route to the servers. A small service on the administrator’s own machine, the Wingman service, keeps the SSH key and the master data, the list of servers it may reach. Nothing touches a server that a person has not approved. The administrator approves each command of the Wingman agent on its own, and each Sentinel check once, when saving it.
Wingman, the agent for interactive work
The Wingman agent runs inside a secdev sandbox. What it has is a set of tools to run commands on remote hosts — look up a host, run a command, start a long-running one, copy a file, search the history — offered over MCP, a standard way for an agent to call a tool that lives in another program.
On the other side of that channel, the Wingman service turns every request into a card. Every request the agent makes appears as a card in a browser dashboard: the host, whether root is needed, the exact command, and the reason the agent gave. The administrator allows it once, allows commands made of the same programs for good, or declines with a note. Only an approved request opens an SSH connection. The agent receives the result and nothing else. Beside its requests, the agent keeps the admin wiki, a folder of pages in its workspace about the servers, the services and planned changes, which the administrator reads in Obsidian, a Markdown editor. The following diagram shows the path of one request, with the three windows the administrator works in drawn in colour:
In use, the administrator works in these three windows side by side:
- The admin wiki in Obsidian (violet in the diagram above), where the administrator reviews the agent’s plans, and which serves the agent as a persistent, structured memory of complex tasks.
- The agent’s terminal (orange), running inside the sandbox, where the administrator gives the agent its tasks and approves its plans.
- The dashboard (cyan) in the administrator’s browser, served by the Wingman service on the administrator’s own machine, where each request arrives as a card to allow or decline.
The screenshot below shows the three windows during one task. The agent has written a plan for freeing space on a backup volume, the administrator has approved it, and the agent has submitted the plan’s second step. The step waits as a card in the dashboard, and nothing has reached the server yet:
(enlarge)Every request card that waits for a decision also carries a risk mark, to guide the decision rather than make it. A small classifier, a model trained on shell commands that runs on the administrator’s machine, reads the command before the person does and rates how destructive it could be: red and blinking for a command that could delete data or break a system, orange for one that deserves a closer look, green for one that only reads. The classifier sees nothing but the command text, needs no network, and answers in a few milliseconds, so the mark is on the card by the time the person reads it. It is a classification, not a verdict: the person still decides, and a green mark does not approve anything.
The same card is where root enters the request path. Wingman keeps each
server’s sudo password (the password the sudo command asks for before
running something as root) in its encrypted vault, and a card that needs
root shows Use stored sudo password, already ticked. Wingman supplies the
password to sudo over the SSH connection it opens for the approved command
and never shows it to the agent, which sees only the command’s output.
Some services need an account password of their own, a database superuser for
example. The administrator keeps such passwords in an encrypted store in the
dashboard, and the agent never sees them. Where a command needs one, the agent
writes a placeholder that names the stored password, such as
{{secret:db-admin}}. Only after the person approves the command does Wingman
put the password in its place, and Wingman removes the password from everything
that comes back.
Sentinel, the autonomous checks
Sentinel watches the fleet without being asked. The administrator chooses the
checks once — ready-made scripts for disks, RAID arrays, services, updates,
known vulnerabilities and more — together with the servers they run on and a
schedule. From then on Sentinel sends each check to its servers by itself,
over the same SSH connection as an approved command. The Sentinel agent, in
a container of its own, reads every result and records what it finds in an
issue database: one entry, an issue, per problem, with an urgency from
critical to info and the list of servers it affects. The agent adds an
issue when a problem appears and clears it when the problem is gone. The Sentinel agent
cannot run a command; for a critical problem it alerts the administrator by
Mattermost or e-mail. The Sentinel page of the dashboard shows the state of
the fleet at a glance:
(enlarge)How Wingman and Sentinel interact
The two parts meet in the dashboard, which shows the open issues from Sentinel’s issue database. An issue goes from there to the Wingman agent with one click, Work on this. The agent reads the issue and the wiki pages of the affected servers, proposes a fix or a plan, and the fix then runs through the same approval cards as any other task; the next Sentinel check confirms it. The following diagram shows both parts around the one service that holds the key:
What the administrator gains
In effect, the administrator gains a second administrator that does not sleep: the Wingman agent takes on the reading and doing of project work, and Sentinel watches the servers around the clock. In detail, the administrator gains the following:
- Speed on every server. The agent knows the commands of every distribution, never has to look up a flag, and is on any server in the master data the moment it is asked. In the first tests, the time the administrator spent logged into servers over SSH dropped by more than half.
- Less tedium, same control. The agent collects the evidence, writes the report, and composes, runs and verifies the fix. The person decides, and a decision costs one keystroke; a routine read-only command can be approved for good, so the dashboard interrupts only for requests worth a look.
- Problems found before users notice them. Sentinel checks every server on its schedule, so the day starts with a short list of issues sorted by urgency, and anything critical arrives as an alert.
- Plans for larger changes. The agent writes a plan into the wiki first, and the administrator reviews the plan as a whole before approving its commands one by one.
- Passwords kept out of the conversation. The administrator types a service or sudo password once, into the dashboard. The agent can then use the password without it ever appearing in the chat, the agent’s context or its results.
- A complete record. The history keeps every request, approved, refused, expired or cancelled, with secrets stripped out, and answers the question of what the agent has been doing.
Wingman is available to university members on TIK GitHub under AGPL-3.0-or-later.