Model tests

Which AI model should drive your Moodle? We put real agents to work on a test Moodle and counted what they actually did, not what they said they did.

Tests from 20 to 24 November 2026, Moodle 5.3 bench, plugin versions 2.4 to 2.5.1. Models: Claude Haiku, Claude Sonnet, Claude Opus.

In short

Claude Sonnet · mid-range

The right pick for the job.

It does the whole job reliably: every step of three end-to-end scenarios out of five, 5/6 and 10/11 on the other two, the right scenario 37 times out of 37, no needless question, 96 to 97 % of calls right the first time.

Claude Haiku · small and cheap

It copes, with someone keeping an eye on it.

It picks the scenario just as well (37/37) and gets a good share of the tasks done (5/7, 8/11), but needs more checking: 17 needless questions, 3 needed questions missed out of 11, partial steps, and it sometimes reports a success that did not happen.

Claude Opus · the most capable

Excellent, just not needed here.

Opus adds little over Sonnet on these tasks: 7/7, 6/6 and 7/7 steps, 100 % of calls right. Sonnet does the whole job with about 15 % fewer tokens (measured on 20 November).

Real scenarios, end to end

A teacher's request, the agent does all the work; we count the steps actually completed.

ScenarioSonnetOpusHaiku
A · 10-question multiple-choice exam, extra time, grades out of 20, badge7/77/7partial
B · Assignment with a rubric, PDF and DOCX submissions, grading5/56/6unusable that day
C · Branching lesson and forum5/6—partial
D · Glossary, wiki, database, SCORM, H5P7/77/75/7
E · Training offer in 11 steps10/11—8/11
  • Opus on 20 November for A and B; the other runs of A to D on 21 November; E on 24 November (plugin 2.5.1-dev). "—": no run.
  • Haiku on B: run unusable because of the bench preparation script, not the model.
  • Haiku varies a lot from one run to the next and over-reports its success.

Understanding a short request

37 short requests in French, on 24 November, plugin 2.5.1: the model must pick the right scenario and ask only the useful questions.

MeasureHaikuSonnet
Right scenario picked37/3737/37
Needless questions asked170
Needed questions missed (out of 11)30

Writing a correct call the first time

1,350 calls on 10 heavy tools, from 20 to 22 November.

ModelCalls right the first time
Opus100 %
Sonnet96 to 97 %
Haiku66 to 69 %; 87.6 % once readable dates were accepted

How we measured

  • Real AI agents, fresh for each test, with a neutral instruction: they do not know what is being measured.
  • A real test Moodle, filled with fictitious students created by a script.
  • The verdict is read in the server log (the calls actually sent) and in the state of Moodle, never in the agent's own account: small models sometimes report a success that did not happen.
  • For the fine measurements: blind draws, shuffled versions, an automatic grader tested beforehand, confidence intervals and exact tests.

What the tests changed in the plugin

The tests are also how the plugin gets fixed. A few examples:

  • Readable dates (ISO 8601) accepted: Haiku gains 21 points (p < 0.0001).
  • An unknown argument is refused with a suggestion and an example: Haiku gains 19 points after correction; no model sends the refused call back unchanged.
  • Resolved preview (names, before → after) on irreversible writes that reach people: Sonnet's wrong writes down from 12/40 to 2/40 (p = 0.003); no net effect on Haiku.

The limits, honestly

  • A test bench, fictitious data, scenarios written by the plugin team.
  • Few runs per scenario; Haiku varies from one run to the next.
  • Claude models only so far.
  • Dated results: plugin versions 2.4 to 2.5.1.

What about ChatGPT, Mistral?

Not measured yet; Mistral is planned. The plugin works with any MCP client: only the measurement is missing.