Skip to content
CubityFirstPublic

About

A Windows GUI process supervisor — keep game servers, bots, and other long-running processes alive, with auto-restart, a live console, and config editing.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Vigil

CI Release

A small Windows desktop app that keeps your processes alive. Point it at a program — a game server, a bot, a worker, a script, anything that should stay running — and Vigil launches it, watches it, and restarts it if it stops. It gives you a live console, config-file editing, and a tray icon, all in one window.

Built for game servers and other long-running processes that need babysitting, but it works with any executable or .bat/.cmd script.

Features

  • Auto-restart with backoff — if a process exits or crashes, Vigil restarts it. Exponential backoff prevents crash-loops, and a "healthy uptime" window resets the backoff once a process has run cleanly for a while. Optional give-up limit.
  • Live console — see each server's output in real time and type commands straight into its stdin (e.g. send stop/say/admin commands to a server).
  • Per-server controls — Start, Stop (pause), and Restart, with status at a glance.
  • Groups — organize servers into collapsible folders.
  • Config editor — browse a server's folder (and common subfolders) as a collapsible tree and edit its config files in-app.
  • Add / Edit / Remove servers from the UI — no hand-editing required. The server list is persisted to a servers.toml file.
  • Tray + background — closing the window minimizes to the tray and keeps your servers running; quit from the tray to stop everything cleanly.
  • No console clutter — release builds run as a windowed app (no flashing console), and a rolling log file is written alongside the config.
  • AI agent control — a built-in local MCP server (vigil.exe mcp) lets agents like Hermes or Claude Code check on and manage your servers.

Download

Prebuilt Windows binaries are attached to each Release. They're built with a statically linked C runtime, so they run on any Windows 10/11 (x64) machine without installing anything. Each release includes a .sha256 checksum.

Building

Requires a Rust toolchain (MSVC, x86_64 Windows).

cargo build --release

The binary is target/release/vigil.exe. Assets (icons) are embedded and the C runtime is statically linked (see .cargo/config.toml), so it's a single self-contained executable — just run it.

Usage

Launch vigil.exe. Click + Add to register a process:

  • Command — the program or script to run (a .bat/.cmd is run via cmd /C; any other executable runs directly). Arguments go through directly (no shell), so spaced paths in the command field need no quoting.
  • Args — extra arguments. Split on spaces; use quotes for values that contain spaces (e.g. -Dname="My Thing").
  • Working dir — defaults to the command's own folder.
  • Restart policy — auto-restart, delays, backoff cap, give-up limit.
  • Stop command — optional console command (e.g. stop) written to the process's stdin when Vigil stops it, for a clean shutdown. If the process hasn't exited after Stop timeout seconds, it's killed.

Select a server to see its Console (with a command input) and an Editor tab for its config files.

Where Vigil keeps its data

By default servers.toml and vigil.log live in a data directory next to the executable. You can change it in the Settings dialog. The pointer to that directory is stored in vigil-settings.toml, which sits next to the exe by default and can be relocated with the VIGIL_SETTINGS environment variable (a file path, or a directory to hold the default filename).

Config writes are crash-safe: files are written to a temp file and renamed into place, so a crash or power cut never leaves a half-written servers.toml. If servers.toml can't be parsed at startup (e.g. a hand-edit typo), Vigil copies it to servers.toml.broken-<timestamp> before anything can overwrite it.

Start with Windows

Tick Start Vigil with Windows in the Settings dialog to launch Vigil at sign-in, minimised to the tray. It's a per-user HKCU\...\Run entry that runs vigil.exe --tray, so it also shows up under Task Manager's Startup apps.

AI agents (MCP)

AI agents on the same PC (Hermes, Claude Code, or any MCP client) can manage Vigil: list servers and read their consoles, and (with full control) start, stop, restart, create, edit and remove servers, send console commands, and schedule maintenance file swaps.

  1. In Settings, set Agent control to Read-only or Full control (it's Off by default).

  2. Register vigil.exe mcp as a stdio MCP server in your agent. For Hermes, add this to mcp_servers in its config.yaml, then run /reload-mcp:

    mcp_servers:
      vigil:
        command: 'C:\path\to\vigil.exe'
        args: [mcp]

    For Claude Code: claude mcp add vigil -- C:\path\to\vigil.exe mcp.

vigil mcp doesn't run servers itself. It passes each request to the already-running Vigil over a named pipe that only your Windows user can open, so changes show up live in the window and are saved like any other edit. Every change an agent makes is logged with an [mcp] tag. Vigil has to be running already (the adapter won't launch it), so turn on Start Vigil with Windows.

See servers.example.toml for the config format.

Notes & caveats

  • Windows only for now (uses the system tray and process-tree termination). The core is cross-platform Rust; a Linux/macOS build would need a bit of platform glue.
  • The binary is unsigned, so Windows SmartScreen may warn ("unknown publisher" → More info → Run anyway), and some antivirus may flag it on heuristics — a process supervisor that launches background processes looks suspicious to behavioral scanners. It's a false positive; build it yourself if you'd rather not trust a prebuilt exe.
  • Stop kills the process tree unless a stop command is configured. If your process needs a clean shutdown to avoid data loss (e.g. saving state), set its shutdown command (like stop) in the server's settings — Vigil sends it to the process's stdin and only kills if it doesn't exit in time.

License

MIT.

Icons are from Lucide (ISC License).

About

A Windows GUI process supervisor — keep game servers, bots, and other long-running processes alive, with auto-restart, a live console, and config editing.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages