Lightweight, Push-Only AI Agent Fleet Telemetry & Orchestration Control Plane
2026-11-22:原生会话 API 支持普通消息投递响应恢复、事件最新页与向前翻页,以及稳定的会话目录分页;原有文本发送、问题回答和实时读取继续兼容。完整历史见 Release Notes。
When running autonomous AI coding agents (such as Claude Code, Codex CLI, Hermes, and ZCode) across heterogeneous development workstations, edge nodes, and cloud servers, engineers face three major challenges:
- Network Ingress & Attack Surface: Nodes operate behind NATs and firewalls. Direct SSH access from a central plane requires extensive key distribution and open inbound ports, introducing critical security vectors.
- Fragmented Runtime Visibility: No centralized observability into running agent processes, active sessions, system load, or heartbeat telemetry across nodes.
- Unsanitized Task Dispatch: Remote command execution often degrades into arbitrary shell invocation lacking directory allow-lists, lease tracking, or secret redaction.
Agent Fleet addresses these challenges through a strict, push-only zero-trust design:
┌─ Workstation / VPS / Container Node ────────┐
│ • Probe (Self-Reporting): Agent & System Telemetry │
│ • Runner (Pull-Based Worker): Sandboxed Task Runner│
│ • Outbound HTTPS only — Zero Inbound / Zero Tunnel │
└──────────────────────┬──────────────────────┘
│ HTTPS POST /api/ingest (Push-only)
│ HTTPS POST /api/commands/poll (Pull-based)
▼
┌─ Hub Control Plane (Web API & Real-Time UI) ────────┐
│ • Unified Dashboard (Sub-Second SSE Push / Web UI) │
│ • Session Ingestion with Pre-Flight Secret Scrubbing│
│ • Lease-Fenced Idempotent Task Queue & Audit Engine │
└─────────────────────────────────────────────────────┘
For complete visual architecture diagrams, state machines, and dispatch lifecycles, see Visual Architecture and UI Visual Evidence.
- Strict Push-Only Zero-Trust Model
- Worker nodes communicate exclusively via outbound requests: Probes push telemetry and Runners pull assigned work.
- Zero Central-to-Node Ingress: No SSH keys on the Hub, no listening inbound ports on nodes, and no reverse tunnels.
- Pre-Flight Privacy & Credential Scrubbing
- Dual allow-lists on node Probes and Hub APIs. Session transcripts redact sensitive keys (
sk-,ghp_, AWS credentials, Bearer tokens,*_API_KEY=) locally on the node before egress, with a secondary guard at Hub persistence.
- Dual allow-lists on node Probes and Hub APIs. Session transcripts redact sensitive keys (
- Native Multi-Agent Ecosystem
- First-class support for Claude Code, Codex CLI, ZCode, Hermes, and generic autonomous processes.
- Automatic detection of lifecycle state, active session concurrency, and hardware resource utilization.
- Sandboxed Task Orchestration (Command Plane)
- Guarded by project directory allow-lists, time-bounded leases, and automatic lease recovery to eliminate shell escape risks.
- Idempotent execution caching, network reconnection self-healing, bounded diffs, and log snapshot returns.
- Lightweight, Single-Binary Control Plane
- Minimalist Hub architecture (Python 3.10+ and lightweight Flask) with zero external message broker dependencies.
- Built-in responsive dashboard featuring dark/light modes and real-time Server-Sent Events (SSE).
Deploy the centralized Hub server on a workstation or cloud instance:
# Clone repository and prepare virtual environment
git clone https://github.com/dengyie/agent-fleet.git
cd agent-fleet
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# Export Ingest authentication token and start Hub
export AGENT_FLEET_INGEST_TOKEN='your-secure-random-secret'
python hub/web.py --host 0.0.0.0 --port 8790Access the dashboard at http://<hub-ip>:8790.
On any machine running AI coding agents:
# 1. Test telemetry collection in dry-run mode
python3 tools/agent-self-report.py --dry-run --name worker-node-1
# 2. Report state to the Hub
python3 tools/agent-self-report.py \
--endpoint https://hub.example.com \
--name worker-node-1 \
--token "your-secure-random-secret"Recommended Cron Setup (execute every 2 minutes):
*/2 * * * * python3 /path/to/agent-fleet/tools/agent-self-report.py --endpoint https://hub.example.com --name worker-node-1 --token "$AGENT_FLEET_INGEST_TOKEN" >/dev/null 2>&1
To execute controlled AI workflows dispatched from the Web UI:
- Configure allow-list:
cp deploy/agent-runner.yaml.example ~/.config/agent-fleet/runner.yaml # Edit runner.yaml: Define allowed project paths and agent adapter configurations
- Start Runner polling:
# Single polling run python3 tools/agent-runner.py --once
| Endpoint | Type | Description |
|---|---|---|
GET / |
Web UI | Live fleet overview (machine matrix, system health, real-time event stream) |
GET /machine/<name> |
Web UI | Machine inspection view (metrics telemetry, running agents) |
GET /api/status |
REST API | Query overall fleet and agent availability |
GET /api/stream |
SSE | Low-latency event streaming (auto-reconnect with replay) |
POST /api/ingest |
REST API | Node telemetry ingest endpoint (requires X-Agent-Fleet-Token) |
POST /api/tasks |
REST API | Dispatch sandboxed tasks (allow-list validated with idempotent queue) |
Comprehensive testing and acceptance suites are documented in Testing & Quality Gates. Executable journeys are defined in journeys.json, with assertions and reproducible commands in Test Chains.
For release criteria, automated deployment gates, and rollback policies, refer to Release Acceptance and Automated Deployment.
The Muse workspace (/muse) connects native Muse sessions directly without local browser automation overhead. It supports multi-dialog tabs, sub-sessions, quote replies, automated approval toggles, and tool execution cards. Detailed operational parameters and benchmarks are available in Muse Workspace.
-
ZCode desktop conversation bridge — send to an existing desktop session and observe its original command receipt.
AgentFleet is released under the MIT License.