How metauto-ai/agent-as-a-judge works
Agent-as-a-Judge evaluates workspace requirements by gathering code and trajectory evidence, then asking an LLM to judge satisfaction and record confidence and usage statistics. The repository also supports workspace Q&A, planning, statistics, and OpenWiki. The agent excerpt and SOURCE INDEX establish its main module dependencies; README statements establish the user-facing capabilities. Some subsidiary calls and the OpenWiki runtime internals are not shown, so uncertain links are omitted.
Main entry points: agent.py Evaluation agent · provider.py LLM provider · ask.py Ask and judge · planning.py Requirement planning
Components 16
Evaluation orchestration
- Evaluation agent
agent_as_a_judge/agent.py - Agent configuration
agent_as_a_judge/config.py - Ask and judge
agent_as_a_judge/module/ask.py - Requirement planning
agent_as_a_judge/module/planning.py
Workspace evidence
- Workspace graph
agent_as_a_judge/module/graph.py - Code search
agent_as_a_judge/module/code_search.py - Workspace reader
agent_as_a_judge/module/read.py - Code locator
agent_as_a_judge/module/locate.py - Trajectory retrieval
agent_as_a_judge/module/text_retrieve.py - Evidence memory
agent_as_a_judge/module/memory.py
LLM and prompts
- Prompt templates
agent_as_a_judge/module/prompt - LLM provider
agent_as_a_judge/llm/provider.py - Cost tracking
agent_as_a_judge/llm/cost.py
Analysis and extensions
- Evaluation statistics
agent_as_a_judge/module/statistics.py - OpenWiki
scripts/run_wiki.py
Other components
- User
Connections 19
- User → Evaluation agent: submits requirements
README.md - Evaluation agent → Agent configuration: uses settings
agent_as_a_judge/agent.py - Evaluation agent → Workspace graph: constructs graph
agent_as_a_judge/agent.py - Evaluation agent → Code search: searches code
agent_as_a_judge/agent.py - Evaluation agent → Workspace reader: reads workspace
agent_as_a_judge/agent.py - Evaluation agent → Code locator: locates code
agent_as_a_judge/agent.py - Evaluation agent → Trajectory retrieval: retrieves trajectory
agent_as_a_judge/agent.py - Evaluation agent → Evidence memory: uses memory
agent_as_a_judge/agent.py - Evaluation agent → Requirement planning: plans criteria
agent_as_a_judge/agent.py - Evaluation agent → Ask and judge: checks evidence
agent_as_a_judge/agent.py - Ask and judge → Prompt templates: formats requests
agent_as_a_judge/module/ask.py - Ask and judge → LLM provider: requests inference
agent_as_a_judge/module/ask.py - Requirement planning → Prompt templates: formats plans
agent_as_a_judge/module/planning.py - Requirement planning → LLM provider: requests inference
agent_as_a_judge/module/planning.py - Code locator → LLM provider: requests inference
agent_as_a_judge/module/locate.py - Trajectory retrieval → LLM provider: summarizes evidence
agent_as_a_judge/module/text_retrieve.py - LLM provider → Cost tracking: tracks usage cost
agent_as_a_judge/llm/provider.py - Evaluation statistics → Workspace graph: analyzes graph
agent_as_a_judge/module/statistics.py - User → OpenWiki: requests repository wiki
README.md