How omdehariya111/deligence works
DeligenX is a financial due-diligence platform: a user submits a ticker (optionally with a context file), a background job runs a five-agent analysis, and the platform returns an auditable investment memo. The README documents ingestion, financial analysis, market intelligence, risk assessment, and memo generation, plus authentication, payments, and live job progress. The graph preserves those stages and major capabilities; several links are documented in the README or SOURCE INDEX because their implementation files were not sampled.
Main entry points: routes.py REST API · crew.py Pipeline coordinator · mcp_client.py MCP client · ingestion_agent.py Data ingestion
Components 25
User experience
- Web app
frontend/src/app/dashboard/page.tsx
Platform services
- REST API
api/routes.py - Authentication
api/auth_routes.py - Users and jobs
api/models.py - Job worker
api/celery_app.py - Payments
api/payments_routes.py
Due diligence pipeline
- Pipeline coordinator
crew.py - Data ingestion
agents/ingestion/ingestion_agent.py - Run-scoped state
config/paths.py - Audit timeline
utils/audit_logger.py
Data and analysis
- Financial analysis
agents/analysis/analysis_agent.py - Ratio engine
agents/analysis/module1_ratio_engine.py - Market intelligence
agents/market_intelligence/market_intelligence_agent.py - Risk assessment
agents/risk_assessment/risk_assessment_agent.py - SEC EDGAR tools
mcp_servers/sec_edgar_server.py - Market data tools
mcp_servers/market_data_server.py - News tools
mcp_servers/newsapi_server.py - FRED tools
mcp_servers/fred_server.py - MCP client
utils/mcp_client.py
Memo production
- Memo generation
agents/memo_generation/memo_generation_agent.py - Memo verification
agents/memo_generation/verification_engine.py - Charts and narrative
agents/memo_generation/chart_engine.py - Investment memo
agents/memo_generation/html_renderer.py
Other components
- User
- Stripe
Connections 28
- User → Web app: uses
- Web app → REST API: requests jobs
- REST API → Authentication: authenticates
api/routes.py - Authentication → Users and jobs: reads users
api/auth_routes.py - REST API → Users and jobs: stores jobs
api/routes.py - REST API → Job worker: dispatches job
api/routes.py - Job worker → Pipeline coordinator: runs pipeline
api/celery_app.py - Pipeline coordinator → Data ingestion: runs agent
crew.py - Pipeline coordinator → Financial analysis: runs agent
crew.py - Pipeline coordinator → Market intelligence: runs agent
crew.py - Pipeline coordinator → Risk assessment: runs agent
crew.py - Pipeline coordinator → Memo generation: runs agent
crew.py - Data ingestion → Run-scoped state: uses paths
agents/ingestion/ingestion_agent.py - Data ingestion → Audit timeline: records events
agents/ingestion/ingestion_agent.py - Data ingestion → MCP client: fetches data
- MCP client → SEC EDGAR tools: calls tools
utils/mcp_client.py - Financial analysis → Ratio engine: computes ratios
- Market intelligence → MCP client: fetches data
- MCP client → Market data tools: calls tools
- MCP client → News tools: calls tools
- MCP client → FRED tools: calls tools
- Memo generation → Memo verification: verifies memo
- Memo generation → Charts and narrative: builds report
- Memo generation → Investment memo: produces memo
- REST API → Audit timeline: reads logs
api/routes.py - REST API → Payments: serves payment routes
- Payments → Stripe: processes payments
- Payments → Users and jobs: records events
api/payments_routes.py