devops
Remote server management via SSH
Manage remote applications via SSH. Single codebase, two binaries. Persistent SSH connections, SQLite metadata, command audit logging. Deploy, restart, check health, tail logs.
Features
- Single codebase -> local MCP tool + remote agent (build tags)
- Persistent SSH connections
- SQLite metadata and command audit logging
- Deploy, restart, stop, health check, log tailing
- Content filtering for log output
Install
go install github.com/hegner123/devops@latestThe Problem: Managing remote servers from an AI agent
# AI agents need to deploy code, check health, tail logs.
# Raw SSH commands are error-prone and stateless.
# No audit trail. No persistent connections.
# Every command re-authenticates.Solution
$ devops status --server productionOutput
{"server":"production","host":"10.0.1.5","apps":[{"name":"api","status":"running","pid":12345,"uptime":"3d 14h","port":8080,"health":"ok"},{"name":"worker","status":"running","pid":12346,"uptime":"3d 14h","health":"ok"}]}Comparison
| Metric | Value |
|---|---|
| Architecture | Single codebase, two binaries |
| Connection | Persistent SSH (no re-auth per command) |
| Audit | Full command logging in SQLite |