Skip to main content

Your indispensable partner in programming

Project description

CodeZen

Description

CodeZen is a CLI utility that uses LLMs to help you debug and evolve your codebase based on your requests.

Usage examples:

codezen "Why am I getting <some exception message>?"
codezen "Write a README.md file for this project"

The differences from Github Copilot:

  • This is a CLI tool, meaning it can be used regardless of your chosen IDE.
  • This provides the LLM with the entire codebase, so it can do things that require a more holistic view of your project.

Current limitations:

  • Only works for small codebases- currently it sends the entire codebase on each request (except the ignored files). 😆
  • It can't change files autonomously, it only offers a solution.
  • It uses gitignore file to know which files to ignore, so you must run this in a git repo and you can't currently ignore files that don't appear there.

Installation

Using PyPi

You can install the application using pip or pipx:

pip install --user codezen

or

pipx install codezen

Compile from source

You can compile directly from source:

git clone https://github.com/mmaorc/codezen
cd codezen
poetry build

Development

For development purposes, clone the repository, navigate to the project directory, and install it in a virtual environment:

git clone https://github.com/mmaorc/codezen
cd codezen
poetry install
poetry shell

Usage

Before running the script, ensure that the OPENAI_API_KEY environment variable is set up correctly.

Run CodeZen with the following command:

codezen <issue_description>

<issue_description>: Describe the issue you are facing with your code

If you want to ignore additional files without adding them to your .gitignore, You can create a .czignore file at the project's root and add them there.

If you want to estimate the number of used tokens and show the files that are included in the prompt you can use:

codezen <issue_description> --estimate

Contributing

If you would like to contribute to this project, please feel free to fork the repository, create a feature branch, and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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

codezen-0.4.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

codezen-0.4.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file codezen-0.4.0.tar.gz.

File metadata

  • Download URL: codezen-0.4.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for codezen-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b67db69e623f159a3bd00aacb3bbfd5a8bc9f583fe3df30572826ba8e7a4327a
MD5 b970c46af1ab8636fc5253f7f15d006f
BLAKE2b-256 48937f8923476f787f49234c868b3cb4c50412f390327ae2380f03caeef83878

See more details on using hashes here.

File details

Details for the file codezen-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: codezen-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for codezen-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 76f7d714586e31ee34eac696c4a7858301d6d95059234610c123f5b76270d4fc
MD5 c53df92fb5050b15300546c7a8bee6e4
BLAKE2b-256 14bf5bfc04565bcc53e877bfafab338222c9826d7619a9187c45d7e725814098

See more details on using hashes here.

Supported by

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