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 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.
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.
You can set up Rusty Buddy using either the quick script method or by building it from the source:
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.
- Clone the repository:
git clone https://github.com/hg8496/rusty-buddy.git
- Navigate to the project directory:
cd rusty-buddy
- Build the project:
cargo build --release
- Set up an environment file to include your OpenAI API key:
OPENAI_KEY=your_openai_api_key
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.
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.
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.
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.
We welcome contributions! To collaborate, fork the repository, make improvements, and submit a pull request for review.
Rusty Buddy is released under the MIT License. Review the LICENSE file for more details.
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
-
Your data will be sent to OpenAI API to use AI features. ↩