MCPcopy Index your code
hub / github.com/MakisChristou/rustgpt

github.com/MakisChristou/rustgpt @0.1.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.1.2 ↗ · + Follow
28 symbols 38 edges 5 files 1 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

rustgpt

Yet another command-line chat GPT frontend written in Rust.

Example Usage

Install

cargo install rustgpt

Features

  • Stream output with typing effect
  • Store chat messages/history
  • Context aware conversation
  • Simple and minimal
  • Multiline mode (use {} to enter multiline mode)

Prompt Shortcuts

  • Search History CTRL + R
  • Clear Prompt CTRL + L
  • Exit CTRL + C twice

Future Features

  • ~~Multiline input~~
  • Syntax highlighting
  • Choose model/role
  • Add Jailbreaks

Build

  1. Clone the repository to your local machine.
  2. Navigate to the directory where the repository was cloned.
  3. Run the following command to build the application:
$ cargo build --release

Quickly run

$ cargo run

Getting Started

To get the most basic of setups up and running you need to create a .env file and populate it with your api key

touch .env

Edit your .env file by adding your api key.

API_KEY=sk-...

To exit the program simply Ctrl + C twice.

Configuration Options

  • API_KEY: Set this to your chat gpt api key
  • CONTEXT: (Optional) Set this to true if you want to keep context in your conversation. Default false.
  • HISTORY: (Optional) Set this to true if you want to store your chat history. Default false.
  • MODEL: (Optional) Set this to any of the models supported by OpenAI (gpt-4, gpt-4-0314, gpt-4-32k, gpt-4-32k-0314, gpt-3.5-turbo, gpt-3.5-turbo-0301) Default gpt-3.5-turbo
  • TYPING_DELAY: (Optional) Set the delay between each letter in milliseconds (Default 10)

Core symbols most depended-on inside this repo

save_conversation_log
called by 2
src/utils.rs
get_user_input
called by 1
src/utils.rs
get_log_directory
called by 1
src/utils.rs
print_intro_message
called by 1
src/main.rs
start_chat_loop
called by 1
src/main.rs
incomplete_brackets
called by 1
src/validator.rs
send_gpt_request
called by 1
src/client.rs
handle_response
called by 1
src/client.rs

Shape

Class 11
Function 11
Method 6

Languages

Rust100%

Modules by API surface

src/client.rs12 symbols
src/utils.rs9 symbols
src/validator.rs3 symbols
src/main.rs3 symbols
src/args.rs1 symbols

For agents

$ claude mcp add rustgpt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact