How suyash-sahu/enterpise-ai-workspace works
AMOF is an enterprise AI workspace whose central workflow turns a user request into a persisted plan, routes and dispatches specialized work under privacy and approval controls, then verifies and synthesizes a result. Its major product branches include document retrieval, safe database querying, Google integrations, work management, background automation, and evaluation. The graph uses README-documented relationships for unsampled orchestration and feature areas; it does not claim those source files were inspected.
Main entry points: supervisor Supervisor loop · executor.py Task execution · rag/pipeline.py Document RAG · work_ai/pipeline.py Work AI proposals
Components 20
Workspace experience
- Workspace UI
web/src/app/(workspace)/chat/page.tsx - API router
backend/core-platform-service/app/api/router.py
AMOF orchestration
- Supervisor loop
backend/core-platform-service/app/supervisor - Task decomposition
backend/core-platform-service/app/supervisor/decomposer.py - Privacy routing
backend/core-platform-service/app/privacy/router.py - Capability registry
backend/core-platform-service/app/execution/registry.py - Human approval
backend/core-platform-service/app/services/approval/approval_service.py - Task execution
backend/core-platform-service/app/execution/executor.py - Verification and replanning
backend/core-platform-service/app/supervisor/verifier.py
AI capabilities
- Document RAG
backend/core-platform-service/app/rag/pipeline.py - Database agent
backend/core-platform-service/app/agents/database_agent.py - Safe SQL execution
backend/core-platform-service/app/services/database_query_service.py - Work AI proposals
backend/core-platform-service/app/services/work_ai/pipeline.py - Projects and tasks
backend/core-platform-service/app/services/workgraph_service.py - Evaluation harness
backend/core-platform-service/app/evaluation
Connected services
- Google connectors
backend/core-platform-service/app/services/google_connector_service.py - Background automation
backend/core-platform-service/app/workers/tasks.py
Platform services
- PostgreSQL and pgvector
backend/core-platform-service/app/db/database.py - Lifecycle event bus
backend/core-platform-service/app/events/publisher.py
Other components
- Workspace user
Connections 23
- Workspace user → Workspace UI: submits request
- Workspace UI → API router: sends request
- API router → Supervisor loop: routes request
- Supervisor loop → Task decomposition: decomposes request
- Supervisor loop → Privacy routing: routes by sensitivity
- Supervisor loop → Capability registry: dispatches capabilities
- Supervisor loop → Verification and replanning: verifies and replans
- Task execution → Human approval: claims approval
- Capability registry → Task execution: executes capability
- Task execution → Document RAG: runs retrieval task
- Task execution → Database agent: runs query task
- Database agent → Safe SQL execution: executes validated SQL
backend/core-platform-service/app/agents/database_agent.py - Safe SQL execution → PostgreSQL and pgvector: reads safely
backend/core-platform-service/app/services/database_query_service.py - Document RAG → Google connectors: fetches Drive content
backend/core-platform-service/app/rag/pipeline.py - Document RAG → PostgreSQL and pgvector: stores document chunks
backend/core-platform-service/app/rag/pipeline.py - Work AI proposals → Human approval: creates approval
backend/core-platform-service/app/services/work_ai/pipeline.py - Work AI proposals → Projects and tasks: validates work items
backend/core-platform-service/app/services/work_ai/pipeline.py - Work AI proposals → Task execution: dispatches approved work
backend/core-platform-service/app/services/work_ai/pipeline.py - Background automation → Document RAG: ingests Drive files
backend/core-platform-service/app/workers/tasks.py - Background automation → Google connectors: syncs Drive files
backend/core-platform-service/app/workers/tasks.py - Human approval → Lifecycle event bus: publishes lifecycle events
backend/core-platform-service/app/services/approval/approval_service.py - Workspace user → Google connectors: connects Google account
- Workspace user → Evaluation harness: runs comparisons