Chat-Driven Server Ops With Guardrails: Finch Agent's Remote Host Mini-App
Giving an AI shell access is only viable when the blast radius is bounded. This tool bounds it by forbidding destructive operations, requiring confirmations, and never exposing host credentials to the AI, making delegated ops safer than passing the AI a password.
Finch Agent's Remote Host mini-app turns a chat window into a server operator. Developers type natural-language requests - display host info, restart services, diagnose issues, edit files - and the choice of host determines what the AI touches. Every command is recorded in the host's operation log, so actions stay auditable.
The safety layer is the core. Command whitelists and blacklists use glob syntax, and four confirmation strategies range from asking on every command to auto-allowing reads while querying on writes. Built-in rules forbid deleting the root directory or top-level dirs like /var, /home, /etc, plus raw disk writes, fork, and shutdown/reboot. Sensitive operations still require a manual login, and host IP, account, and password never enter the AI chat context - they remain inside the mini-app's host configuration.
Keeping server credentials inside the mini-app rather than the chat context reduces the chance of them leaking into a model's training or response, but it also shifts trust from the AI to the mini-app itself.
The mandatory block on shutdown and root deletion reflects a threat model that treats irreversible destructive actions as outside the scope of AI confirmation loops, no matter what the operator agrees to.