NeuroCLI

Go-based AI CLI tools to automate dev workflows and shell commands.
NeuroCLI is an AI-powered command line assistant designed to enhance developer productivity by providing intelligent assistance directly in your terminal. It combines the power of AI with practical command-line utilities to streamline development workflows.
π Features
- Natural Language Processing: Interact with AI using natural language
- Code Generation: Generate code snippets in multiple programming languages
- Git Integration: AI-powered git operations (diffs, commits, etc.)
- Interactive Shell: Built-in shell with command history and completion
- Cross-Platform: Works on Windows, macOS, and Linux
π Installation
Prerequisites
- Go 1.16 or later
- Git (for version control features)
Using Go (Recommended)
-
Ensure you have Go 1.16 or later installed. Check your Go version:
go version
-
Install the latest version of NeuroCLI:
go install github.com/ravvdevv/neurocli@latest
-
Add Go's bin directory to your PATH if it's not already there:
-
Verify the installation:
neurocli --version
Or check the help:
neurocli --help
-
You can now use NeuroCLI from any terminal window. Try it out:
neurocli ask "how do I sort a map in Go?"
Building from Source
git clone https://github.com/Ravsalt/neurocli.git
cd neurocli
go build -o neurocli .
sudo mv neurocli /usr/local/bin/ # Optional: Add to PATH
π οΈ Usage
Interactive Shell
Launch the interactive shell:
neurocli shell
Generate Code
Generate code from a description:
neurocli gen -l python -o script.py "function that reverses a string"
Git Operations
Generate a commit message for staged changes:
git add .
neurocli aicommit
Explain git changes:
neurocli ai-diff
Ask Questions
Get answers to programming questions:
neurocli ask "how do I sort a map in Go?"
ποΈ Built With
- Cobra - CLI framework
- Pterm - Beautiful terminal output
- Liner - Command line editor
- Viper - Configuration management
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature)
- Commit your Changes (
git commit -m 'Add some AmazingFeature')
- Push to the Branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Acknowledgments
Raven - @Ravsalt
Project Link: https://github.com/Ravsalt/neurocli