GithubHelp home page GithubHelp logo

iqtlabs / snowglobe Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 4.0 272 KB

Open-ended wargames with large language models

License: Apache License 2.0

Dockerfile 1.93% Python 88.40% Shell 1.10% HTML 3.36% JavaScript 4.51% CSS 0.70%
human-ai-teaming large-language-models multi-agent-systems wargames tabletop-exercises

snowglobe's Introduction

Snow Globe

Open-Ended Wargames with Large Language Models

Snow Globe, an ongoing applied research project and resulting software package, uses large language models (LLMs) for automated play of "open-ended" text-based wargames, such as seminar games and political wargames. LLMs enable a light, flexible architecture in which player actions are not restricted to predefined options. The system allows humans to play against or alongside AI agents with specific personas. Every stage of the wargame from scenario preparation to post-game analysis can be optionally carried out by AI, humans, or a combination thereof.

Setup

Build the Docker image and run a container.

./docker_setup.sh

Demos

Once inside the running container (see Setup above), you can simulate a tabletop exercise about an AI incident response.

examples/haiwire.py

Or, simulate a political wargame about a geopolitical crisis.

examples/ac.py

In the latter case, you can use the chat interface to discuss the game afterwards, or just press Enter twice to exit.

Human Players

To play a game between a human and an AI player, launch the server from within the running container. Also, start the game:

snowglobe_server &
examples/ac.py --human 1

Then, open a browser window and navigate to:

http://myservername:8000

The terminal output will include the ID number for the human player. Type the number into the browser then click Connect. The top textbox gives player prompts; the bottom textbox is where the player enters responses. Textboxes turn blue while waiting for the next prompt.

License

This repo is released under the Apache License Version 2.0, except for jQuery which is released under the MIT License.

snowglobe's People

Contributors

dphogan avatar

Stargazers

John Tapsfield avatar Jay avatar Gabriella Melki avatar Bari avatar Franscih_yang avatar Bowen Zhang avatar Markus Rauhalahti avatar Jeff Carpenter avatar  avatar M Chimiste avatar Adriano Gil avatar  avatar

Watchers

 avatar Kevin Compher avatar Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.