gpt-repository-loader  by mpoon

CLI tool for converting code repos into LLM-friendly format

Created 2 years ago
2,972 stars

Top 16.0% on SourcePulse

GitHubView on GitHub
Project Summary

This tool converts Git repositories into a structured text format suitable for Large Language Models (LLMs), enabling tasks like code review and documentation generation. It's primarily designed for developers and researchers working with AI models and codebases.

How It Works

The command-line tool traverses a specified Git repository, preserving file structure and content. It outputs a single text file that LLMs can easily parse, facilitating AI-driven analysis of code repositories.

Quick Start & Requirements

  • Install/Run: python gpt_repository_loader.py /path/to/git/repository
  • Prerequisites: Python 3.
  • Optional arguments: -p /path/to/preamble.txt for a preamble file, -o /path/to/output_file.txt for a custom output file. Default output is output.txt.
  • More info: https://github.com/mpoon/gpt-repository-loader

Highlighted Details

  • Primarily built by GPT-4.
  • Preserves repository structure and file contents.
  • Generates LLM-friendly text output.
  • Includes a test harness (python -m unittest test_gpt_repository_loader.py).

Maintenance & Community

The project welcomes issues and pull requests, with an emphasis on its GPT-assisted development.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The tool's effectiveness is dependent on the LLM's ability to interpret the generated text format. No specific performance benchmarks or limitations on repository size are mentioned.

Health Check
Last Commit

1 year ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
3 stars in the last 30 days

Explore Similar Projects

Starred by David Cournapeau David Cournapeau(Author of scikit-learn), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

repomix by yamadashy

0.6%
19k
CLI tool to pack codebases into AI-friendly formats for LLMs
Created 1 year ago
Updated 2 days ago
Feedback? Help us improve.