How shreetejshinde2003/ai-agent-environment-simulator works
FMProject is a multi-agent execution simulator with workspace-scoped persistence, live run updates, research evaluation, and organization HR review. A user signs in, selects a workspace, creates a Single, Fixed, or Adaptive run, then inspects its persisted stages and output; research and HR workflows add separate evaluation and human-approval paths. The diagram combines README-described capabilities with relationships visible in the supplied excerpts and SOURCE INDEX. Several route and frontend modules were not sampled, so their internal calls are not inferred.
Main entry points: tasks.py Task lifecycle API · main.py FastAPI application · App.jsx App navigation · research.py Benchmarks and comparisons
Components 23
Workspace client
- App navigation
frontend/src/App.jsx - Workspace selection
frontend/src/hooks/useWorkspace.js - REST client
frontend/src/services/apiClient.js - Live run client
frontend/src/hooks/useSimulationData.js - Run history
frontend/src/pages/TaskSummary.jsx
Simulation execution
- FastAPI application
backend/app/main.py - Task lifecycle API
backend/app/api/routes/tasks.py - Adaptive routing
backend/app/agents/routing.py - Agent stages
backend/app/agents/orchestrator.py - Stage contracts
backend/app/agents/contracts.py - Groq model adapter
backend/app/agents/llm_client.py - Graph checkpoints
backend/app/agents/checkpointing.py
Identity and persistence
- Run and workspace store
backend/app/storage/database.py - Google OIDC identity
backend/app/api/routes/auth.py - Workspace live stream
backend/app/websocket/manager.py
Research Lab
- Benchmarks and comparisons
backend/app/experiments/research.py - Run provenance
backend/app/experiments/provenance.py
HR hiring
- Hiring and review APIs
backend/app/api/routes/hiring.py - Hiring records and reviews
backend/app/storage/hr_reviews.py
Other components
- Workspace user
- Groq AI service
- Google identity provider
- HR human reviewers
Connections 29
- Workspace user → App navigation: uses
README.md - App navigation → Workspace selection: selects
frontend/src/App.jsx - App navigation → REST client: requests data
- App navigation → Live run client: loads run state
- REST client → FastAPI application: calls REST
README.md - Live run client → FastAPI application: reconciles REST
README.md - Live run client → Workspace live stream: receives updates
README.md - FastAPI application → Task lifecycle API: registers routes
backend/app/main.py - Task lifecycle API → Run and workspace store: persists runs
README.md - Task lifecycle API → Adaptive routing: selects route
backend/app/api/routes/tasks.py - Task lifecycle API → Agent stages: runs stages
backend/app/api/routes/tasks.py - Agent stages → Stage contracts: validates handoffs
backend/app/agents/contracts.py - Agent stages → Groq model adapter: requests completion
backend/app/agents/llm_client.py - Groq model adapter → Groq AI service: sends prompts
README.md - Task lifecycle API → Graph checkpoints: resumes graphs
backend/app/api/routes/tasks.py - Workspace live stream → FastAPI application: serves WebSocket
backend/app/main.py - Google OIDC identity → Google identity provider: authenticates via OIDC
README.md - FastAPI application → Google OIDC identity: registers routes
backend/app/main.py - Workspace user → Google OIDC identity: signs in
README.md - Benchmarks and comparisons → Task lifecycle API: creates and reruns
backend/app/experiments/research.py - Benchmarks and comparisons → Run provenance: records provenance
backend/app/experiments/research.py - Benchmarks and comparisons → Run and workspace store: stores reviews
backend/app/storage/database.py - Workspace user → Benchmarks and comparisons: compares runs
README.md - Workspace user → Hiring and review APIs: uses HR workflows
README.md - Hiring and review APIs → Hiring records and reviews: stores review records
- HR human reviewers → Hiring and review APIs: reviews revisions
README.md - Hiring and review APIs → Groq model adapter: requests HR assistance
README.md - Run history → REST client: loads saved runs
frontend/src/pages/TaskSummary.jsx - Workspace user → Run history: inspects results
README.md