Crates.io | mastermind-cli |
lib.rs | mastermind-cli |
version | 1.0.3 |
source | src |
created_at | 2024-11-21 20:33:54.396092 |
updated_at | 2024-11-21 20:42:43.693402 |
description | An LLM-powered CLI tool to help you be a better spymaster in Codenames |
homepage | |
repository | https://github.com/theoforger/mastermind |
max_upload_size | |
id | 1456695 |
size | 231,445 |
Mastermind is a CLI tool designed to generate clue words for spymasters in the game of Codenames, leveraging large language models (LLMs) of your choice!
Written in Rust 🦀, because why not?
To get started, prepare two text files:
One word per line. Refer to the examples
directory for sample files.
Here are what you need to configure before running mastermind:
There are two ways to configure this program:
During the first run, a config file will be created at your system's preferred location. The specific location will be given in the output. Generally, it is located at:
$HOME/.config/mastermind/config.toml
$HOME/Library/Application Support/mastermind/config.toml
C:\Users\[your username]\AppData\Roaming\mastermind\config.toml
Simply pass these environment variables during run time:
API_KEY
OPENAI_API_BASE_URL
DEFAULT_MODEL_ID
mastermind [TO_LINK] [TO_AVOID]
Feel free to run the program multiple times to get the best result!
-g
, --get-models
: Print all available language models-m
, --set-models
: Select language model(s)-o
, --output
: Specify an output file-t
, --token-usage
: Print token usage-h
, --help
: Print help-V
, --version
: Print version