How naveen-arul/code-judgeai works
CodeJudge AI is a code-submission evaluation product: its frontend presents student and admin workspaces, while the FastAPI backend accepts submissions and returns structured AI review. The sampled API route invokes the fast evaluator, which integrates with Groq/Ollama and formats assessment results; a separate LangGraph workflow defines a richer multi-agent evaluation path. The frontend excerpt does not show its API calls, so that connection is documented only as an unverified integration. Other UI capabilities are represented by the main application node because the large App excerpt is partial.
Main entry points: builder.py Agent graph · intent_detection_agent.py Intent detection · feedback_agent.py Feedback synthesis · fast_evaluator.py Unified evaluator
Components 27
Evaluation UI
- Workspaces and review
replit-frontend/artifacts/codejudge-ai/src/App.tsx
Submission API
- HTTP application
backend/app/main.py - Evaluation routes
backend/app/api/routes.py - Submission schema
backend/app/schemas/request.py - Health endpoint
backend/app/api/health.py
Evaluation engines
- Unified evaluator
backend/app/services/fast_evaluator.py - Agent evaluator
backend/app/services/evaluator.py
Agent workflow
- Graph workflow
backend/app/graph/workflow.py - Agent graph
backend/app/graph/builder.py - Evaluation state
backend/app/graph/state.py - Intent detection
backend/app/agents/intent_detection_agent.py - Logic review
backend/app/agents/logic_agent.py - Test-case review
backend/app/agents/testcase_agent.py - Complexity review
backend/app/agents/complexity_agent.py - Hardcoding review
backend/app/agents/hardcoding_agent.py - Security review
backend/app/agents/security_agent.py - Adversarial review
backend/app/agents/adversarial_agent.py - Feedback synthesis
backend/app/agents/feedback_agent.py - Final judging
backend/app/agents/judge_agent.py
Model and output
- Agent prompts
backend/app/core/prompts.py - LLM client
backend/app/core/llm.py - Model configuration
backend/app/core/config.py - Result formatting
backend/app/services/formatter.py - JSON utilities
backend/app/utils/json_utils.py - Agent output schema
backend/app/schemas/agent_output.py
Other components
- Student / admin
- Groq / Ollama
Connections 40
- Student / admin → Workspaces and review: uses
- Workspaces and review → Evaluation routes: submits code
- HTTP application → Evaluation routes: mounts routes
backend/app/main.py - HTTP application → Health endpoint: mounts routes
backend/app/main.py - Evaluation routes → Submission schema: accepts payload
backend/app/api/routes.py - Evaluation routes → Unified evaluator: runs evaluation
backend/app/api/routes.py - Unified evaluator → Groq / Ollama: requests inference
backend/app/services/fast_evaluator.py - Unified evaluator → Result formatting: formats results
backend/app/services/fast_evaluator.py - Unified evaluator → JSON utilities: parses output
backend/app/services/fast_evaluator.py - Unified evaluator → Model configuration: reads settings
backend/app/services/fast_evaluator.py - Graph workflow → Agent graph: builds graph
backend/app/graph/workflow.py - Agent graph → Evaluation state: uses state
backend/app/graph/builder.py - Agent graph → Intent detection: registers node
backend/app/graph/builder.py - Agent graph → Logic review: registers node
backend/app/graph/builder.py - Agent graph → Test-case review: registers node
backend/app/graph/builder.py - Agent graph → Complexity review: registers node
backend/app/graph/builder.py - Agent graph → Hardcoding review: registers node
backend/app/graph/builder.py - Agent graph → Security review: registers node
backend/app/graph/builder.py - Agent graph → Adversarial review: registers node
backend/app/graph/builder.py - Agent graph → Feedback synthesis: registers node
backend/app/graph/builder.py - Agent graph → Final judging: registers node
backend/app/graph/builder.py - Intent detection → Logic review: dispatches
backend/app/graph/builder.py - Intent detection → Test-case review: dispatches
backend/app/graph/builder.py - Intent detection → Complexity review: dispatches
backend/app/graph/builder.py - Intent detection → Hardcoding review: dispatches
backend/app/graph/builder.py - Intent detection → Security review: dispatches
backend/app/graph/builder.py - Intent detection → Adversarial review: dispatches
backend/app/graph/builder.py - Logic review → Feedback synthesis: feeds review
backend/app/graph/builder.py - Test-case review → Feedback synthesis: feeds review
backend/app/graph/builder.py - Complexity review → Feedback synthesis: feeds review
backend/app/graph/builder.py - Hardcoding review → Feedback synthesis: feeds review
backend/app/graph/builder.py - Security review → Feedback synthesis: feeds review
backend/app/graph/builder.py - Adversarial review → Feedback synthesis: feeds review
backend/app/graph/builder.py - Feedback synthesis → Final judging: sends synthesis
backend/app/graph/builder.py - Intent detection → Agent evaluator: invokes agent
backend/app/agents/intent_detection_agent.py - Intent detection → Agent prompts: uses prompt
backend/app/agents/intent_detection_agent.py - Unified evaluator → LLM client: uses client
backend/app/services/fast_evaluator.py - LLM client → Model configuration: reads keys
backend/app/core/llm.py - Result formatting → Agent output schema: normalizes schema
backend/app/services/formatter.py - Result formatting → JSON utilities: uses helpers
backend/app/services/formatter.py