How ajharshal45/ai-agent-workflow-scheduler works
This is a C++17 precedence-constrained workflow scheduler with a React interface and a separate live multi-agent execution arena. The main user flow is to create or load a workflow, inspect and validate its dependency graph, request scheduling or analysis through the REST API, and view the returned schedules and metrics. The README documents the algorithm and UI capabilities; some source excerpts are partial, so unshown internal links are omitted. The arena’s dispatcher-to-LLM interaction is represented as unverified.
Main entry points: server.cpp HTTP API · App.jsx App coordinator · bnb.cpp Branch and bound · main.cpp Arena runner
Components 21
React Interface
- App coordinator
frontend/src/App.jsx - Workflow builder
frontend/src/components/WorkflowBuilderView.jsx - Analysis views
frontend/src/components - Benchmark view
frontend/src/components/BenchmarkView.jsx - Algorithm guide
frontend/src/components/AboutAlgorithmsView.jsx - Live arena view
frontend/src/components/LiveAgentDispatcherView.jsx - REST client
frontend/src/api.js
REST Service
- HTTP API
src/server.cpp
Scheduling Engine
- Workflow graph
src/dag.cpp - Validation and cycles
src/validator.cpp - Topological ordering
src/topo_sort.cpp - Critical path analysis
src/critical_path.cpp - Greedy scheduling
src/greedy.cpp - Exact backtracking
src/backtrack.cpp - Branch and bound
src/bnb.cpp - Serial SGS
src/serial_sgs.cpp - Random DAG generator
src/random_dag.cpp
Agent Arena
- Arena runner
agent_harness/src/main.cpp - Concurrent dispatcher
agent_harness/src/agent_dispatcher.cpp - LLM clients
agent_harness/src/llm_client.cpp
Other components
- Scheduler user
Connections 23
- Scheduler user → App coordinator: uses
- App coordinator → Workflow builder: renders
frontend/src/App.jsx - App coordinator → Analysis views: renders
frontend/src/App.jsx - App coordinator → Benchmark view: renders
frontend/src/App.jsx - App coordinator → Algorithm guide: renders
frontend/src/App.jsx - App coordinator → Live arena view: renders
frontend/src/App.jsx - App coordinator → REST client: requests
frontend/src/App.jsx - REST client → HTTP API: sends REST requests
- HTTP API → Validation and cycles: validates
src/server.cpp - HTTP API → Workflow graph: parses workflows
src/server.cpp - HTTP API → Topological ordering: requests sorting
src/server.cpp - HTTP API → Critical path analysis: requests analysis
src/server.cpp - HTTP API → Greedy scheduling: requests schedules
src/server.cpp - HTTP API → Exact backtracking: requests search
- HTTP API → Branch and bound: requests optimization
src/server.cpp - HTTP API → Random DAG generator: generates workflows
src/server.cpp - Branch and bound → Greedy scheduling: warm starts
src/bnb.cpp - Branch and bound → Serial SGS: uses schedule generation
src/bnb.cpp - Arena runner → Concurrent dispatcher: runs execution
agent_harness/src/main.cpp - Arena runner → Greedy scheduling: plans with
agent_harness/src/main.cpp - Arena runner → Branch and bound: plans with
agent_harness/src/main.cpp - Concurrent dispatcher → LLM clients: dispatches tasks
- Live arena view → HTTP API: uses arena API