Offline, reproducible release gates for RAG systems and AI agents.
%%{init: {"theme":"base","themeVariables":{"background":"#FFFFFF","fontFamily":"Arial, sans-serif","lineColor":"#667085","primaryTextColor":"#172B4D"}}}%%
flowchart LR
S["Scenario"]:::yellow
B["Accepted baseline"]:::blue
C["Candidate traces"]:::purple
E["Evaluators & policy"]:::green
G{"PASS / WARN / BLOCK"}:::pink
S --> E
B --> E
C --> E --> G
classDef yellow fill:#FFF4A3,stroke:#C9A227,stroke-width:2px,color:#172B4D
classDef blue fill:#D9EAFD,stroke:#4C78A8,stroke-width:2px,color:#172B4D
classDef purple fill:#E9DDF7,stroke:#8064A2,stroke-width:2px,color:#172B4D
classDef green fill:#DDF5E3,stroke:#4F9D69,stroke-width:2px,color:#172B4D
classDef pink fill:#FFE1E6,stroke:#C96A7B,stroke-width:2px,color:#172B4D
Use it from Claude Code or Cowork: /plugin marketplace add thangldw/ragops, then /plugin install ragops@ragops (or in one step on Claude Code 2.1.275 or later: /plugin install ragops --marketplace thangldw/ragops). Details: docs/claude-plugin.md.
Product introduction: thangldw.github.io/ragops/. Latest published release: v2.7.1. Main may contain later source or documentation changes; they do not replace the published artifact or its recorded verification.
RAGOps compares recorded candidate behavior with an accepted baseline, applies a versioned release policy, and emits one canonical PASS, WARN, or BLOCK decision across JSON, Markdown, HTML, JUnit, SARIF, and GitHub Summary. The dependency-free core performs no network calls. Optional adapters import vendor exports; the API/workbench ships in the wheel through the api extra.
Requirements: Python 3.11+.
Current technical references: architecture, contracts, governance, operations, production loop, counterfactual test, security, and v2.7.1 release notes.
The repository is also a skills-only plugin for ChatGPT, Codex, Claude Code and Cowork. It does not include a hosted MCP connector. See the directory submission package, privacy policy, terms, and support guidance.
pip install ragops
ragops demo --profile engineer --output ./demo-output
ragops evidence verify --bundle ./demo-output/evidence
open ./demo-output/release-report.htmlOn Windows PowerShell, replace the final command with
Start-Process ./demo-output/release-report.html.
The credential-free demo intentionally returns BLOCK: citation coverage 1.0 -> 0.5, citation precision 1.0 -> 0.5, and lexical groundedness 1.0 -> 0.6. It is synthetic benchmark evidence, not production adoption evidence.
Install ragops[api] and run ragops serve for the local authenticated API/workbench. Use ragops adapter list for Phoenix, Ragas, DeepEval, LangSmith, MLflow, Promptfoo, custom JSON, and installed entry-point adapters.
Does the answer really come from the evidence? ragops counterfactual --scenario s.json --responses r.json --answer-command "python my_app.py" removes the supporting passages and swaps the numbers, asks your system again and flags answers that do not react (how it works and its limits). To check the checks on your own scenario first, run ragops counterfactual-selftest --scenario s.json --responses r.json: it reports per perturbation whether an evidence-copying reference is left alone and a failing system is caught (valid, weak or too_few_cases).
Not sure the scorer is right? ragops calibrate --target-accuracy 0.9 finds, from your own human labels, how far from the threshold a score must be to be trusted, and ragops triage then auto-decides those cases and queues only the uncertain ones for a person.
Is the same question answered differently on each run? ragops collect-runs records repeats, then ragops stability --bundle runs.json --baseline-bundle old-runs.json --max-stddev-increase 0.05 blocks a candidate that became less repeatable even if its average score did not change.
Found a bad answer in production? ragops mine --from logs.jsonl --scenario scenario.json --responses responses.json --output next/ adds every thumbs-down, low-rating or escalated log to the scenario as a regression case, so the suite grows with each incident.
No release policy yet? ragops policy-suggest --scenario scenario.json --baseline responses.json --output policy.toml generates a slice-aware policy v2 from your accepted baseline (review it before use), which ragops gate-v2 then applies.
lexical_groundedness is a transparent lexical-overlap baseline, not a semantic judge: a correct paraphrase can score low and a wrong answer that reuses evidence vocabulary can score high. Japanese/Chinese text is compared as character bigrams and Vietnamese is NFC-normalized. For a stricter deterministic check (claim-level, exact numbers, negation) use --evaluator strict_grounding; measured accuracy and known failures are in evaluator accuracy. For semantic grounding, import Ragas/DeepEval scores through the adapters and calibrate against human labels.
Local CLI usage evidence is disabled by default. Set RAGOPS_USAGE_LOG to an explicit JSONL path to record only the UTC timestamp, RAGOps version, top-level command, and exit code; arguments and file paths are never recorded. Summarize the file with ragops usage-report --events usage.jsonl. Use the consent-aware pilot-report contract and the production pilot runbook for production adoption evidence.
Released under the Apache License 2.0.