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.
- 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
- Go 1.16 or later
- Git (for version control features)
-
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/Ravsalt/neurocli@latest
-
Add Go's bin directory to your PATH if it's not already there:
- Linux/macOS: Add this to your
~/.bashrc,~/.zshrc, or equivalent:export PATH="$PATH:$(go env GOPATH)/bin"
- Windows: Add
%USERPROFILE%\go\binto your system's PATH
- Linux/macOS: Add this to your
-
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?"
git clone https://github.com/Ravsalt/neurocli.git
cd neurocli
go build -o neurocli .
sudo mv neurocli /usr/local/bin/ # Optional: Add to PATHLaunch the interactive shell:
neurocli shellGenerate code from a description:
neurocli gen -l python -o script.py "function that reverses a string"Generate a commit message for staged changes:
git add .
neurocli aicommitExplain git changes:
neurocli ai-diffGet answers to programming questions:
neurocli ask "how do I sort a map in Go?"- Cobra - CLI framework
- Pterm - Beautiful terminal output
- Liner - Command line editor
- Viper - Configuration management
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
This project is licensed under the MIT License - see the LICENSE file for details.
- Pollinations AI for the free and open source AI API
Raven - @Ravsalt
Project Link: https://github.com/Ravsalt/neurocli