How devswha/herdr-web-ui works
herdr web ui is a browser and phone client for agent sessions managed by herdr. A user selects a machine and workspace, views an agent conversation or its live terminal, and sends replies or answers approval prompts; the server bridges UI requests to herdr and agent-specific session handling. Other documented capabilities include worktrees, file viewing and image uploads, push alerts, settings, updates, and voice input. Connections below follow the README and SOURCE INDEX references; unsampled feature internals are represented by their directory where possible.
Main entry points: App.tsx App shell · index.ts HTTP and event routing · machineContext.tsx Machine API context · api.ts HTTP client
Components 21
Web and phone client
- App shell
src/App.tsx - Chat view
src/components/ChatView.tsx - Live terminal
src/components/PaneTerminal.tsx - Session creation
src/components/NewSessionDialog.tsx - Settings
src/components/SettingsDialog.tsx - Machine API context
src/lib/machineContext.tsx - HTTP client
src/lib/api.ts - Background tasks
src/components/BackgroundTasks.tsx
Shared client contract
- Wire contract
shared/protocol.ts - Machine types
shared/machines.ts
Bridge server
- HTTP and event routing
server/index.ts - Access control
server/auth.ts - herdr client
server/herdr/client.ts
Agent sessions
- Conversation service
server/conversation.ts - Agent integrations
server
Product capabilities
- Files and attachments
server/files.ts - Push alerts
server/push.ts - Updates
server/update-api.ts - Voice input
server/voice.ts
Other components
- User
- herdr runtime
Connections 25
- User → App shell: uses
- App shell → Machine API context: selects machine
src/App.tsx - App shell → Chat view: shows conversation
src/App.tsx - App shell → Live terminal: shows pane
src/App.tsx - User → Session creation: creates session
- Session creation → Machine API context: creates workspace
src/components/NewSessionDialog.tsx - User → Settings: configures
- Machine API context → HTTP client: binds requests
src/lib/machineContext.tsx - HTTP client → Wire contract: uses types
src/lib/api.ts - Machine API context → Machine types: uses types
src/lib/machineContext.tsx - HTTP client → HTTP and event routing: calls API
- HTTP and event routing → Access control: checks access
server/index.ts - HTTP and event routing → Conversation service: routes session work
server/index.ts - HTTP and event routing → herdr client: requests pane data
server/index.ts - Conversation service → herdr client: reads pane state
server/conversation.ts - Conversation service → Agent integrations: dispatches sessions
server/conversation.ts - herdr client → herdr runtime: uses runtime API
- HTTP and event routing → Files and attachments: routes file requests
server/index.ts - HTTP and event routing → Push alerts: routes push requests
server/index.ts - App shell → Push alerts: enables alerts
src/App.tsx - App shell → Updates: checks updates
src/App.tsx - Chat view → Voice input: accepts dictation
- Live terminal → Voice input: accepts dictation
- Background tasks → Machine API context: fetches activity
src/components/BackgroundTasks.tsx - Machine API context → HTTP client: fetches task activity
src/lib/machineContext.tsx