HassanHassanKerdash/codetxt — reverse-engineered prompt
Reverse engineered prompt
Build me a simple command line tool called codetxt that takes either a local project folder or a GitHub repo URL and turns the codebase into one clean text file that is easy to paste into an LLM. I want it to work for things like AI analysis, training data, or basic search, so the output should feel readable and filtered, not a messy dump.
It should support writing to a file or printing to stdout, skipping files over a size limit, choosing a branch for remote repos, and include or exclude files with glob style patterns so I can focus on only certain parts of a repo. It should respect gitignore by default, but also let me include ignored files when I want. Please also handle overwriting output safely, and allow a GitHub token for private repos.
Use TypeScript and make it easy to install and run as a normal terminal command. Add a clear README with examples for local folders, remote repos, piping output, and pattern filtering. Look up current docs online if you need to.
Want more depth? Deep Reverse