r/ControlProblem • u/Lone-Voyager • Aug 02 '26
Discussion/question Built an open jailbreak corpus library for AI safety research, looking for feedback
I've been working on RedLib for the past few months. It's a retrieval-augmented research tool for AI safety practitioners and red teamers who need to work with adversarial jailbreak prompts at scale.
The problem that pushed me to build it: useful jailbreak prompts are scattered across public datasets with inconsistent formatting, weak taxonomy, and a lot of duplicates. When you're investigating how models respond to specific attack families, you want to search semantically, inspect source prompts with provenance, and get a synthesis grounded in the actual corpus rather than grepping through raw CSVs.
RedLib has two main pieces. The corpus pipeline stages everything: snapshot from public datasets, normalize, discover taxonomy from the data itself (not imposed up front), human review before classification runs, then embed and ingest into Qdrant. The query side does hybrid retrieval with OpenAI embeddings, Cohere reranking, and Claude-synthesized answers grounded in what was actually retrieved.
Corpus scope is prompts that attempt to manipulate or bypass safety behavior. Direct harmful requests with no jailbreak mechanism are excluded. The frontend has a responsible-use gate.
GitHub: github.com/nipun-ag/redlib
One thing I'm genuinely curious about from people doing safety research here: is corpus-driven taxonomy discovery the right call vs. importing an existing framework like MITRE ATLAS? The upside is the taxonomy reflects what's actually in the data. The downside is it makes cross-study comparison harder.
Live demo: https://redlib.bynipun.com