How spytensor/muster works
Muster is an enterprise agent workspace paired with an administrative control plane and a governed agent runtime. Employees use the web, desktop, or iOS client to sign in, chat with an agent, and work with files and project materials; the server runs the request through policy-controlled tools and returns the result. Administrators govern agent identities, approvals, access, usage, traces, and audit records. The graph preserves documented integrations and major product areas; several server subsystems are represented by their exact directories because their implementations were not sampled.
Main entry points: app.ts HTTP application · runtime Agent runtime · gateway.ts Tool gateway · audit.ts Audit records
Components 23
Employee clients
- Web workspace
apps/web/src/App.tsx - Chat workflow
apps/web/src/app/chat/useConversation.ts - Desktop client
apps/desktop/src/main.ts - iOS client
apps/mobile/App.tsx - Mobile chat
apps/mobile/src/screens/Chat.tsx - Mobile API client
apps/mobile/src/lib/api.ts - Admin console
apps/web/src/pages/Overview.tsx
Server services
- HTTP application
apps/server/src/app.ts - Sign-in and sessions
apps/server/src/auth/app-routes.ts - Projects and items
apps/server/src/projects.ts
Governed runtime
- Agent runtime
apps/server/src/runtime - Tool gateway
apps/server/src/runtime/run/gateway.ts - Code sandbox
apps/sandbox/src/runner.ts - Model providers
apps/server/src/runtime/models.ts
Company control plane
- Agent governance
apps/server/src/roles.ts - Directory and SSO
apps/server/src/directory - Audit records
apps/server/src/audit.ts - Identity and events
packages/protocol/src/events.ts
Files and persistence
- File services
apps/server/src/files/service.ts - File extraction
apps/server/src/files/extract.ts - Database
apps/server/src/db.ts
Other components
- Employee
- Company administrator
Connections 27
- Employee → Web workspace: uses
README.md - Employee → Desktop client: uses
README.md - Employee → iOS client: uses
README.md - Web workspace → Chat workflow: opens chat
README.md - Employee → Mobile chat: chats with
README.md - Mobile chat → Mobile API client: sends requests
apps/mobile/src/screens/Chat.tsx - Chat workflow → HTTP application: sends requests
apps/web/src/app/chat/useConversation.ts - Mobile API client → HTTP application: calls API
apps/mobile/src/lib/api.ts - Desktop client → HTTP application: connects to
apps/desktop/src/main.ts - HTTP application → Sign-in and sessions: routes sign-in
apps/server/src/app.ts - HTTP application → Agent runtime: runs agents
README.md - Agent runtime → Tool gateway: dispatches tools
README.md - Tool gateway → Agent governance: checks policy
README.md - Agent runtime → Model providers: requests completions
README.md - Tool gateway → Code sandbox: runs code
README.md - HTTP application → Projects and items: serves projects
apps/server/src/projectItemRoutes.ts - HTTP application → File services: serves files
README.md - File services → File extraction: extracts content
apps/server/src/files/service.ts - File services → Database: stores metadata
apps/server/src/files/service.ts - HTTP application → Database: persists state
README.md - Company administrator → Admin console: governs agents
README.md - Admin console → HTTP application: manages workspace
README.md - HTTP application → Agent governance: enforces controls
README.md - HTTP application → Directory and SSO: supports identity
README.md - HTTP application → Audit records: records activity
apps/server/src/app.ts - Audit records → Database: writes events
apps/server/src/audit.ts - Audit records → Identity and events: uses event definitions
apps/server/src/audit.ts