lennxa

files-to-prompt

Source | #ai

A simple tool by Simon:

Concatenate a directory full of files into a single prompt for use with LLMs

I used it like this:

$ pip install files-to-prompt
$ files-to-prompt -e py .  # only python files
./deep_play.py
---
import pyaudio
import websockets
import asyncio
import json
import os
from dotenv import load_dotenv
import pyautogui

It was built entirely using Cluade-3-Opus back in April 2024:

I wrote files-to-prompt almost entirely using Claude 3 Opus, llm-claude-3 and files-to-prompt itself, once it was functional enough to be useful.

I usually pass my files wrapped in triple-backticks (```), I have opened an issue.

#links #tech