How sailry/sailry-harness works
Sailry is a self-hosted AI harness: a user starts or resumes work from the desktop or phone, which controls a Host running agents beside project files and data. The Host coordinates model-provider calls and tools; conversation results and approval requests are surfaced back to the controlling app. The graph also preserves documented coding, knowledge, collaboration, connector, plugin, and local-inference capabilities. Relationships are based on the README and the shown entry-point/source-index references; several feature modules were not sampled, so their internal call paths are not asserted.
Main entry points: node Agent Runtime · run.go Desktop App · routes.go Mobile App · link Encrypted Peer Links
Components 20
User Clients
- Desktop App
internal/desktop/application/run.go - Mobile App
internal/mobile/routes.go - Client API
internal/client/client.go
Host Connectivity
- Encrypted Peer Links
internal/link - Host Service
cmd/sailry-host/main.go
Agent Work
- Agent Runtime
internal/node - Conversation and Sessions
internal/desktop/live/conversation.go - Model Providers
modules/providers/desktop
Tools and Extensions
- Projects and Workspaces
internal/core/workspaces.go - Coding Tools
modules/code-index/node/service.go - Database Tools
internal/databases/databases.go - SSH and SFTP
internal/ssh/sftp.go - External Connectors
modules/connectors/desktop - Agent Teams
modules/teams/desktop - Plugin Runtime
internal/desktop/plugins
State and Models
- Knowledge Search
internal/node/knowledge/service/storage.go - Host Data Store
internal/node/store/knowledge_storage.go - Local Inference
internal/localmodels/decision/engine.go - Speech and OCR
internal/localmodels/ocr/engine.go
Other components
- User
Connections 25
- User → Desktop App: starts work
- User → Mobile App: controls remotely
- Desktop App → Encrypted Peer Links: connects over
- Mobile App → Encrypted Peer Links: connects over
internal/mobile/routes.go - Desktop App → Client API: uses client
- Mobile App → Client API: uses client
internal/mobile/routes.go - Client API → Encrypted Peer Links: routes requests
internal/client/client.go - Encrypted Peer Links → Host Service: reaches Host
cmd/sailry-host/main.go - Host Service → Agent Runtime: starts runtime
cmd/sailry-host/main.go - Agent Runtime → Model Providers: calls chosen models
- Agent Runtime → Projects and Workspaces: works beside project data
- Agent Runtime → Coding Tools: uses coding tools
modules/code-index/node/service.go - Agent Runtime → Database Tools: uses database tools
- Agent Runtime → SSH and SFTP: uses remote tools
- Agent Runtime → Knowledge Search: searches knowledge
internal/node/knowledge/service/storage.go - Knowledge Search → Host Data Store: reads and indexes values
internal/node/knowledge/service/storage.go - Agent Runtime → Agent Teams: fans out subagents
- Agent Runtime → External Connectors: uses integrations
- Desktop App → Plugin Runtime: renders plugin UI
- Agent Runtime → Plugin Runtime: supports plugin tools
internal/desktop/plugins/cmd/desktop-spike/main.go - Agent Runtime → Local Inference: runs local inference
- Agent Runtime → Speech and OCR: uses local recognition
- Agent Runtime → Conversation and Sessions: produces visible steps
- Conversation and Sessions → Desktop App: surfaces results
- Conversation and Sessions → Mobile App: surfaces session updates