How to Use CodebaseToPrompt

This page explains how to use the tool to convert your local directory into a structured prompt for Large Language Models (LLMs).

UI Overview

Overview

CodebaseToPrompt scans your chosen folder right in the browser (files are only loaded to your local browser) and builds a file tree. You can expand folders, see which files are text or code, and select only what you need.

Features

How to Use

Follow these steps to get started:

  1. Open the App: Clone this repository, then open index.html in a modern browser.
  2. Select Your Folder: Click “Select Directory” to choose the folder you want to analyze.
  3. Pick Files: Expand or collapse directories. Check or uncheck files to decide what gets included.
  4. Copy Output: View or copy your selected files in the generated prompt format by clicking “Copy to Clipboard.”

Back to Main Page