How giuliastro/harness-remote works
Harness Remote is a local-first control plane for discovering, observing, and controlling native coding-agent Sessions across machines and desktop, web, and Android clients. The main flow is a user selecting a Machine and Project, discovering or creating a native Session, then observing and controlling it through the gateway; continuation can route work to another agent or machine. The graph also shows the task/worktree runtime and client shells. Some subsystem links are documented capabilities rather than sampled implementation calls; those are marked dashed or supported by the README.
Main entry points: server.js Gateway server · api.ts Gateway API client · native-session-home-base.tsx Session workspace · native-session-discovery.ts Session discovery
Components 23
Client applications
- Workspace shell
web/src/components/standalone-universal-workspace.tsx - Web app bootstrap
web/src/main.tsx - Desktop runtime
web/electron/main.ts - Android pairing
web/native-android/PairingScannerPlugin.java
Native Session experience
- Machine configuration
web/src/workspaceMachines.ts - Machine API client
web/src/machineClient.ts - Session workspace
web/src/components/native-session-home-base.tsx - Session discovery
web/src/native-session-discovery.ts - Session observer
web/src/components/native-session-observer.tsx - Session control and routing
web/src/native-session-routing.ts - Gateway API client
web/src/api.ts
Machine gateway
- Gateway server
bridge/src/server.js - Agent router
bridge/src/agent-router.js - Agent session service
bridge/src/acp-service.js - Model catalog
bridge/src/agent-model-catalog.js - Harness profiles
bridge/src/harness-profiles.js
Work continuity
- Task API client
web/src/taskClient.ts - Task run controller
bridge/src/task-run-controller.js - Task context
bridge/src/task-context.js - Git worktrees
bridge/src/worktree-manager.js - Cross-machine continuation
web/src/cross-machine-continuation.ts
Other components
- User
- Remote Machines
Connections 29
- User → Workspace shell: uses
README.md - Web app bootstrap → Workspace shell: renders
web/src/main.tsx - Workspace shell → Machine configuration: loads
web/src/main.tsx - Workspace shell → Session workspace: presents
- Session workspace → Machine API client: lists projects
web/src/components/native-session-home-base.tsx - Session workspace → Session discovery: discovers sessions
web/src/components/native-session-home-base.tsx - Session workspace → Remote Machines: connects to
README.md - Session workspace → Session discovery: creates sessions
web/src/components/native-session-home-base.tsx - Session discovery → Gateway API client: requests session data
web/src/native-session-discovery.ts - Session observer → Gateway API client: loads and controls
web/src/components/native-session-observer.tsx - Session observer → Session discovery: resolves session
web/src/components/native-session-observer.tsx - Session observer → Task API client: supports task views
web/src/components/native-session-observer.tsx - Session control and routing → Session discovery: resolves target
web/src/native-session-routing.ts - Session control and routing → Gateway API client: loads messages
web/src/native-session-routing.ts - Session control and routing → Cross-machine continuation: continues across machines
README.md - Gateway API client → Gateway server: sends gateway requests
README.md - Machine API client → Gateway server: sends Machine requests
README.md - Desktop runtime → Gateway API client: transports requests
- Desktop runtime → Gateway API client: handles desktop requests
web/electron/main.ts - Android pairing → Remote Machines: pairs device
README.md - Gateway server → Agent session service: serves agent control
bridge/src/server.js - Gateway server → Harness profiles: loads profiles
bridge/src/server.js - Agent session service → Model catalog: uses model catalog
bridge/src/acp-service.js - Agent router → Gateway server: routes requests
- Task API client → Gateway server: calls task endpoints
README.md - Task run controller → Task context: builds handoff context
bridge/src/task-run-controller.js - Task run controller → Git worktrees: prepares worktree
bridge/src/task-run-controller.js - Cross-machine continuation → Remote Machines: targets configured machine
README.md - Cross-machine continuation → Session control and routing: routes continuation
README.md