Skip to content

A CLI leveraging OpenAI for chat-based code enhancement, file management, and generating commit messages using git diffs.

License

Notifications You must be signed in to change notification settings

Lawei/rusty-buddy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Rusty Buddy, your AI-powered development companion designed to streamline coding workflows and enhance productivity. Whether you’re seeking to generate code automatically, refine commit messages, or engage in insightful AI-assisted chats, Rusty Buddy brings state-of-the-art machine learning to your development toolkit.

Rusty Buddy Logo

Unleash Your Development Potential

Rusty Buddy is more than just a command-line tool; it’s a suite of utilities tailored to modern developers:

  • AI-Enhanced Coding: Leverage AI to automate mundane tasks, generate intelligent code snippets, and manage your projects efficiently.
  • Context-Aware Interactions: Elevate your coding experience with an AI that adapts based on your project’s context and needs.
  • Versatile Personas: Customize the AI's interaction style to fit various programming languages and roles, ensuring precise and context-specific guidance.

Get Started Now and transform your coding experience with Rusty Buddy.

quickstart

Security

At Rusty Buddy, your security and privacy are our top priorities:

  • Built on Rust: Rusty Buddy is developed using Rust, known for its focus on memory safety and concurrent development practices. This reduces the risk of vulnerabilities, ensuring a robust and secure toolset.

  • Privacy First: We do not collect any of your usage data. Rusty Buddy operates entirely within your local environment1, giving you full control and peace of mind regarding your privacy.

Installation

You can set up Rusty Buddy using either the quick script method or by building it from the source:

Method 1: Install Using Script

For a hassle-free setup, execute the following script:

curl -sSL https://get.rusty-buddy.org | bash

This downloads and installs the necessary binaries. Ensure you have the appropriate permissions.

Method 2: Clone and Build

  1. Clone the repository:
    git clone https://github.com/hg8496/rusty-buddy.git
  2. Navigate to the project directory:
    cd rusty-buddy
  3. Build the project:
    cargo build --release
  4. Set up an environment file to include your OpenAI API key:
    OPENAI_KEY=your_openai_api_key
    

Initial Setup

After installation, perform initial configurations using the init command:

rusty-buddy init

This setup process will prompt you for your OpenAI API key, recommend a persona based on your project's characteristics, and generate necessary configuration files.

Configuration and Customization

Rusty Buddy supports extensive customization via a config.toml file located in the .rusty directory. This file allows you to tailor the AI models, set default personas, and define language-specific configurations.

Customizing Personas

Modify the config.toml to adjust or add personas to fit your project's needs:

[[personas]]
name = "python"
chat_prompt = "You are an experienced Python developer."
file_types = ["py", "md"]

Set a default persona for projects:

default_persona = "rust"

For detailed configuration options, please visit our Documentation.

Shell Completion

Enhance your command-line experience with shell completion scripts for Bash, Zsh, Fish, or PowerShell:

  • For Bash:
    rusty-buddy --completion=bash >> ~/.bashrc
  • For Zsh:
    rusty-buddy --completion=zsh >> ~/.zshrc

Reload your shell afterwards to activate it.

Contributing

We welcome contributions! To collaborate, fork the repository, make improvements, and submit a pull request for review.

License

Rusty Buddy is released under the MIT License. Review the LICENSE file for more details.

Contact

For further queries or support, feel free to reach out at [email protected].

Embrace the future of development with Rusty Buddy—your AI-powered assistant!

Footnotes

  1. Your data will be sent to OpenAI API to use AI features.

About

A CLI leveraging OpenAI for chat-based code enhancement, file management, and generating commit messages using git diffs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%