OpenGnosis is a defensive LLM security research tool. It exists to help safety researchers and auditors understand and improve model robustness. Contributions that enable or encourage malicious use — unauthorized attacks on production systems, targeted harassment, or exploitation of real users — are not welcome and will be rejected.
git clone https://github.com/CodaCipher/opengnosis.git
cd opengnosis
pip install -e .The
[dev]extra will be added as the test infrastructure matures. For now, a plainpip install -e .is sufficient.
- Python 3.12+ — no backward compatibility.
- Type hints on all public signatures.
from __future__ import annotationsis already in use across the codebase. - Keep functions small, names readable, imports minimal.
- Follow the existing code style — if in doubt, match what's around your change.
pytest tests/Tests are still sparse. Adding tests alongside new code is strongly encouraged.
Succinct imperative mood, lowercase start:
Add SLIP seed cache
Fix beam pruning edge case
Update carbon theme swatch
No conventional-commits prefixes required. Keep it clean and descriptive.
- Fork the repository.
- Create a feature branch from
main. - Make your changes, add tests if applicable.
- Open a PR against
mainon the upstream repo.
- Create a runner module at
scripts/methods/<name>/<name>_runner.py. - Wire it into the dispatcher in
scripts/core/orchestrator.py. - Add slash-command support in
opengnosis_cli.py(add toConfig.METHODS, updateSLASH_COMMANDSand the completer). - Add the method to the README methods table.
Not yet available. For now, open a free-form issue with a clear description and reproduction steps.
Thank you for helping make LLMs safer.