Skip to content

rasata/luc-ebert-gandalf-linkedin

 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.8%
  • Dockerfile 7.2%