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 CLI

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 Jinja 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.

Examples

You can run a prompt directly on the command line:

pilot -o README_German.md "translate the README into German"

Generate code quickly:

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

Get an organized view of your Github issues:

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

Get some advice on your code:

pilot "The 'TaskEngine' class is too complex. Read it and suggest refactoring options."

Generate parts of your README 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 change the default settings with parameters and options:

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

Options:
  --wait / --no-wait        Wait for the result.
  --repo TEXT               Github repository in the format owner/repo.
  --spinner / --no-spinner  Display a loading indicator
  --quiet                   No pretty-print, no status indicator or messages.
  --cheap                   Use the cheapest GPT model (gpt-3.5-turbo)
  --code                    Optimize prompt and settings for generating code
  -f, --file PATH           Load 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.
  --model TEXT              GPT model to use.
  --debug                   Display debug information.
  --help                    Show this message and exit.

Installation

Prerequisites:

  1. Install the PR Pilot app on your Github repository
  2. Generate an API key in the dashboard

Install via pip:

pip install --upgrade pr-pilot-cli

Install via Homebrew:

brew tap PR-Pilot-AI/pr-pilot-homebrew
brew install pr-pilot-cli

Configuration

The configuration file is located at ~/.pr-pilot.yaml.

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.5.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

pr_pilot_cli-1.5.0-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pr_pilot_cli-1.5.0.tar.gz
  • Upload date:
  • Size: 19.2 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.5.0.tar.gz
Algorithm Hash digest
SHA256 e20c4bdd3673e5e69492217244cd5ac0b51db8ebcf439d8dfe0e02732fcf5e54
MD5 6bc8718e7a5ec413bef42dda1f81f2c5
BLAKE2b-256 f2a7ad4f48cecbe1f4684f6d10ffcae143e31087a85492fcedc6d1b9d55846ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pr_pilot_cli-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 254c872978c297ec0fd631611bcf3b43ba720c9926ec1615a59d65757879d20d
MD5 f49059cbf396acd7dca9b82ea27dd9b7
BLAKE2b-256 7409e82ce0711c046d31a0da3867b9147cd4465cbde8f3f13d90bfb018b0aa5b

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