Dump a Code Repository as a Text File, For Easier Sharing with Chatbots

Some LLMs (Large Language Models) can act as useful programming assistants when provided with a project’s source code, but experimenting with this can get a little tricky if the chatbot has no way to download from the internet. In such cases, the code must be provided by either pasting it into the prompt or uploading a file manually. That’s acceptable for simple things, but for more complex projects, it gets awkward quickly.


This is a companion discussion topic for the original entry at https://hackaday.com/2024/04/14/dump-a-code-repository-as-a-text-file-for-easier-sharing-with-chatbots/