addyosmani / addyosmani/git2txt

Feature request: Include/exclude files/folders

Open
#5 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
564
Forks
58
PR merge metrics
No merged PRs in 30d

Description

## Challenges/opportunities
GitHub repos often contain files that are irrelevant in a "talk to this repo" context. My experience is coding tools that have full context awareness of an entire repo tend to meander into files that are irrelevant to the task at hand.

## Proposed solution
Provide the ability to explicitly include/exclude files and folders from the summary. That way the text file provides the LLM with a custom narrow scope containing only what is relevant to the task at hand.

## Expanded solution
Option that generates files for each root folder. So for a typical repo you'd get
- `full-repo.txt`
- `[root-folder-name].txt`
- `[other-root-folder-name].txt`
- etc

Could also have a config option to specify how many folders deep this creation should go:
- `[path-to-folder-name].txt`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.