/passageway:passageway-evaluatefrom passageway
Measure how well passageway finds the right passage in the user's own sources and stays quiet when nothing fits: a guided question workshop that writes cases.toml, passageway eval on a reused index, the two numbers explained with their interval, a threshold sweep when the gate is off, and a comparison of the embedding models on request. Use when the user asks how good recall is, wants to tune the threshold, pick a model, or check after adding a source.
Ships in passageway. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Retrieval quality is measured, never guessed (https://getpassageway.com/guides/evaluate/). This skill makes that measurement a conversation: it explains what it is doing and why before every step, builds the questions with the user, and reads the result back in plain words.
Documentation: the index https://getpassageway.com/llms.txt lists every page with its markdown address; the whole documentation is one file, https://getpassageway.com/llms-full.txt. The page for this skill is https://getpassageway.com/guides/evaluate/: fetch it before the first run and whenever an option below does not behave as described.
Free text (a question, a note's title, a path) is asked in the chat, never through a choice prompt; a choice prompt is only for real alternatives (which mode, which model).
Before any command, in these four lines, in the user's language:
First run (no ~/.config/passageway/cases.toml yet), rerun (the file exists), more questions (grow the file), tune the threshold, or compare models. Ask only when it is not clear from what the user said.
passageway eval runs where the connectors can reach the sources and reads the same passageway.toml and model as the server (PASSAGEWAY_CONFIG, PASSAGEWAY_MODEL_DIR); no server, token or password is needed. A local install from /passageway-install is ready as it is. With several instances (ls -d ~/.config/passageway*/), measure the one this Claude is connected to: add --instance <name> to every passageway command below and read ~/.config/passageway-<name>/ for ~/.config/passageway/ in every path; a machine with only named instances refuses a command without it. For a container, put the cases file next to the config mount and run docker exec pw passageway eval /config/cases.toml --data-dir /data/eval-index.
The questions must be the user's own, so the number means something; the skill drives the work of finding them. Keep the file at ~/.config/passageway/cases.toml (it holds the user's questions and note titles: it stays on the machine, it is not a report).
Real questions first. Ask for the last five things the user looked up in their notes, or asked Claude that the notes could have answered. These are the best cases.
Topic-led questions. List the areas of the sources: for Trilium the top-level notes under its wiki root (through a Trilium MCP server if one is registered, else from the titles that a few broad recall calls return), for a markdown source the folder names, for Confluence the space keys in the config, for Wikipedia the categories. For each area, draft one or two questions from the title only, worded the way the user would ask before reading the note, and let the user accept, edit or drop each. The area becomes the group, so the report scores per area. Never copy a phrase from a note's body into a question: a passage that shares three words with the question is returned by the keyword rescue whatever its similarity, so such a question measures nothing. Mix short and long questions, and both languages when the notes are bilingual (a short question is what the threshold acts on).
Unanswerable questions, two kinds. Far ones ("what is on the cafeteria menu") and near-misses: a sibling topic the user keeps no notes on, proposed next to each area ("you have notes on Kubernetes; nothing on Nomad?"). Near-misses are what tests the gate. A case without expect is one the index must stay silent on.
Confirm each answerable question through the recall tool (the MCP server passageway): show the title of the first hit and ask whether that is the right note. A yes becomes expect = ["<title>"] (a part of the title, heading or address; case does not matter; a title that exists in two languages matches with one entry). A no: ask for the note's title and file that; the run will show whether it is found at all. expect_id is for a title that is ambiguous.
Size. Aim for 10 answerable and 5 unanswerable on day one, 30 and 10 over time. Say what the interval is at the current size: with 10 questions a rate of 80% has an interval of roughly 50–95%, a hint, not a number; with 30 about ±15 points; with 100 about ±7.
Write the file and check it parses (python3 -c 'import tomllib,sys; tomllib.load(open(sys.argv[1],"rb"))' <file>):
[targets] # what a rerun is held to; start from the first run's numbers, not from a wish
hit_at_3 = 0.8
silence = 0.8
[[case]]
query = "how do I rotate the API token for the build server"
expect = ["Build server"]
group = "ops"
[[case]]
query = "what is on the cafeteria menu" # no expect: must stay silent
passageway eval ~/.config/passageway/cases.toml --data-dir ~/.config/passageway/eval-index --write ~/.config/passageway/measurements.md
--data-dir keeps the index between runs, so a rerun after editing questions is quick (an index built with another model is refused: delete the folder then). --write keeps the history: create the page once with the two markers <!-- passageway:results:start --> and <!-- passageway:results:end --> on lines of their own; every run appends to the table of the last ten, with date, model, threshold and the numbers. Never point --data-dir at the server's live data folder.
Read the report back in plain words, two numbers first: hit@3 and silence, each with its 95% interval, and the one line about the interval's width at this size. Then what to do:
--include-cases and look at the misses (it quotes the user's notes, so show it to the user only, never write it to a page). A note that is not found at all is not indexed (the source is missing, or the file is skipped: the server log says) or the expect names the wrong title. A note found at rank 4 or 5 is a threshold or wording question.passageway eval ~/.config/passageway/cases.toml --data-dir ~/.config/passageway/eval-index --sweep 0.80,0.82,0.84,0.86,0.88
The sweep is cheap (one index, many thresholds). Show the table and where silence and false silence cross; the gate goes where false silence is still 0 and silence is highest. A long question is found at any threshold (the keyword rescue), so only the short unanswerable ones move. To apply: set min_similarity = <value> under [embedder] in passageway.toml and restart the service (launchctl kickstart -k gui/$(id -u)/de.marceltov.passageway, systemctl --user restart passageway, or docker compose restart passageway), then rerun once so the history has the new gate.
Only on request, or when no threshold satisfies both numbers. Say the cost first: each candidate needs its own download (about 0.5 GB per preset, once) and its own index, so this takes minutes and the machine is busy meanwhile. Add the candidates as [embedders.NAME] tables to passageway.toml (the server ignores them; passageway model list shows the presets with their measured gates):
[embedders.e5-base]
model = "multilingual-e5-base"
[embedders.jina-de]
model = "jina-v2-base-de"
passageway eval compare ~/.config/passageway/cases.toml --write ~/.config/passageway/measurements.md
Each candidate runs with its own fresh index at its own gate, because similarity scales differ between models and one shared threshold would favour whichever model it suits. Read the rows back: hit@3 and silence with intervals, index time, latency. Recommend one only when its numbers are outside the other's interval; otherwise say the questions cannot tell them apart yet and the smaller model wins. To apply: model = "<preset>" under [embedder], restart as above, delete ~/.config/passageway/eval-index (it was built with the old model), rerun.
The same command as the first run. Compare with the history table and say what moved and why it could have (a new source, a model, a threshold, more questions). A regression after adding a source is usually that source's noise: a silence drop with its group's questions still found.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub getpassageway/passageway --plugin passageway7 skills in this plugin
/create-passageway-connectorCreate a passageway connector, a small program that lists the items of a source and prints their text as JSON Lines. Use when the user wants passageway to index a new source such as a folder, an API, a database or a wiki./passagewayRetrieval for Claude over MCP. Use when the user wants to install, configure, run or extend passageway: index their sources with connectors, ask the recall tool a question, or write a new connector./passageway-add-sourceAdd a source to a running passageway: write the [[connector]] for a folder of markdown, Trilium, Confluence or Wikipedia into passageway.toml, with secrets as env: references, then restart and check /health. Use when the user wants passageway to index something, or when the index is empty after connecting Claude Code./passageway-connectConnect Claude Code to a running passageway server: set its URL and password once, so the prompt hook adds relevant passages from the user's sources automatically and the recall MCP tool is registered. Use when the user wants to connect, check or remove the passageway hook or MCP server in Claude Code./passageway-installInstall passageway on this machine and run it as a service that survives reboots: uv tool install with the connectors the user wants, passageway init for the password and the config, a launchd agent (macOS) or systemd user unit (Linux) that reads the password and the connectors' secrets from files only the user can read, then /health. Use when the user wants passageway on their machine, when /passageway-connect finds nothing listening locally, or to upgrade; on a machine that has it, it upgrades to the latest release./passageway-statusIs passageway fine? Checks the whole chain in order and says what to do: the server's own status tool (sources, counts, errors, model, version), the service that keeps it running, the hook's config and self-test, the MCP registration, and the log. Use when recall returns nothing it should, when the hook is silent, after a restart or an upgrade, or when the user asks whether passageway works.