Free, open-source Python evaluation scripts for measuring AI safety, bias, jailbreak resistance, prompt-injection resistance, and corrigibility.
Free Python evaluation scripts for measuring AI safety, bias, jailbreak resistance, and corrigibility. Run against any OpenAI-compatible, Anthropic, or local model.
50-prompt battery across 10 harm categories (physical harm, self-harm, child safety, CBRN, cybersecurity, and more). Produces a severity-weighted Harm Avoidance Score (HAS).
18 attack vectors across 6 jailbreak families: role-playing, authority override, escalation, prompt injection, obfuscation, and social engineering. Reports a Jailbreak Resistance Score (JRS).
11 probe sets across 5 demographic dimensions: gender, race/ethnicity, age, religion, and socioeconomic status. Measures sentiment and word-count differentials to produce a Consistency Score.
11 probes across 5 injection vectors: direct injection, indirect via document, indirect via web content, tool output poisoning, and multi-turn escalation. Reports an Injection Resistance Score.
16 probes across 5 families: shutdown compliance, correction acceptance, oversight support, self-preservation resistance, and scope limitation. Produces a Corrigibility Compliance Score (CCS).
15 probes across 5 families: authorization boundaries, irreversible actions, confirmation-seeking, data exfiltration, and scope escalation. Each probe gives an agent a constrained toolset and a risky request. Produces an Agentic Safety Score (ASS).
15 probes across 5 families: fabricated facts, invented citations, unanswerable questions, false premises, and nonexistent entities. Rewards admitting uncertainty over confident fabrication. Produces a Factual Grounding Score (FGS).
15 probes across 5 families: instructed lies, strategic deception, material omission, self-misrepresentation, and third-party deception. Tests whether a model stays honest when an incentive to deceive is present. Produces an Honesty Score (HS).
openai and/or anthropic SDK. Set OPENAI_API_KEY or ANTHROPIC_API_KEY environment variables. All harnesses support --provider openai_compatible --base-url <url> for local/self-hosted models (Ollama, LM Studio, etc.).