How upmo-ai/upmo works
Upmo is a self-hostable AI-agent work platform: a React app fronts a modular Go backend backed by Postgres. The principal flow is a person opening a task, an agent planning and working with scoped tools, a check verifying the result, and an approval before consequential changes. Separate branches provide identity, connectors, knowledge, model routing and budgets, artifacts, and a full audit log. Workflow stages and guarantees follow the README; source-index references support the shown task, web, gateway, and knowledge boundaries, but unsampled implementations are not asserted in detail.
Main entry points: runner.go Task orchestration · tasks.go Task HTTP API · brain-api.ts API client · App.tsx Web app
Components 22
Web experience
- Web app
web/src/App.tsx - API client
web/src/app/brain-api.ts - Task workspace
web/src/features/tasks/tasks.tsx - Identity settings
web/src/features/identity/members.tsx
Task execution
- Task HTTP API
internal/tasks/adapters/http/tasks.go - Task orchestration
internal/tasks/app/runner.go - Task lifecycle
internal/tasks/domain/step.go - Task persistence
internal/tasks/adapters/postgres/store.go - Sandbox runtime
internal/runtime/engine/engine.go - Sandbox service
internal/sandboxd/sandboxd.go - Checks and approvals
internal/tasks/app/approval.go - Task artifacts
internal/artifacts/artifacts.go
Tools and models
- Tool connectors
internal/connectors/connectors.go - Model gateway
internal/gateway/gateway.go - Model routing
internal/gateway/app/routes.go
Knowledge and memory
- Knowledge ingest
internal/knowledge/app/ingest.go - Knowledge API
internal/knowledge/adapters/http/knowledge.go - Agent memory
internal/memory/memory.go
Identity and oversight
- Identity and access
internal/identity/identity.go - Audit log
internal/platform/audit/audit.go
Other components
- Workspace user
- Postgres
Connections 27
- Workspace user → Web app: uses
- Web app → API client: creates client
web/src/App.tsx - Web app → Task workspace: routes to
- API client → Task HTTP API: calls API
web/src/app/brain-api.ts - Task workspace → API client: requests tasks
web/src/features/tasks/tasks.tsx - Workspace user → Task HTTP API: opens task
- Task HTTP API → Task orchestration: dispatches
internal/tasks/adapters/http/tasks.go - Task orchestration → Task lifecycle: advances
- Task orchestration → Task persistence: reads and writes
- Task orchestration → Sandbox runtime: runs work
- Sandbox runtime → Sandbox service: requests sandbox
- Task orchestration → Checks and approvals: checks and gates
- Checks and approvals → Workspace user: requests approval
- Task orchestration → Tool connectors: uses tools
- Task orchestration → Model gateway: requests models
- Model gateway → Model routing: dispatches route
- Task orchestration → Knowledge API: uses knowledge
- Knowledge API → Knowledge ingest: ingests sources
- Task orchestration → Agent memory: uses memory
- Workspace user → Identity settings: manages access
- Identity settings → API client: requests identity
web/src/features/identity/members.tsx - Task HTTP API → Identity and access: checks access
- Task orchestration → Task artifacts: produces artifacts
- Task orchestration → Audit log: records actions
- Task persistence → Postgres: persists tasks
- Model routing → Postgres: stores routes
- Knowledge ingest → Postgres: stores chunks
internal/knowledge/app/ingest.go