Agentic Gateway & term-web: Multi-Service HTTPS Supervisor
[!NOTE]
Executive Overview
Attribute Details Status π οΈ Active Production (Live on nur) What It Is Hardened Node.js process supervisor and unified HTTPS gateway ( term-web) serving dev services securely over Tailscale.Core Problem & Solution Managing multiple remote developer services and web terminals across SSH is brittle on mobile devices. Agentic Gateway consolidates 6 essential engineering surfaces into one authenticated HTTPS document with instant auto-restart. Tech Stack Node.js, node-pty, WebSockets, Tailscale HTTPS, PTY, Linux tmuxKey Highlights Consolidated single-port interface: web terminal, voice agent ( /voice), open port inspector, git repo inventory, file browser, and system metrics.
The Agentic Gateway is a production infrastructure supervisor and remote engineering hub operating on the micro VM nur. Managed under supervise.js, it coordinates multiple persistent background runtimes, exposing a single secure HTTPS portal (term-web) over private Tailscale mesh networks.
1. Process Supervision Architecture (`supervise.js`)
Remote developer environments require robust self-healing orchestration without the bloat of heavyweight cluster schedulers:
βββββββββββββββββββββββββββββββββββββββββββ
β supervise.js β
β (Process Supervisor, Health & Auto-2s) β
ββββββββββββββββββββββ¬βββββββββββββββββββββ
β
ββββββββββββββββββββ¬βββββββββββββββ΄ββββββ¬βββββββββββββββββββ
βΌ βΌ βΌ βΌ
βββββββββββ βββββββββββββ βββββββββββββ βββββββββββββ
β status β β agy-web β β codex-web β β term-web β
β :4030 β β :4031 β β :4032 β β :4034 (π)β
βββββββββββ βββββββββββββ βββββββββββββ βββββββββββββ
- Zero-Downtime Auto-Restart: Monitors child processes and automatically re-spawns failed services within 2 seconds.
- Unified Log Aggregation: Centralizes logs into individual service buffers and outputs structured JSON state to
status.json.
2. `term-web`: The Six-in-One Engineering Surface
Rather than requiring distinct web ports for different utilities, term-web provides a tabbed, single-document workstation:
- Terminal (
/): Full-fidelity browser terminal powered byxterm.jsandnode-pty, connecting directly to tmux sessions with mobile input assists. - Hands-Free Voice Agent (
/voice): Real-time voice interface allowing hands-free architectural querying of local git repositories. - Ports Inspector (
/ports): Live inspection of listening TCP ports, active process bindings, and container mappings. - Repo Inventory (
/repos): Real-time git status, branch tracking, and uncommitted diff counts across all local workspaces. - File Explorer (
/files): Low-latency directory browsing and file viewing with syntax highlighting. - Device Diagnostics (
/system): Real-time CPU, RAM, disk I/O, and load metrics.
3. Zero-Exposure Tailscale Security Model
- Private Mesh Access: Binds strictly to Tailscale virtual IP interfaces with local TLS certificates, ensuring zero exposure to the public internet.
- Mobile Ergonomics: Custom touch macros for
Esc,Tab,Ctrl-C,Ctrl-D, and arrow keys make terminal operations seamless from smartphones.
4. Technical Stack Summary
| Component | Technology |
|---|---|
| Supervisor Runtime | Node.js, node-pty, ws |
| Terminal Frontend | xterm.js, Canvas renderer |
| Network & Security | Tailscale WireGuard mesh, Local TLS |