Skip to content

CLI tool to generate AI-friendly text extracts from your local codebase. Like gitingest, but for local files

Notifications You must be signed in to change notification settings

shubhdotai/codeingest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

CodeIngest

Generate AI-friendly text files from your codebase.

Setup

Option 1: Move the file

chmod +x codeingest.py
sudo mv codeingest.py /usr/local/bin/codeingest

Option 2: Symbolic link (keeps original)

chmod +x codeingest.py
sudo ln -s $(pwd)/codeingest.py /usr/local/bin/codeingest

Usage

# Current directory
codeingest .

# Specific files
codeingest app.py utils.py

# Mix files and directories
codeingest src/ README.md config.json

# Custom output
codeingest src/ -o output.txt

# Add ignore patterns
codeingest . --ignore "*.test.js" "temp*"

Output

Creates a text file with:

  • Directory tree structure
  • File contents with clear separators

Perfect for feeding to AI models like Claude or GPT.

Sample Output

Directory structure:
└── myproject/
    ├── src/
    │   ├── app.py
    │   └── utils.py
    └── README.md


================================================
FILE: src/app.py
================================================
def main():
    print("Hello, World!")

if __name__ == "__main__":
    main()

================================================
FILE: src/utils.py
================================================
def helper():
    return "Helper function"

================================================
FILE: README.md
================================================
# My Project

This is a sample project.

About

CLI tool to generate AI-friendly text extracts from your local codebase. Like gitingest, but for local files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages