# Repository Briefing: xiaotianfotos/homerail
> Source: https://repoforai.com/repo/xiaotianfotos/homerail (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/xiaotianfotos/homerail
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: B+ (72/100 · Maintenance 26/35 · Adoption 20/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI
- **Momentum**: 1,016 ★ total (+0 24h / +2 7d) · 227 forks
- **When to Use**: Best for: Homelab operators and engineering teams that want repeatable multi-agent workflows on their own hosts, with explicit handoffs, retained artifacts, and run evaluation. Skip if: You need a no-Docker embedded SDK, a stable desktop or generated UI, or turnkey offline model and speech inference.

## Overview
```text
### Architecture & Core Mechanics
HomeRail is a TypeScript orchestration runtime that separates planning, coordination, and execution. A request can go through the voice-oriented Manager Agent, or a person or existing coding agent can pass a workflow directly to the `hr` CLI. Both routes use `homerail_manager` to coordinate the DAG. `homerail_node` provisions a Docker container running `homerail_worker` for each DAG node. Workers have separate agent contexts and share `${HOMERAIL_HOME}/workspace/<run_id>/` within a run, so handoffs can pass artifacts without carrying the entire conversation forward.

`homerail_protocol` centralizes message contracts and validation. The Worker integrates model runtimes through harness adapters, including Claude Agent SDK; `agent-ui` is a separate browser client for the Manager's voice surface and generated widgets. The root package targets Node.js 20+ and npm 10+. The tree also contains `homerail_plugin_sdk/` and `plugins/`, but their presence alone does not establish a stable plugin compatibility contract.

### Key Capabilities & Differentiators
Workflows can run directly from YAML templates or be synced to the Manager database under a stable `workflow_id`; runtime profiles can be synced separately. Templates can assign different provider/model pairs to individual agents, with `*` as the fallback. This lets a planner and reviewer use a different endpoint from routine execution steps. The public live smoke workflow exercises plan → implement → test → review → summarize and verifies scorecard and evaluation output.

Operators can supervise, score, evaluate, and replay runs through `hr`. Multi-round WorkflowSpec v1 adds durable command boundaries: a workflow can pause and later resume selected logical actors under the same run. The voice interface defaults to Chinese and covers ASR, TTS, and VAD. For the Manager Agent, `codex_appserver` is the recommended harness for spoken progress: it derives commentary from native reasoning streams. `claude-sdk` and `kimi-code` are silent during execution, while `deepseek_harness` remains experimental. Those are Manager Agent distinctions, not a list of interchangeable Worker endpoints.

### Trade-offs & Limitations
Compared with a chat-first coding agent, HomeRail makes execution easier to inspect by turning handoffs into DAG edges and associating artifacts and evaluations with each run. Compared with a code-first graph library embedded in an application, it supplies a ready-made CLI and container execution model, but adds Manager, Node, Docker networking, and image maintenance. Compared with hosted automation, it gives operators control of the execution host and artifact storage without removing model endpoint dependencies or API costs.

A fresh container per DAG node separates environments, but the shared run workspace is an intentional handoff channel, not an isolation boundary between agents in the same run. Replay makes runs inspectable; it does not guarantee that a live model will produce the same result again. The DAG and CLI are better adoption anchors than generated widgets, whose contract is still evolving. Size the host around Worker concurrency and retained artifacts; self-serving inference adds a separate resource budget driven by the chosen model and context.

### Hardware & Deployment Guide
Build from source with Node.js 20+ and npm 10+ using `npm run install:all` and `npm run build`, then link `hr` from `homerail_cli`. `hr start` launches Manager and Node as local services; Manager can come up before Docker is ready, and `hr start --rebuild-worker-image` queues the Worker image build asynchronously. Run `hr doctor` and the two-node `offline-deterministic` profile before configuring a Claude Agent SDK-compatible endpoint for live runs. `hr model configure ... --api-key-stdin` passes credentials to the Manager's encrypted settings store rather than a repository file.

Use a volume with room for images, logs, and accumulating run artifacts under `HOMERAIL_HOME` (default `~/.homerail`). Docker Desktop generally supplies `host.docker.internal`; Linux may need Docker `host-gateway` support or `HOMERAIL_MANAGER_WORKER_WS_BASE_URL`. Remote Worker and Node connections require authenticated `wss://`, and some Windows source scripts require a POSIX-compatible shell. The Desktop release history moves from the upgrade-test-only `v0.1.0-alpha.3` to `v0.1.0-beta.1`, an unsigned Windows beta prerelease; it does not establish a stable Desktop release.
```

## Key Capabilities
```text
- Execution boundary: The Node service provisions one Docker Worker per DAG node; Workers in the same run share a workspace.
- Model routing: Templates assign `provider` and `model` per agent, with `*` as the fallback.
- Run evidence: `hr dag supervise`, `hr scorecard`, `hr eval-run`, and `hr replay` expose different views of a run.
- Multi-round execution: WorkflowSpec v1 supports durable pause-and-resume boundaries for selected logical actors under the same run.
- Voice integration: ASR, TTS, and VAD sit behind a voice contract; `codex_appserver` provides spoken progress from streamed reasoning.
- Deployment validation: Start with the two-node `offline-deterministic` profile, then run the live five-stage smoke workflow.
```

## Quick Start / Clone
```bash
npm run install:all
npm run build
```
