"""Agent eval for local models served by llama-server (or any OpenAI-compatible server). python agent_eval.py list the tasks and tool-call cases python agent_eval.py selftest no server needed: fake models check the harness itself python agent_eval.py run --studio agent tasks against the model loaded in Unsloth Studio python agent_eval.py run --serve agent --seeds 3 start our own llama-server with a bench.py config python agent_eval.py toolcalls --studio --think off python agent_eval.py compare A task gives the model six tools in a throwaway project folder (list_dir, read_file, grep, edit_file, write_file, run) and a job. When the model stops calling tools, a hidden check decides if the job is really done. Besides pass/fail the run records turns, bad and failed tool calls, and llama.cpp's own timings (decode and prefill tok/s, how many guessed tokens were accepted), so a speed setting can be judged on "still solves the tasks", not just "faster". Results go to eval/results/