genignore

A standard for specifying which files to ignore in generative AI tools

.genignore

.genignore is a proposal to standardize how to specify which files are to be ignored for generative AI.

Specification:

Any implementation of genignore should follow the same spec as gitignore:

https://git-scm.com/docs/gitignore

Currently, various AI tools use their own ignore file formats:

UIThub implements a slightly simplified version of .genignore: only the .genignore at the root is applied.

We hope other context selection tools will adopt this standard. Tool creators can add support for .genignore alongside their existing methods, giving repository maintainers the choice to immediately support all tools with a single configuration file.

Benefits of standardization:

  • Repository maintainers only need to maintain one ignore file
  • Consistent behavior across different AI tooling
  • Familiar syntax for developers already using .gitignore