Skip to main content

CLI for PR Pilot, a text-to-task automation platform for Github.

Project description

PR Pilot Logo

Install | Documentation | Blog | Website

PR Pilot Command-Line Interface

PR Pilot gives you a natural language interface for your Github projects. Given a prompt, it uses LLMs (Large Language Models) to autonomously fulfill tasks by interacting with your code base and Github issues.

Using prompt templates, you can create powerful, reusable commands that can be executed by PR Pilot.

🛠️ Usage

Open a terminal and ls into a repository you have installed PR Pilot.

In your repository, use the pilot command:

pilot "Tell me about this project!"

📝 Ask PR Pilot to edit a local file for you:

pilot --edit cli/cli.py "Make sure all functions and classes have docstrings."

⚡ Generate code quickly and save it as a file:

pilot -o test_utils.py --code "Write some unit tests for the utils.py file."

🔍 Capture part of your screen and add it to a prompt:

pilot -o component.html --code --snap "Write a Bootstrap5 component that looks like this."

📊 Get an organized view of your Github issues:

pilot "Find all open Github issues labeled as 'bug', categorize and prioritize them"

📝 Generate parts of your documentation with a template:

pilot --direct -f prompts/README.md.jinja2 -o README.md

For more examples, check out the prompts directory in this repository.

⚙️ Options and Parameters

You can customize your interact with PR Pilot using parameters and options:

Usage: python -m cli.cli [OPTIONS] [PROMPT]...

  Create a new task for PR Pilot - https://docs.pr-pilot.ai

Options:
  --wait / --no-wait        Wait for PR Pilot to finish the task.
  --repo TEXT               Github repository in the format owner/repo.
  --snap                    Select a portion of your screen to add as an image
                            to the task.
  -e, --edit PATH           Let PR Pilot edit a file for you.
  --spinner / --no-spinner  Display a loading indicator.
  --quiet                   Disable all output on the terminal.
  --cheap                   Use the cheapest GPT model (gpt-3.5-turbo)
  --code                    Optimize prompt and settings for generating code
  -f, --file PATH           Generate prompt from a template file.
  --direct                  Do not feed the rendered template as a prompt into
                            PR Pilot, but render it directly as output.
  -o, --output PATH         Output file for the result.
  -m, --model TEXT          GPT model to use.
  --debug                   Display debug information.
  --help                    Show this message and exit.

⚙️ Configuration

The configuration file is located at ~/.pr-pilot.yaml. At the moment, it only contains the API key for PR Pilot:

api_key: YOUR_API_KEY

🤝 Contributing

Contributors are welcome to improve the CLI by submitting pull requests or reporting issues. For more details, check the project's GitHub repository.

📜 License

The PR Pilot CLI is open-source software licensed under the GPL-3 license.

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

pr_pilot_cli-1.6.1.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

pr_pilot_cli-1.6.1-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file pr_pilot_cli-1.6.1.tar.gz.

File metadata

  • Download URL: pr_pilot_cli-1.6.1.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.19

File hashes

Hashes for pr_pilot_cli-1.6.1.tar.gz
Algorithm Hash digest
SHA256 78d7cf93752f01f481758e0602511c9f93a480044b606bb8d649c8dd358453fb
MD5 c022583ea018ce25a07ea7b0b114ab10
BLAKE2b-256 783220428abb3cba6823a1c310a361b4727d3c1fb5203b4c334ea67011a88608

See more details on using hashes here.

File details

Details for the file pr_pilot_cli-1.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pr_pilot_cli-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b8fd28363d92bb59ff8d4c8edc66eaf3c828b3d0d092b22dd993527aa6b705f
MD5 e700860eea24e15a0c67347db6b90bc4
BLAKE2b-256 dc833a0625a64c1ec2bcb8ee03cd10e5908c88a1d0beb2376efcf80b0db11d10

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