https://github.com/andrewgcodes/repo2prompt
Turn a Github Repo's contents into a big prompt for long-context models like Claude 3 Opus.
https://github.com/andrewgcodes/repo2prompt
Last synced: 5 months ago
JSON representation
Turn a Github Repo's contents into a big prompt for long-context models like Claude 3 Opus.
- Host: GitHub
- URL: https://github.com/andrewgcodes/repo2prompt
- Owner: andrewgcodes
- Created: 2024-03-10T18:10:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-12T18:19:51.000Z (about 1 year ago)
- Last Synced: 2024-03-12T19:36:48.191Z (about 1 year ago)
- Language: Jupyter Notebook
- Size: 1.61 MB
- Stars: 75
- Watchers: 2
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - andrewgcodes/repo2prompt - Turn a Github Repo's contents into a big prompt for long-context models like Claude 3 Opus. (Jupyter Notebook)
README
# repo2prompt
Turn a Github Repo's contents into a big prompt for long-context models like Claude 3 Opus.Super easy:
You will need a Github repo URL (public) and a Github access token. You can also use this with private repos but your token will need to have those permissions.Within the build_directory_tree function, you can specify which file extensions should be included in the output.
The output is saved to a .txt file with name [repo]-formatted-prompt.txt
By the way, Github is limited to 5,000 API requests per hour so if a bug happens, that might be why!