KonfAI GitHub

KonfAI Scout

An agent that looks at your segmentation, registration or synthesis the way you would, and tells you where it is wrong. A score says how good a result is; Scout says where and why. It inspects one case at a viewer, slice by slice, zooms on what looks off, switches overlays to tell the image from the result, asks KonfAI Eval to measure the suspect region, and writes a report of localised defects with their type, severity, uncertainty, the views that show them and the measurements that support them.

pip install konfai-scout[anthropic]        # Claude through the Anthropic API
pip install konfai-scout[openai]           # GPT, or any OpenAI-compatible server (vLLM, Ollama, LM Studio)
pip install konfai-scout[claude-code]      # Claude under your Claude Code login, no API key
pip install konfai-scout[codex]            # GPT under your ChatGPT login (the Codex CLI), no API key

How it works

konfai-scout inspect --task segmentation --name case01 \
    --input image=ct.nii.gz --input prediction=seg.nii.gz --input truth=gt.nii.gz \
    --labels 1=liver,2=spleen --evaluation Evaluations/run/Metric_TRAIN.json \
    --out reports/case01 --provider anthropic --allow-cloud-images

Scout is a package of the KonfAI family (konfai-scout/ in the repository), pinned to the konfai release it ships with: every volume is read through KonfAI's dataset backends (image files, OME-Zarr stores, DICOM series, ITK transform files), a registration is warped by KonfAI's own Resample, and every measurement is KonfAI Eval's. The MCP server runs it as a tracked job (run_scout_inspection, read_scout_report), and Studio shows its reports in a panel.