AGENTS.md · git:20260419.f6ac642 · 2026-04-19 · sha256 c2a5ec8a5d090ced

AGENTS.md git:20260419.f6ac642A

Immutable. This exact content is served forever at /api/v1/blob/c2a5ec8a5d090ced.

# AGENTS.md

`jailbreak-bench` is a deterministic jailbreak regression benchmark for LLM endpoints.

## Use it for

- rerunning known jailbreak patterns after a model or prompt change
- producing a structured refusal, partial, and complied report
- smoke-testing the CLI with `--demo` or `--dry-run` before using real credentials

## Do not use it for

- claiming a model is safe against novel attacks
- multi-turn adversarial testing
- semantic judgment of ambiguous responses without human review

## Minimal commands

```bash
pip install -e ".[dev]"
jailbreak-bench --demo
jailbreak-bench --dry-run
pytest -q
ruff check jailbreak_bench tests
```

## Output shape

- terminal summary for demo and standard runs
- markdown or JSON report for saved output
- per-attack verdicts: `REFUSED`, `PARTIAL`, `COMPLIED`, or `ERROR`

## Success means

- attacks run without mutating the library state
- demo and dry-run work without an API key
- scorer output stays deterministic for the same response text
- tests stay offline and green

## Common failure cases

- users expect this tool to generate novel jailbreaks instead of replaying known ones
- API credentials or model IDs are invalid
- a response is ambiguous enough that the deterministic scorer needs manual review

## Maintainer notes

- keep the scorer deterministic and offline
- keep `run_bench()` and CLI behavior aligned with README examples
- do not add live-network behavior to tests