Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.09 KB

File metadata and controls

50 lines (36 loc) · 1.09 KB

Gandalf LinkedIn Bot

A LinkedIn-based LLM jailbreak game where users attempt to bypass Gandalf's system prompt through comments on a LinkedIn post.

Inspired from the great Gandalf Lakera

Gandalf LinkedIn Bot

Overview

This project creates an interactive game that:

  • Monitors a specific LinkedIn post for comments
  • Uses an LLM (playing as Gandalf) to respond to user attempts
  • Allows each user only one attempt to bypass the system prompt
  • Automatically responds to new comments
  • Tracks user attempts to prevent multiple tries

Installation

  1. Clone the repository:
git clone https://github.com/lucebert/gandalf-linkedin.git
cd gandalf-linkedin
  1. Install dependencies using Poetry:
poetry install
  1. Set up environment variables:
cp .env.example .env

Usage

Run the application:

poetry run python -m gandalf_linkedin.main

Testing

poetry run pytest

License

This project is released into the public domain under The Unlicense. See the LICENSE file for details.