Run the following bash script in the Terminal to collect the entire app source code in one text file:
On MacOS:
for file in $(find * -type f | grep -Ev ".idea|.json|.txt|config.toml|pycache|chats|test|\.log|assistants|app-data|venv|example"); do
echo -e "\`\`\`\n\n>>> $file:\n\`\`\`" && cat $file;
done > source_code_for_llm.txt
for file in config.toml.sample mcp_config.json.sample requirements.txt; do
echo -e "\n\`\`\`\n\n>>> $file:\n\`\`\`" && cat $file;
done >> source_code_for_llm.txt
echo "\n\`\`\`" >> source_code_for_llm.txt
sed -i '' '1,2d' source_code_for_llm.txt
On Linux:
for file in $(find * -type f | grep -Ev ".idea|.json|.txt|config.toml|pycache|chats|test|\\.log|assistants|app-data|venv|example"); do
echo -e "\`\`\`\n\n>>> $file:\n\`\`\`" && cat $file;
done > source_code_for_llm.txt
for file in config.toml.sample mcp_config.json.sample requirements.txt; do
echo -e "\n\`\`\`\n\n>>> $file:\n\`\`\`" && cat $file;
done >> source_code_for_llm.txt
echo -e >> source_code_for_llm.txt
echo "\`\`\`" >> source_code_for_llm.txt
sed -i '1,2d' source_code_for_llm.txt