How the HOP/LOP pattern works for model evaluation
mainThe Higher Order Prompt (HOP) and Lower Order Prompt (LOP) pattern is used for systematic, parallel evaluation of multiple models.
- HOP (Higher Order Prompt): The orchestrator. It reads test files, delegates tasks to multiple agents in parallel, and grades the results.
- LOP (Lower Order Prompt): The test definition. These files contain the specific prompt, expected outputs, and grading rubrics.
Execution Flow:
- HOP reads the LOP file.
- HOP extracts the prompt and the list of target agents.
- Agents are executed in parallel via the
nano-agentMCP server. - Results are collected and graded based on Performance, Speed, and Cost.
- A comparison table is generated showing the ranked results.
/perf:hop_evaluate_nano_agents .claude/commands/perf/lop_eval_3__file_operations_test.md