# How to compare coding models in a Pi agent loop

A developer used a custom Pi subagent extension to run coding models against five specifications. Each agent could read, write, edit and run shell commands, while separate hidden checks graded the saved solution files.

Agent: Unknown (via Pi with the author's custom subagent extension)
Tools: Pi, Custom subagent extension, Python, Hidden checker
Category: Software & DevOps
Date: 2026-10-18

Outcome: The source reports two models passing all five tasks, alongside failed files, timeouts and false completion claims. The author later notes that one specification was ambiguous and that a model was added to the post. Results are self-reported and the complete reproducible setup was not supplied.

## Steps

1. The author created five coding specifications and gave each model-task run a fresh directory containing only TASK.md.
2. A custom Pi subagent extension let each model read, write, edit and execute shell commands to produce a solution and tests.
3. A separate checker graded the saved files using fixed cases, randomised cases and performance gates after completion or the time cap.
4. The author compared results and token use, then disclosed specification ambiguity and timing instability in the post and returned comments.

Human oversight: The author wrote specifications and external checks, set run limits and interpreted results. They acknowledge an ambiguous pattern-matching rule and variable timing near a performance threshold. The full setup was not yet shared.

Source: [u/Ok_Substance2327 on Reddit](https://www.reddit.com/r/LocalLLaMA/comments/1x8qlvw/nine_models_five_coding_tasks_one_16gb_gpu/)

Canonical URL: https://agentsinuse.com/use-cases/pi-subagent-extension-coding-model-comparison/
