Nexa is an intelligent coding assistant designed to revolutionize how developers create, debug, and optimize software. Built with a modern UI and powered by advanced AI models, Nexa provides actionable insights, best practices, and innovative strategies to elevate your coding experience. Whether you're analyzing code, generating new files, or making precise edits, Nexa is your ultimate companion for all things coding.
Nexa is an AI-powered coding assistant that helps developers analyze code, generate files, and make precise edits. It leverages advanced AI models to provide structured, actionable responses in JSON format. With a user-friendly interface built using Gradio, Nexa is designed to streamline your coding workflow and enhance productivity.
-
Code Analysis & Discussion:
- Analyze code with expert-level insights.
- Explain complex concepts clearly.
- Suggest optimizations and best practices.
- Debug issues with precision.
-
File Operations:
- Create new files with proper structure.
- Edit existing files using diff-based editing.
- Manage multiple files seamlessly.
-
Structured Output:
- Receive responses in JSON format for easy integration.
- Supports structured data for files and edits.
-
Modern UI:
- Built with Gradio for an intuitive and interactive experience.
- Real-time streaming of responses.
-
Customizable:
- Easily configure the system prompt and model settings.
- Supports multiple AI models via Together.ai.
- Python 3.8 or higher
- Git (optional, for cloning the repository)
-
Clone the Repository:
git clone https://github.com/KingLeoJr/Nexa.git cd Nexa
-
Install Dependencies:
- On Windows:
install.bat
- On macOS/Linux:
pip install -r requirements.txt
- On Windows:
-
Set Up Environment Variables: Create a
.env
file in the project root and add your API key:API_KEY=your_api_key_here
- Run the App:
python app.py
- Access the UI: Open your browser and navigate to
http://localhost:7860
. - Interact with Nexa: Type your query in the chat interface. Nexa will analyze your code, generate files, or suggest edits.
-
What is Nexa? Nexa is an AI-powered coding assistant that helps developers analyze code, generate files, and make precise edits.
-
Which AI models does Nexa support? Nexa supports all models from OpenAI compatible providers. Update config.coder with baseURL and model name and you are good to go.
-
How do I customize the system prompt? Edit the
system_PROMPT
in thecoder.config
file. -
What programming languages does Nexa support? Nexa supports all major programming languages, including Python, JavaScript, Java, C++, and more.
We welcome contributions! Here’s how you can help:
-
Fork the Repository:
git clone https://github.com/KingLeoJr/Nexa.git
-
Create a Branch:
git checkout -b feature/your-feature-name
-
Commit Your Changes:
git commit -m "Add your feature"
-
Push to the Branch:
git push origin feature/your-feature-name
-
Submit a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.
AI Coding Assistant, Code Analysis, File Generation, Code Editing, Gradio, Together.ai, LLaMA 2, Starcoder, Mistral 7B, JSON Mode, Function Calling, Open-Source, Developer Tools, Python, JavaScript, Java, C++, Debugging, Optimization, Best Practices.
Be a king and star this repo.
For support or questions, open an issue on GitHub or contact us at 4leojr@gmail.com.