✏️ Pencil is a simple AI-based multi-file project writer. ✏️
Pencil is a simple AI-based multi-file project writer. It leverages OpenAI's models to assist in generating, maintaining, and updating code across multiple files in a project.
To get started with Pencil, you can follow the instructions provided below for installation and usage.
NOTE: This package works with Python >= 3.12
git clone https://github.com/GoInterject/pencil.git
cd pencil
python -m pip install .
pip install pencilai
To interactively chat with the AI-based project writer:
pencil chat --openai-api-key "<YOUR_OPENAI_API_KEY>"
Replace <YOUR_OPENAI_API_KEY>
with your actual OpenAI API key.
To list all the files in the project directory:
pencil ls --base-dir "/path/to/project"
You can replace /path/to/project
with the path to your project directory. Default is the current directory (.
).
We welcome contributions to Pencil! To do so, please follow these steps:
- Fork the repository from GitHub.
- Clone your forked repository:
git clone https://github.com/YOUR_USERNAME/pencil.git
- Create a new branch for your feature or bugfix:
git checkout -b feature-or-bugfix-name
- Make the necessary changes and commit them:
git commit -m "Description of your changes"
- Push your changes to your forked repository:
git push origin feature-or-bugfix-name
- Open a pull request on the original repository and provide a brief description of your changes.
We will review your pull request as soon as possible. Thank you for contributing!
This project is licensed under the MIT License. See the LICENSE file for details.