/qval:reviewfrom Qval
Open the Qval review UI in a browser. Adjust the schema and rules, score tickets by hand, and compare your scores with the model's.
Ships in Qval. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Opens the half of Qval a person has to do themselves: adjusting the schema and the rules, filling in the human evaluation ticket by ticket, and reading the human-vs-LLM comparison. It runs in an ordinary browser tab, served by a local server bound to 127.0.0.1.
The LLM half is a different skill (/qval:evaluate-tickets). This one runs no model and scores nothing. Both come after /qval:draft, which writes the config they score against, and they run in either order.
The CLI lives at ${CLAUDE_PLUGIN_ROOT}/bin/qval. Let QVAL be that absolute path. Run every command from the user's working directory.
The session outlives the command. qval serve starts the server detached and returns immediately, because scoring a few hundred tickets by hand takes an hour and no Bash timeout survives that. Never wait on it, never poll it in a loop, and never start a second one. qval status is how the answer comes back, whenever the user says they are done.
"$QVAL" serve
With no argument it works out what to open: a single *.qval.json in qval-output/ (or loose in the working directory, where older versions put it), or a single ticket file if there is no eval file yet. Datasets are found by content, not by name. Every .json in the working directory is opened and kept if it parses as tickets, so a hand-exported zendesk-q3.json is found exactly like a tickets.json. The qbort-output/ subdirectory is searched too, since that is where Qbort puts a run, but nothing requires one. Pass the file explicitly when the user named one, as "$QVAL" serve <path>, and note that a path outside the working directory is fine.
Several datasets in one place is ordinary (Qbort keeps every run under its own timestamped name, and people accumulate exports). Starting a new evaluation over several of them is refused as AMBIGUOUS with the list, because nothing but the user knows which one they meant. Resuming an existing *.qval.json is not, because an eval file names its dataset by fingerprint and the relink finds it on its own.
Read the first token of stdout:
SERVING: followed by URL, WORKING_FILE, DATASET, CANDIDATES (how many other eval files it found to merge), and OPENED yes|no. Go to Step 2.ALREADY_SERVING: a session is already live here, on the file that was asked for. Give the user that URL again. Do not start another.NO_DATASET (nothing here to review. Ask the user where their ticket file is and re-run with that path; don't assume they have one to generate), NO_CONFIG (a new evaluation needs a usable EVAL_SCHEMA.json and EVAL_RULES.md, and one or both is missing or invalid. Tell the user to run /qval:draft first, and don't write the files yourself. Opening an existing *.qval.json never needs them), AMBIGUOUS (it lists the candidates. Ask the user which one with AskUserQuestion, then re-run with that path), ALREADY_SERVING_OTHER_FILE (see below), MISSING_FILE, BAD_TICKETS, SERVER_FAILED, SERVER_TIMEOUT.Only one review session runs per directory. ALREADY_SERVING_OTHER_FILE means a session is open on the file named on its OPEN line, which is not the one asked for. Tell the user which file is open, give them its URL, and say they have to click Finish there before the other one can be opened. Do not re-run serve until they say they have.
Optional flags: --compare a.qval.json,b.qval.json (offer files from elsewhere for merging, on top of the ones found in qval-output/), --port N, --no-open.
Always print the URL line to the user, whatever OPENED says. It is the only way into the session, and it carries a per-session token, so a URL from a previous run will not work.
OPENED yes: a browser was launched. Tell them it should be open, and give the URL anyway in case it opened somewhere they cannot see.OPENED no: nothing was launched (that is what happens when $BROWSER is set to a sentinel, which Claude Code's own agent view does). Tell them to open the URL themselves.Then say what they can do there: edit the schema and rules under Settings (under a jev scorer only labels, keys, descriptions, and order, since the rest is fixed by drafting), click a ticket to score it by hand, Merge other people's eval files for a side-by-side comparison, and Finish when they are done.
Every edit is written to the eval file as it happens. There is nothing to save.
Say the session is open and stop. Do not tail the log, do not poll status, and do not spawn anything to watch it. The user will come back.
When they say they are finished (or ask what happened):
"$QVAL" status
REVIEW live: still open. Print the URL again if they lost it.REVIEW done: they clicked Finish. Report the counts on the LLM and HUMAN lines.REVIEW abandoned: the tab was closed without clicking Finish, or it was never opened. The work is still saved; only the ending is unrecorded. Say so plainly rather than treating it as a failure.CONFIG_WRITTEN: printed after the status line when the session changed the schema or the rules, naming the two files in the working directory it rewrote. Mention it; those are the user's files. Its absence means they were left alone.REVIEW stale: the server process died without recording an outcome. The eval file is intact; offer to start a new session.REVIEW none: no session has run in this directory.status also prints FILE, the LLM and human scored counts, and UPDATED, whether or not a session ever ran. It is the cheap way to answer "how far along is this?" at any time.
qval-output/, not beside the dataset. That is where /qval:evaluate-tickets writes its own, and where the merge-candidate scan looks. A dataset in a subdirectory or elsewhere on disk does not drag the eval file along with it. Neither qval-output/ nor .qval-run/ can be relocated.serve resolves the mergeable files and the browser picks one by name./qval:evaluate-tickets. A new evaluation starts from EVAL_SCHEMA.json / EVAL_RULES.md (scorer included), which /qval:draft wrote. An existing eval file with no scores yet adopts them too, since nothing has been scored under its old criteria. One with scores keeps its own. serve writes the files back at the end only if the person changed them. So a schema adjusted in the browser is the one a follow-up LLM run scores against, and merely reading an older eval file never rewrites the config sitting in the working directory.SESSION_LIVE rather than race the server for the file, which means a refused run, not lost work. Ask the user to click Finish first. If one does land mid-session anyway, the server picks it up rather than writing over it.qval-output/ and .qval-run/ if the working directory is a repo. Both are generated. They differ in what may be deleted, not in what may be committed: .qval-run/ (session record, settings) is disposable, while qval-output/ holds the user's eval files and the human evaluation in them, so never suggest clearing that one.node --version). No npm install; the CLI, the server, and the UI bundle are dependency-free and ship with the plugin.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/draftDraft the Qval scoring config (EVAL_SCHEMA.json and EVAL_RULES.md) from the user's RULES.md or a description, for the Claude or Jev scorer. Run before /qval:review or /qval:evaluate-tickets./evaluate-ticketsScore a set of customer support tickets with the ambient Claude model or Typesafe's Jev against user-written rules and a typed schema, writing a Qval eval file (*.qval.json).Other plugins' skills for the same job
npx claudepluginhub balevine/qval --plugin qval