https://github.com/jiggy-ai/pair Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + For + Enterprise + Teams + Startups + Education + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} jiggy-ai / pair Public * Notifications * Fork 1 * Star 23 REPL environment for GPT pair programming License Apache-2.0 license 23 stars 1 fork Star Notifications * Code * Issues 1 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights jiggy-ai/pair This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Local * Codespaces * Clone HTTPS GitHub CLI [https://github.com/j] Use Git or checkout with SVN using the web URL. [gh repo clone jiggy-] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Sign In Required Please sign in to use Codespaces. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @wskish wskish Update README.md ... 7cd44ae Mar 21, 2023 Update README.md 7cd44ae Git stats * 25 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time build/lib/pair_ai 0.4 March 20, 2023 13:05 pair_ai move example.md March 21, 2023 14:28 .gitignore initial release March 20, 2023 09:48 LICENSE Initial commit March 20, 2023 09:43 README.md Update README.md March 21, 2023 14:34 example.md Update example.md March 21, 2023 14:30 pyproject.toml initial release March 20, 2023 09:48 requirements.txt initial release March 20, 2023 09:48 setup.cfg 0.5.3: autodetect diffs in model output with option to patch March 21, 2023 14:25 View code PAIR (Pair AI REPL) Installation Usage Commands Dependencies README.md PAIR (Pair AI REPL) PAIR is a GPT-based pair programming REPL that assists coders and GPTs in dealing with code. Currently I am using GPT-4 to help build PAIR, and am open to other collaborators. Installation To install Pair AI, run the following command: pip install pair_ai Usage After installing the package, you can use the pair command in your terminal or command prompt to start the REPL: pair In the REPL, enter your code and questions, then press Ctrl+D to end input and receive a response from the GPT-based programming assistant. When PAIR detects a diff in the model output, it extracts the diff and presents it to the user. If the user accepts the diff then the diff is applied to the referenced source file using patch. There are probably a lot of corner cases here so I expect this functionality to be fragile. See example.md for a typical edit interaction. Commands * /file : Load a file's content into the model context by providing its path. * /cd : Change the current working directory to the specified path. To use the special commands, simply type the command followed by the appropriate path or command in the REPL. Example: /file /path/to/your/file.py /cd /path/to/your/directory Dependencies * chatstack * prompt_toolkit About REPL environment for GPT pair programming Topics gpt4 Resources Readme License Apache-2.0 license Stars 23 stars Watchers 1 watching Forks 1 fork Releases No releases published Packages 0 No packages published Contributors 2 * @wskish wskish Bill Kish * @amy-why amy-why Amy Wang Languages * Python 100.0% Footer (c) 2023 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.