A CLI tool to explain, debug, test and optimize code using LLM
Project description
Smart Code Assistant CLI
Short Description
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.
Features
- 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.
How It Works
- 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.
Supported Commands
| 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. |
Tech Stack
- Python
- Ollama 3.21B LLM (offline)
- Windows PowerShell (custom CLI commands)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file smart_code_assistant-0.1.2.tar.gz.
File metadata
- Download URL: smart_code_assistant-0.1.2.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b62b4cae75a38abb5f1e77fde0b0248c24a267f5ff2bd575ea9eb486890eab7e
|
|
| MD5 |
bfd1f46c4964617ad651342f248b16cd
|
|
| BLAKE2b-256 |
149036fa5cccb34945fea9a0c35d4818e9cac93c03537f294ce3bbef83f39efc
|
File details
Details for the file smart_code_assistant-0.1.2-py3-none-any.whl.
File metadata
- Download URL: smart_code_assistant-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b0a87a32ec6491e01ec7bc1d58ac619f9f0b520429b68df99b3a312d0a46cb2
|
|
| MD5 |
fbe597ffced15d380dd220bbe57fddbb
|
|
| BLAKE2b-256 |
a7d9e78e4ed41946096d2d89f38ead741a91158f72da22c9ee46333494af829d
|