Skip to content

felvin-search/gpt-repository-loader

 
 

Repository files navigation

gpt-repository-loader

Installation

pip install gpt-repository-loader

Linux Requirements

On Linux, ensure that you have xclip installed for clipboard functionality. You can install it using:

sudo apt-get install xclip  # Debian/Ubuntu
sudo yum install xclip      # Fedora/CentOS

How to use?

Go to the directory you are interested in, run

gpt-repository-loader . -c

This will copy ALL the git tracked content in the repository on clipboard and then you can use Gemini/Claude/ChatGPT to ask questions on it.

Available Command Line Flags

  • repo_path: (Required) Path to the Git repository.
  • -p, --preamble: Path to a preamble file to include before the repository content.
  • -c, --copy: Copies the repository contents to the clipboard. If not provided, the output will be written to a file named output.txt in the current directory.

What to use it for?

  • Build a README for codebases
  • Work with Legacy code
  • Debug issues

Gemini's 1M context window is REALLLY big, and it under utilized.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.6%
  • Shell 3.4%