Local-first AI Coding Fleet Commander for Termexo
English · 简体中文
Website Showcase · Downloads · Product Preview Dossier · Termexo Workbench
Orchestrate one or more Termexo desktops as a unified, zero-black-box AI engineering fleet.
Describe 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.
| Zero Black-Box Execution | Difficulty-Aware L1–L4 Routing |
Autonomous Sub-Agent Swarm |
|---|---|---|
| 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 toL2/L3 , and force cross-family heterogeneous audits onL4 . |
Built-in reverse MCP ( :7425/mcp ) lets agents submit parallel DAGs and spawn worktree-isolated child agents under strict guardrails. |
Watch the 45-second tour · Open MP4
Running multiple coding agents (Claude Code, Codex CLI, OpenCode, Pi Agent, Grok Build, Antigravity) across several accounts and machines quickly creates four operational bottlenecks:
- Overpaying on simple work — Sending README tweaks or unit test scaffolding to flagship reasoning models burns top-tier quota unnecessarily.
- Manual failover & baby-sitting — When one provider hits
429rate limits,402balance exhaustion, or expired login, tasks stall until you manually switch accounts. - Single-model blind spots — Letting the same model family write and review critical concurrency or security changes misses systematic biases.
- Black-box orchestrators — Headless multi-agent scripts hide live terminal state, making approvals, diffs, and mid-flight intervention painful.
Termexo Fleet solves all four by keeping Termexo as the transparent execution plane and adding an intelligent Rust control plane on top.
Termexo Fleet scores every incoming task (or respects an explicit override) across four tiers and three policy modes (cost, balanced, quality):
| Tier | Intent & Typical Workload | Routing Behavior | Relative Cost Unit |
|---|---|---|---|
L1 Flash |
Typos, comments, docs, formatting, read-only repo scans | Prefers lowest-cost fast slots (e.g., DeepSeek Flash / Haiku / Mini) | 1 u |
L2 Standard |
Feature modules, bug fixes, unit & integration test suites | Balances speed, quality, and node concurrency headroom | 3 u |
L3 Deep |
Architecture refactors, concurrency/deadlock fixes, migrations | Selects top reasoning slots (e.g., Claude Opus / GPT-5.4) | 8 u |
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 |
- Self-Healing Failover : Terminal output is continuously classified for
429 RateLimited,402/422 ApiError,AuthExpired, andWaitingApproval. Failing slots enter a 5-minute cooldown while tasks automatically re-route to healthy slots and escalate difficulty (L1 → L2 → L3) on retry. - 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.
Termexo 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:
| Reverse MCP Tool | Purpose | Guardrail / Behavior |
|---|---|---|
fleet_list_nodes |
Discover online Termexo nodes, OS tags, workspaces, and capacity | Authenticated via parent_token |
fleet_submit_plan |
Planner submits a multi-stage DAG ( dependsOnKeys , tags,L1–L4 ) |
Validates DAG acyclicity (Kahn's algorithm) before dispatching Stage 1 |
fleet_spawn_subagent |
Spawn a child agent for a scoped sub-goal | Enforces maxDepth ,maxConcurrency ,maxSubagents , duplicate-goal lock & Git Worktree isolation |
fleet_list_subagents |
Inspect all child agents under the current parent | Returns status, assigned node/model, branch, and error summary |
fleet_wait_subagents |
Block until selected child agents finish (bounded timeout) | Returns resultSummary andgit diff --stat per sub-agent |
fleet_message_subagent |
Send follow-up instructions to a child's live Termexo terminal | Writes directly to the child PTY |
fleet_cancel_subagent |
Stop and cancel a runaway or obsolete child agent | Stops Termexo task and releases slot concurrency |
| Scenario | Recommended Workflow | How Termexo Fleet Helps |
|---|---|---|
| Daily dev cost optimization | Direct / Auto Difficulty ( balanced orcost ) |
Routes routine edits to L1/L2 and reservesL3 for hard reasoning — saving 40%–60% vs. all-L3 usage, verified in the Execution Ledger. |
| 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. |
| 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. |
| 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. |
flowchart LR
User["Developer / Commander"] --> UI["Termexo Fleet Desktop<br/>Angular 22 + Tailwind 4 + Tauri 2"]
UI --> Core["Rust Control Plane<br/>Router · Orchestrator · SQLite · OS Keyring"]
Core -->|"Forward MCP (Streamable HTTP + Bearer)"| NodeWin["Windows Workstation<br/>Termexo Local :7421"]
Core -->|"Opt-in LAN / Tailscale VPN"| NodeMac["Mac Studio Builder<br/>Termexo LAN :7421"]
NodeWin -.->|"Reverse MCP :7425/mcp<br/>fleet_submit_plan / fleet_spawn_subagent"| Core
NodeMac -.->|"Live Terminal & Task Board Sync"| Core
Core --> Alerts["Alerts<br/>Feishu / WeCom / Slack Webhook + Termexo WeChat"]
Termexo-Fleet/
├── crates/
│ ├── fleet-protocol/ # Domain models, analytics, probe & notification contracts
│ ├── fleet-connector/ # Streamable HTTP Termexo MCP client, probe & signal classifier
│ ├── fleet-router/ # L1-L4 evaluator, cross-node tag router & L4 cross-family filter
│ ├── fleet-orchestrator/ # DAG Kahn validator, guardrails, upstream handoff & Git Worktrees
│ └── fleet-mcp-server/ # Axum reverse MCP server with Bearer authentication
├── src-tauri/ # Tauri 2 runtime, SQLite ledger, OS Keyring & alert dispatcher
├── apps/desktop-ui/ # Angular 22 Mission Control UI (6 views + Ctrl+K + Terminal Drawer)
└── docs/preview/ # Product preview dossier & 2x Retina screenshots
| Live Terminal Drawer (Inspect & Reply Directly) | Sub-Agent Swarm Tree & Guardrail Gauges |
|---|
L1–L4 Routing Ladder & Interactive Simulator |
Multi-Machine Hub-and-Spoke Topology |
|---|
| Execution Ledger & Multi-Channel Alerts | Global Command Palette ( Ctrl+K ) |
|---|
- Zero Cloud Lock-in : All state (
termexo-fleet.db), execution records, and routing policies live locally on your disk. - 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.
- Controlled LAN / VPN Access : Termexo's opt-in LAN mode (
allowLan: falseby default) enforces Bearer auth plus strict RFC1918 & Tailscale (100.64.0.0/10) Host validation to prevent DNS rebinding and block public exposure.
Requires Node.js 18.18+:
npx termexo-fleet@latest
npm install --global termexo-fleet
termexo-fleet
Download from GitHub Releases:
- Windows (x64) :
Termexo-Fleet_<version>_x64-setup.exe(NSIS) /.msi - macOS (Apple Silicon & Intel) :
Termexo-Fleet_<version>_macos-arm64.dmg/macos-x64.dmg - Linux (x64) :
.deb(Debian/Ubuntu),.rpm(Fedora/RHEL),.AppImage
Release & GitHub Actions publishing workflow documentation: docs/releases.md.
npm --prefix apps/desktop-ui install
npm run tauri:dev
npm run build
npm test
scripts\cargo-msvc.cmd test --workspace --lib --bins
npm run tauri:build
- In Termexo , openSettings → AI Control (MCP) , enable the local server, and copy its Access Token.
- In Termexo Fleet , click**+ 连接 Termexo** , choose a preset (
Local/LAN/Tailscale), click测试连通性 to verify latency & capabilities, and save. - (Optional) Click复制 on the sidebar反向 MCP 引擎 card and paste the JSON into TermexoSettings → MCP Profile to unlock autonomous Planner DAGs and sub-agent spawning.
MIT — built in the open alongside Termexo.