quiz-gate

quiz-gate is a command for coding agents from dwarvesf/dwarves-kit. It costs 65 tokens per session (1,270 once invoked), scanned A, original, MIT.

A five-question quiz shown before merging a significant code change when the change deserves the reviewer's attention. The questions are based on the actual code difference and recorded test results.

In plain words
What is it for?
Use it at the merge boundary to test a reviewer's understanding of a pull request or commit, then record whether they engaged, deferred, or waved the quiz.
Why use it?
It helps a human reviewer understand the change before merging without preventing a correct change from being merged. Responses are recorded for follow-up.

Command

Part of the kit plugin — 26 commands, 30 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/dwarvesf/dwarves-kit/quiz-gate
Clone the repo
git clone --depth 1 https://github.com/dwarvesf/dwarves-kit

Or install kit, the plugin that ships this one along with the rest of its 26 commands, 30 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for quiz-gate

README.md
[![agentmods](https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/quiz-gate.svg)](https://agentmods.dev/commands/dwarvesf/dwarves-kit/quiz-gate)
Your own site
<a href="https://agentmods.dev/commands/dwarvesf/dwarves-kit/quiz-gate"><img src="https://agentmods.dev/badge/commands/dwarvesf/dwarves-kit/quiz-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,270 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00065 $0.01270
Opus 5 $0.00032 $0.00635
Sonnet 5 $0.00013 $0.00254
Haiku 4.5 $0.00006 $0.00127

Measured 4d ago against content hash e2eb6df92217, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

quiz-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/quiz-gate.md · 81 lines

How it starts

The opening of the file, as written. The whole thing — 81 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the understanding-gate NUDGE (ADR-0031 §2/§3, the AFTER gate's speed regulator). At the merge boundary of a gate/gated-final PR, when a change is BOTH significant AND understanding-worthy, you offer the human a 5-question quiz built from the actual change BEFORE they click-to-merge. $ARGUMENTS is the change under merge (a commit / PR / spec ref) and its run id (<rid>).

This gates the human's ATTENTION, never the merge. It is a NUDGE (ADR-0031 Refinement point 3): a waved change still merges; you never hard-block a correct build. The only real failure is UNTRACKED debt, so all three responses are recorded.

The two hard constraints (do not violate)

  1. Grounded in the DIFF + recorded test results, NEVER the agent's narrative (Litt's plausible-but-wrong caveat). The questions come from lib/gate/quiz-gate.sh questions <ref>, whose only input is a git ref , there is no narrative channel, so a false story physically cannot leak in. Never hand-write quiz questions from memory, the commit message, or what you "meant" to do. If the commit message contradicts the diff, the diff wins.
  2. Route through deep-understand, do not build a second quiz. The kit builds the QUESTIONS and dispatches; the deep-understand skill runs the AskUserQuestion mastery gate (shuffled answer slots, per-item gate on a demonstrated answer). The kit scores nothing.

Process

Step 1: Decide whether to tap (keyed on the SPEC-123 verdict)

Only a tap verdict (significant AND understanding-worthy) on a gate/gated-final PR is ever nudged , the anti-fatigue guard. A significant-but-low-worthiness change (wave) or a not-significant change is NEVER quizzed (it is already logged silently by SPEC-123's significance-classify record, wired into /kit:ship Step 8 by SPEC-136, immediately before this tap).

bash lib/gate/quiz-gate.sh tap <rid> --files "<changed files>" --impl-notes docs/implementation-notes/<slug>.md --pr-kind gate "<what changed>"

Read the full file on GitHub · 81 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 81 lines · 65 tokens per session scan A e2eb6df92217

Subscribe to this mod's changes

quiz-gate is a command published in the GitHub repository dwarvesf/dwarves-kit (11 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 1,270 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.