This Python script scans your entire project folder, detects used technologies, excludes non-code folders (like .git
, node_modules
, venv
, dist
, etc.), and compiles all relevant source files into one readable text file (source_dump.txt
).
It also generates a directory tree, so GPT can understand the structure of your project.
This is super helpful when:
- You want to copy/paste your project into ChatGPT or Playground
- You need back-and-forth discussion about architecture, bugs, or refactoring
- GitHub Copilot or IDE integration isnβt an option (or overkill)
Link repo: github. com/liamhnam/ProjectDump
Output sample (simplified):
project/
βββ source_dump.txt
βββ app/
β βββ main.py
βββ utils/
β βββ helpers.js
# ==============
# Path: /path/to/your/project
# Detected tech: python
# ==============
## DIRECTORY STRUCTURE
New folder/
βββ __pycache__/
βββ __main__.py
βββ aggregator.py
βββ constants.py
βββ detector.py
βββ filters.py
βββ one_file_version.py
βββ source_dump.txt
βββ tree_generator.py
## FILE CONTENTS
### __main__.py
import os
Why it works well with ChatGPT:
- You only paste one file, instead of uploading or pasting many
- GPT sees the full context and file relationships
- Cleaner debugging and faster iteration