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.0.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.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file smart_code_assistant-0.1.0.tar.gz.

File metadata

  • Download URL: smart_code_assistant-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f7ebd5fe0bb5755c0ddd9999f3e3cd2626c20bfc1dc61fb86b292506f15e9197
MD5 b151c1514b4fbdbf5e4e344f90daccc5
BLAKE2b-256 16f13363dc0aaae5a2c776f6d07d90f042688993c8e748434c8d0e226fa6ad9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smart_code_assistant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 245643f26fe2e55440dbecbe2b374df7a92c798e100312279043f808a503cf5e
MD5 197f00360191c46f72d8777e98c4fa7d
BLAKE2b-256 fc21c057802de76cf06f521ca3e7b3832798b3f19c27c5a97790e33d33ad9b87

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