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

Uploaded Python 3

File details

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

File metadata

  • Download URL: smart_code_assistant-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 36c13759afc35e1842b4720a0ce3c137ad7c8ef0e495ba1273b87b83232b200d
MD5 6a6302e9a3b8b29902865258f62d3933
BLAKE2b-256 7869e4f6ea6abc79bb9ea4e06c46217b74d60c1690ca642275c91e490bcb153e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for smart_code_assistant-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 67e24e6435e6144156ac71d639218ffff1acf5bd45d089dec02447954af801bb
MD5 ebab8a99f29481bc427b27158934a34e
BLAKE2b-256 7cc8dbf446aea2e7f8d112e6855367da5626777d0714273fa2177575ce89b7f1

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