How adithya-76/soverign-ai-workbench works
AEGIS is a local-first industrial AI workbench: users upload reports or ask a task, the backend processes documents, routes inference to local Ollama models, grounds answers in a local SOP index, and exposes agent verification results for review. The graph includes the documented capabilities whose implementation is not visible in the supplied source, but does not invent their wiring. Source excerpts show routing, retrieval, inference, and UI composition; the README supplies the broader workflow. The tree does not show a deliverable builder or network-audit implementation.
Main entry points: App.tsx Workbench shell · router.py API router · engine.py Agent loop · rag.py RAG endpoints
Components 25
Workbench UI
- Workbench shell
frontend/src/App.tsx - Document workspace
frontend/src/components/DocumentUploadPanel.tsx - Document viewer
frontend/src/components/DocumentViewer.tsx - AI analysis
frontend/src/components/AIAnalysisModal.tsx - Agent tasks
frontend/src/components/AgentTaskPanel.tsx - Sovereignty status
frontend/src/components/SovereigntyStatus.tsx
API and ingestion
- FastAPI entry
backend/app/main.py - API router
backend/app/api/router.py - Document endpoints
backend/app/api/routes/documents.py - Health endpoint
backend/app/api/routes/health.py - AI endpoints
backend/app/api/routes/ai.py - RAG endpoints
backend/app/api/routes/rag.py - Agent endpoint
backend/app/api/routes/agent.py - Document processing
backend/app/documents/processor.py - Synthetic reports
backend/app/documents/synthetic_generator.py
Local intelligence
- Task classification
backend/app/routing/classifier.py - Model routing
backend/app/routing/router.py - Local inference
backend/app/services/ollama_client.py - SOP index
backend/app/rag/core.py - Agent loop
backend/app/agents/engine.py
Runtime services
- Execution log
backend/app/services/execution_logger.py - Local tools
backend/app/tools/registry.py
Other components
- Industrial user
- Ollama runtime
- Local SOP corpus
Connections 33
- Industrial user → Workbench shell: uses
- Workbench shell → Document workspace: renders
frontend/src/App.tsx - Workbench shell → Document viewer: renders
frontend/src/App.tsx - Workbench shell → AI analysis: renders
frontend/src/App.tsx - Workbench shell → Agent tasks: renders
frontend/src/App.tsx - Workbench shell → Sovereignty status: renders
frontend/src/App.tsx - Workbench shell → Health endpoint: fetches health
frontend/src/App.tsx - Workbench shell → Document endpoints: fetches documents
frontend/src/App.tsx - Workbench shell → FastAPI entry: sends requests
- FastAPI entry → API router: mounts
backend/app/main.py - API router → Document endpoints: registers
backend/app/api/router.py - API router → Health endpoint: registers
backend/app/api/router.py - API router → AI endpoints: registers
backend/app/api/router.py - API router → RAG endpoints: registers
backend/app/api/router.py - API router → Agent endpoint: registers
backend/app/api/router.py - Document endpoints → Document processing: processes uploads
backend/app/api/routes/documents.py - Document endpoints → Synthetic reports: generates reports
backend/app/api/routes/documents.py - AI endpoints → Model routing: routes task
backend/app/api/routes/ai.py - Model routing → Task classification: classifies task
backend/app/routing/router.py - AI endpoints → Local inference: requests inference
backend/app/api/routes/ai.py - RAG endpoints → SOP index: retrieves evidence
backend/app/api/routes/rag.py - RAG endpoints → Model routing: routes task
backend/app/api/routes/rag.py - RAG endpoints → Local inference: requests inference
backend/app/api/routes/rag.py - Agent endpoint → Agent loop: runs task
backend/app/api/routes/agent.py - Agent loop → RAG endpoints: retrieves evidence
backend/app/agents/engine.py - Agent loop → Model routing: routes task
backend/app/agents/engine.py - Agent loop → Local inference: generates answer
backend/app/agents/engine.py - Agent loop → Execution log: logs actions
backend/app/agents/engine.py - Agent loop → Local tools: uses tools
backend/app/agents/engine.py - Local inference → Ollama runtime: calls localhost
backend/app/services/ollama_client.py - Local SOP corpus → SOP index: indexed locally
- SOP index → Local SOP corpus: indexes corpus
- Industrial user → Local SOP corpus: provides manuals