quiz_brief
Builds a quiz brief of AI-written code lines a developer has not yet shown they understand, including the exact lines and rules for quizzing them. Use it to run graded comprehension checks.
Instructions
Build a quiz brief: the exact AI-written lines a person has not yet shown they understand, with rules for quizzing them.
When to use: the user asks to be quizzed, or agrees to a quiz after you finished a change (uncommitted=true for
that change, diff_base='main' for a whole branch, paths for specific code). Ask 2 to 6 questions one at a time,
grade each 0, 0.5 or 1, then call record_understanding with record_with.paths and the mean grade.
Returns {"who", "nothing_to_quiz", "line_count", "truncated", "brief_markdown" (the code and quiz rules),
"record_with": {"tool", "paths", "method", "score"}}. If nothing_to_quiz is true, tell the person there is
nothing new for them to check. Read-only: nothing is recorded until you call record_understanding.Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "quiz_brief"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | No | Person being quizzed. Defaults to git user.email. | |
| repo | No | Path inside the git repository. Defaults to the server's working directory. | |
| paths | No | Files or folders to quiz on. Leave empty with uncommitted=true for the change just made. | |
| diff_base | No | Quiz on everything changed since this git ref, e.g. 'main' for a branch. | |
| max_lines | No | Cap on lines in the brief, to keep the quiz short. | |
| uncommitted | No | Quiz on uncommitted changes and new files (what you just wrote). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| who | Yes | Person being quizzed. | |
| truncated | Yes | True if the brief was cut at max_lines. | |
| line_count | Yes | ||
| record_with | Yes | How to record the result once the quiz is done. | |
| brief_markdown | Yes | The code to quiz on, and the rules for running the quiz. | |
| nothing_to_quiz | Yes | True if they already understand all of it, or there is no AI-written code. |