{"slug": "show-hn-termexo-fleet", "title": "Show HN: Termexo Fleet", "summary": "Termexo Fleet, a local-first orchestration layer from developer gemron, was posted to Show HN as a Rust control plane that runs multiple coding agents across connected Termexo desktops, grading each task L1–L4 and routing it to a matching model, account and machine. The tool classifies terminal output for 429 rate limits, 402/422 API errors, expired auth and approval waits, placing failing slots in a 5-minute cooldown while retrying tasks at escalating difficulty (L1→L2→L3), and it exposes a reverse MCP endpoint at :7425/mcp so parent agents can spawn Git Worktree-isolated sub-agents. Termexo Fleet assigns relative cost units of 1 u for L1, 3 u for L2 and 8 u for L3/L4, and for L4 cross-review it automatically excludes the upstream author's model family, such as routing a Claude-authored change to a Codex reviewer.", "body_md": "**Local-first AI Coding Fleet Commander for Termexo**\n\n**English** · [简体中文](https://github.com/gemron/Termexo-Fleet/blob/main/README.cn.md)\n\n[Website Showcase](https://www.termexo.com/#fleet) ·\n  [Downloads](https://github.com/gemron/Termexo-Fleet/releases) ·\n  [Product Preview Dossier](https://github.com/gemron/Termexo-Fleet/blob/main/docs/preview/PREVIEW.md) ·\n  [Termexo Workbench](https://github.com/gemron/Termexo)\n\n**Orchestrate one or more [Termexo](https://github.com/gemron/Termexo) desktops as a unified, zero-black-box AI engineering fleet.**\n\nDescribe a goal once. **Termexo Fleet** grades task complexity (`L1–L4`), picks the right machine, account, and model across your connected Termexo nodes, lets parent agents autonomously spawn isolated sub-agents in Git Worktrees, recovers automatically from rate limits or provider failures, and tracks cost savings in a local SQLite ledger — while every single agent runs visibly inside real Termexo terminals and task boards.\n\n| Zero Black-Box Execution | Difficulty-Aware `L1–L4` Routing | Autonomous Sub-Agent Swarm | \n|---|---|---|\n| Every task and sub-agent runs inside a real Termexo PTY terminal & task board. Inspect live output or reply anytime from the slide-over drawer. | Match lightweight edits to fast low-cost models ( `L1` ), core features to`L2/L3` , and force cross-family heterogeneous audits on`L4` . | Built-in reverse MCP ( `:7425/mcp` ) lets agents submit parallel DAGs and spawn worktree-isolated child agents under strict guardrails. | \n\n[Watch the 45-second tour](https://www.termexo.com/#fleet-promo) · [Open MP4](https://www.termexo.com/assets/termexo-fleet-promo.mp4)\n\nRunning multiple coding agents (Claude Code, Codex CLI, OpenCode, Pi Agent, Grok Build, Antigravity) across several accounts and machines quickly creates four operational bottlenecks:\n\n1. **Overpaying on simple work** — Sending README tweaks or unit test scaffolding to flagship reasoning models burns top-tier quota unnecessarily.\n2. **Manual failover & baby-sitting** — When one provider hits`429` rate limits,`402` balance exhaustion, or expired login, tasks stall until you manually switch accounts.\n3. **Single-model blind spots** — Letting the same model family write and review critical concurrency or security changes misses systematic biases.\n4. **Black-box orchestrators** — Headless multi-agent scripts hide live terminal state, making approvals, diffs, and mid-flight intervention painful.\n\n**Termexo Fleet solves all four** by keeping Termexo as the transparent execution plane and adding an intelligent Rust control plane on top.\n\nTermexo Fleet scores every incoming task (or respects an explicit override) across four tiers and three policy modes (`cost`, `balanced`, `quality`):\n\n| Tier | Intent & Typical Workload | Routing Behavior | Relative Cost Unit | \n|---|---|---|---|\n| **`L1` Flash** | Typos, comments, docs, formatting, read-only repo scans | Prefers lowest-cost fast slots (e.g., DeepSeek Flash / Haiku / Mini) | `1 u` | \n| **`L2` Standard** | Feature modules, bug fixes, unit & integration test suites | Balances speed, quality, and node concurrency headroom | `3 u` | \n| **`L3` Deep** | Architecture refactors, concurrency/deadlock fixes, migrations | Selects top reasoning slots (e.g., Claude Opus / GPT-5.4) | `8 u` | \n| **`L4` Cross-Review** | Security audits, merge gates, critical diff verification | **Automatically excludes the upstream author's model family** (e.g., Claude author → Codex reviewer) | `8 u` | \n\n- **Self-Healing Failover** : Terminal output is continuously classified for`429 RateLimited` ,`402/422 ApiError` ,`AuthExpired` , and`WaitingApproval` . Failing slots enter a 5-minute cooldown while tasks automatically re-route to healthy slots and escalate difficulty (`L1 → L2 → L3` ) on retry.\n- **Live Route Forecast** : As you type in the Mission Composer, Fleet previews the exact tier, Termexo node, account, and model that will handle the task before you hit`Ctrl+Enter` .\n\nTermexo Fleet runs a local Streamable HTTP MCP server protected by a per-installation Bearer token stored in your OS Keyring. When a mission enables a Fleet MCP profile (injected cleanly at task level via Termexo's `mcpProfileIds`), parent agents gain 7 orchestration tools:\n\n| Reverse MCP Tool | Purpose | Guardrail / Behavior | \n|---|---|---|\n| `fleet_list_nodes` | Discover online Termexo nodes, OS tags, workspaces, and capacity | Authenticated via `parent_token` | \n| `fleet_submit_plan` | Planner submits a multi-stage DAG ( `dependsOnKeys` , tags,`L1–L4` ) | Validates DAG acyclicity (Kahn's algorithm) before dispatching Stage 1 | \n| `fleet_spawn_subagent` | Spawn a child agent for a scoped sub-goal | Enforces `maxDepth` ,`maxConcurrency` ,`maxSubagents` , duplicate-goal lock & Git Worktree isolation | \n| `fleet_list_subagents` | Inspect all child agents under the current parent | Returns status, assigned node/model, branch, and error summary | \n| `fleet_wait_subagents` | Block until selected child agents finish (bounded timeout) | Returns `resultSummary` and`git diff --stat` per sub-agent | \n| `fleet_message_subagent` | Send follow-up instructions to a child's live Termexo terminal | Writes directly to the child PTY | \n| `fleet_cancel_subagent` | Stop and cancel a runaway or obsolete child agent | Stops Termexo task and releases slot concurrency | \n\n| Scenario | Recommended Workflow | How Termexo Fleet Helps | \n|---|---|---|\n| **Daily dev cost optimization** | Direct / Auto Difficulty ( `balanced` or`cost` ) | Routes routine edits to `L1/L2` and reserves`L3` for hard reasoning — saving 40%–60% vs. all-`L3` usage, verified in the Execution Ledger. | \n| **High-stakes feature + audit** | Three-Stage Quality Pipeline ( `Implement → Verify → L4 Review` ) | Chains implementation, test verification, and mandatory cross-family `L4` security review with automatic upstream handoff context. | \n| **Cross-platform multi-machine builds** | Planner DAG ( `#windows` +`#macos` tags) | Connects your Windows workstation and LAN/Tailscale Mac Studio; routes backend work to `#windows` and iOS/macOS builds to`#macos` in parallel. | \n| **Unattended overnight refactors** | Autonomous Swarm + Worktree Isolation + Alerts | Isolates each sub-agent in its own Git Worktree branch, auto-fails over on `429` limits, and alerts Feishu / WeCom / Slack / WeChat on completion or approval prompts. | \n\n``` php\nflowchart LR\n    User[\"Developer / Commander\"] --> UI[\"Termexo Fleet Desktop<br/>Angular 22 + Tailwind 4 + Tauri 2\"]\n    UI --> Core[\"Rust Control Plane<br/>Router · Orchestrator · SQLite · OS Keyring\"]\n    Core -->|\"Forward MCP (Streamable HTTP + Bearer)\"| NodeWin[\"Windows Workstation<br/>Termexo Local :7421\"]\n    Core -->|\"Opt-in LAN / Tailscale VPN\"| NodeMac[\"Mac Studio Builder<br/>Termexo LAN :7421\"]\n    NodeWin -.->|\"Reverse MCP :7425/mcp<br/>fleet_submit_plan / fleet_spawn_subagent\"| Core\n    NodeMac -.->|\"Live Terminal & Task Board Sync\"| Core\n    Core --> Alerts[\"Alerts<br/>Feishu / WeCom / Slack Webhook + Termexo WeChat\"]\nTermexo-Fleet/\n├── crates/\n│   ├── fleet-protocol/      # Domain models, analytics, probe & notification contracts\n│   ├── fleet-connector/     # Streamable HTTP Termexo MCP client, probe & signal classifier\n│   ├── fleet-router/        # L1-L4 evaluator, cross-node tag router & L4 cross-family filter\n│   ├── fleet-orchestrator/  # DAG Kahn validator, guardrails, upstream handoff & Git Worktrees\n│   └── fleet-mcp-server/    # Axum reverse MCP server with Bearer authentication\n├── src-tauri/               # Tauri 2 runtime, SQLite ledger, OS Keyring & alert dispatcher\n├── apps/desktop-ui/         # Angular 22 Mission Control UI (6 views + Ctrl+K + Terminal Drawer)\n└── docs/preview/            # Product preview dossier & 2x Retina screenshots\n```\n\n| Live Terminal Drawer (Inspect & Reply Directly) | Sub-Agent Swarm Tree & Guardrail Gauges | \n|---|---|\n\n| `L1–L4` Routing Ladder & Interactive Simulator | Multi-Machine Hub-and-Spoke Topology | \n|---|---|\n\n| Execution Ledger & Multi-Channel Alerts | Global Command Palette ( `Ctrl+K` ) | \n|---|---|\n\n- **Zero Cloud Lock-in** : All state (`termexo-fleet.db` ), execution records, and routing policies live locally on your disk.\n- **OS Keyring Secret Storage** : Termexo node Access Tokens and Fleet's reverse MCP Bearer token are stored in Windows Credential Manager / macOS Keychain / Linux Secret Service — never written in plaintext to SQLite or config files.\n- **Controlled LAN / VPN Access** : Termexo's opt-in LAN mode (`allowLan: false` by default) enforces Bearer auth plus strict RFC1918 & Tailscale (`100.64.0.0/10` ) Host validation to prevent DNS rebinding and block public exposure.\n\nRequires Node.js `18.18+`:\n\n```\n# Run directly\nnpx termexo-fleet@latest\n\n# Or install globally\nnpm install --global termexo-fleet\ntermexo-fleet\n```\n\nDownload from **[GitHub Releases](https://github.com/gemron/Termexo-Fleet/releases)**:\n\n- **Windows (x64)** :`Termexo-Fleet_<version>_x64-setup.exe` (NSIS) /`.msi`\n- **macOS (Apple Silicon & Intel)** :`Termexo-Fleet_<version>_macos-arm64.dmg` /`macos-x64.dmg`\n- **Linux (x64)** :`.deb` (Debian/Ubuntu),`.rpm` (Fedora/RHEL),`.AppImage`\n\nRelease & GitHub Actions publishing workflow documentation: [docs/releases.md](https://github.com/gemron/Termexo-Fleet/blob/main/docs/releases.md).\n\n```\n# Install frontend dependencies\nnpm --prefix apps/desktop-ui install\n\n# Launch full Tauri 2 desktop app in dev mode\nnpm run tauri:dev\n\n# Run frontend build & Vitest suite\nnpm run build\nnpm test\n\n# Run Rust workspace tests (Windows MSVC toolchain)\nscripts\\cargo-msvc.cmd test --workspace --lib --bins\n\n# Build production Windows installers (.exe & .msi)\nnpm run tauri:build\n```\n\n1. In **Termexo** , open**Settings → AI Control (MCP)** , enable the local server, and copy its Access Token.\n2. In **Termexo Fleet** , click**+ 连接 Termexo** , choose a preset (`Local` /`LAN` /`Tailscale` ), click**测试连通性** to verify latency & capabilities, and save.\n3. *(Optional)* Click**复制** on the sidebar**反向 MCP 引擎** card and paste the JSON into Termexo**Settings → MCP Profile** to unlock autonomous Planner DAGs and sub-agent spawning.\n\nMIT — built in the open alongside [Termexo](https://github.com/gemron/Termexo).", "url": "https://wpnews.pro/news/show-hn-termexo-fleet", "canonical_source": "https://github.com/gemron/Termexo-Fleet", "published_at": "2026-12-01 03:44:58+00:00", "updated_at": "2026-12-01 04:15:15.836595+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "agent-protocols", "large-language-models"], "entities": ["Termexo Fleet", "Termexo", "gemron", "Claude Code", "Codex CLI", "OpenCode", "Pi Agent", "Grok Build"], "also_reported_by": [], "takeaway": "Termexo Fleet routes tasks by L1–L4 difficulty at 1/3/8 relative cost units, puts slots that return 429, 402/422 or expired auth into a 5-minute cooldown with L1→L2→L3 escalation, and forces L4 reviews onto a different model family than the author's.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-termexo-fleet", "markdown": "https://wpnews.pro/news/show-hn-termexo-fleet.md", "text": "https://wpnews.pro/news/show-hn-termexo-fleet.txt", "jsonld": "https://wpnews.pro/news/show-hn-termexo-fleet.jsonld"}}