Smart Code Assistant CLI helps beginners debug, optimize, explain, and generate tests for Python code instantly, powered by an offline Ollama 3.21B model. It keeps developers focused by providing AI-powered solutions directly in the project directory.
- Code Debugger – Automatically detects issues in your code and generates a text file with suggestions.
- Code Optimizer – Analyzes your code and suggests more efficient alternatives in a separate file.
- Code Explainer – Provides clear explanations of your code logic up to a specific point.
- Test Generator – Generates sample test cases to validate correctness and handle edge cases.
- Offline Support – Powered by Ollama 3.21B, works entirely offline without internet dependency.
- Fast Execution – Commands execute in 2–3 seconds (network optional) for instant feedback.
- Execute a custom command (e.g.,
debug) in your terminal. - Your code is sent to the Ollama LLM for processing.
- The generated output (debugged code, optimized version, explanation, or tests) is saved as a text file in your project folder.
- No need to switch tools—stay focused and reduce attention residue.
| Command | Description |
|---|---|
debug |
Debugs your code and writes suggestions to a file. |
optimize |
Suggests improvements for efficiency. |
explain |
Explains your code logic clearly. |
generate-test |
Creates sample test cases for validation. |
- Python
- Ollama 3.21B LLM (offline)
- Windows PowerShell (custom CLI commands)