Skip to main content

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

  1. Execute a custom command (e.g., debug) in your terminal.
  2. Your code is sent to the Ollama LLM for processing.
  3. The generated output (debugged code, optimized version, explanation, or tests) is saved as a text file in your project folder.
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_code_assistant-0.1.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_code_assistant-0.1.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

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

Hashes for smart_code_assistant-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b62b4cae75a38abb5f1e77fde0b0248c24a267f5ff2bd575ea9eb486890eab7e
MD5 bfd1f46c4964617ad651342f248b16cd
BLAKE2b-256 149036fa5cccb34945fea9a0c35d4818e9cac93c03537f294ce3bbef83f39efc

See more details on using hashes here.

File details

Details for the file smart_code_assistant-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_code_assistant-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3b0a87a32ec6491e01ec7bc1d58ac619f9f0b520429b68df99b3a312d0a46cb2
MD5 fbe597ffced15d380dd220bbe57fddbb
BLAKE2b-256 a7d9e78e4ed41946096d2d89f38ead741a91158f72da22c9ee46333494af829d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page