Generate AI-friendly text files from your codebase.
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
# 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*"
Creates a text file with:
- Directory tree structure
- File contents with clear separators
Perfect for feeding to AI models like Claude or GPT.
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.