files-to-prompt

Concatenate a directory full of files into a single prompt for use with LLMs (by simonw)

Files-to-prompt Alternatives

Similar projects and alternatives to files-to-prompt

  1. cline

    20 files-to-prompt VS cline

    Autonomous coding agent right in your IDE, capable of creating/editing files, executing commands, using the browser, and more with your permission every step of the way.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. repopack

    4 files-to-prompt VS repopack

    Discontinued 📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, and Gemini. [Moved to: https://github.com/yamadashy/repomix]

  4. 1filellm

    Discontinued Specify a github or local repo, github pull request, arXiv or Sci-Hub paper, Youtube transcript or documentation URL on the web and scrape into a text file and clipboard for easier LLM ingestion [Moved to: https://github.com/jimmc414/onefilellm]

  5. swarm

    Educational framework exploring ergonomic, lightweight multi-agent orchestration. Managed by OpenAI Solution team.

  6. repo2file

    Dump selected files from your repo into single file to easily use in LLMs (Claude, Openai, etc..)

  7. tools

    Assorted tools (by simonw)

  8. gitingest

    Replace 'hub' with 'ingest' in any github url to get a prompt-friendly extract of a codebase

  9. Nutrient

    Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers. Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.

    Nutrient logo
  10. code2prompt

    A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token counting.

  11. ingest

    Parse files (e.g. code repos) and websites to clipboard or a file for ingestions by AI / LLMs

  12. aitk

    2 files-to-prompt VS aitk

    CLI tool for listing directories and contents for use in AI models.

  13. shell-tooling

    A fun and nerdy collection of bash aliases and scripts to make your workflow smoother than butter on a hot pancake.

  14. repomix

    6 files-to-prompt VS repomix

    📦 Repomix (formerly Repopack) is a powerful tool that packs your entire repository into a single, AI-friendly file. Perfect for when you need to feed your codebase to Large Language Models (LLMs) or other AI tools like Claude, ChatGPT, DeepSeek, Perplexity, Gemini, Gemma, Llama, Grok, and more.

  15. your-source-to-prompt.html

    Quickly and securely turn your code projects into LLM prompts, all locally on your own machine!

  16. repo-to-prompt

    Quick script to convert a git repo into a prompt for analyzing with an LLM

  17. jsonltui

    A fast TUI application (with optional webui) to visually navigate and inspect JSON and JSONL data. Easily localize parse errors in large JSONL files. Made with LLM fine-tuning workflows in mind.

  18. claude-artifact-runner

    A template project for easily converting Claude AI’s Artifacts into React applications, ready to run out of the box or extend as needed.

  19. llmcat

    Render LLM-friendly maps of repositories (by everestmz)

  20. family-organizer

    An organizer for our family, meant to be both an app and a dashboard

  21. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better files-to-prompt alternative or higher similarity.

files-to-prompt discussion

Log in or Post with

files-to-prompt reviews and mentions

Posts with mentions or reviews of files-to-prompt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2025-02-04.
  • How I use LLMs as a staff engineer
    3 projects | news.ycombinator.com | 4 Feb 2025
    I'm in your boat with having to write a significant amount of English documents. I always write them myself, and have ChatGPT analyze them as well. I just had a thought - I wonder if I could paste in technical documentation, and code, to validate my documentation? Will have to try that later.

    CoPilot is used for simple boilerplate code, and also for the autocomplete. It's often a starting point for unit tests (but a thorough review is needed - you can't just accept it, I've seen it misinterpret code). I started experimenting with RA.Aid (https://github.com/ai-christianson/RA.Aid) after seeing a post on it here today. The multi-step actions are very promising. I'm about to try files-to-prompt (https://github.com/simonw/files-to-prompt) mentioned elsewhere in the thread.

    For now, LLMs are a level-up in tooling but not a replacement for developers (at least yet)

  • Yek: Serialize your code repo (or part of it) to feed into any LLM
    11 projects | news.ycombinator.com | 18 Jan 2025
    I have to add https://github.com/simonw/files-to-prompt as a marker guid.

    I think "the part of it" is key here. For packaging a codebase, I'll select a collection of files using rg/fzf and then concatenate them into a markdown document, # headers for paths ```filetype ``` for the contents.

    The selection of the files is key to let the LLM focus on what is important for the immediate task. I'll also give it the full file list and have the LLM request files as needed.

  • Things we learned out about LLMs in 2024
    4 projects | news.ycombinator.com | 31 Dec 2024
    I use my https://github.com/simonw/files-to-prompt tool like this:

      files-to-prompt . -e py -e md -c | pbcopy
  • Show HN: Source to Prompt- Turn your code into an LLM prompt with more features
    6 projects | news.ycombinator.com | 16 Dec 2024
    Your Source to Prompt-- Turn your code into an LLM prompt, but with way more features!

    I just made this useful tool as a single html file that lets you easily turn your coding projects into targeted single text files for use in LLM prompts for AI-aided development.

    Unlike the many other existing competing projects-- to name just a few:

    1. [files-to-prompt](https://github.com/simonw/files-to-prompt)

  • Source to Prompt- Turn your code into an LLM prompt, but with more features
    9 projects | news.ycombinator.com | 13 Dec 2024
  • Show HN: Replace "hub" by "ingest" in GitHub URLs for a prompt-friendly extract
    4 projects | news.ycombinator.com | 5 Dec 2024
    If I understand correctly, this sounds like https://github.com/simonw/files-to-prompt/.

    It's quite useful, with some filtering options (hidden files, gitignore, extensions) and support for Claude-style tags.

  • Everything I built with Claude Artifacts this week
    9 projects | news.ycombinator.com | 23 Oct 2024
    Yes, I paste stuff in from larger projects all the time.

    I'm very selective about what I give them. For example, if I'm working on a Django project I'll paste in just the Django ORM models for the part of the codebase I'm working on - that's enough for it to spit out forms and views and templates, it doesn't need to know about other parts of the codebase.

    Another trick I sometimes use is Claude Projects, which allow you to paste up to 200,000 tokens into persistent context for a model. That's enough to fit a LOT of code, so I've occasionally dumped my entire codebase (using my https://github.com/simonw/files-to-prompt/ tool) in there, or selected pieces that are important like the model and URL definitions.

  • Show HN: Vomitorium – all of your project in 1 text file
    4 projects | news.ycombinator.com | 10 Sep 2024
    Similar https://github.com/simonw/files-to-prompt
  • Show HN: Dump entire Git repos into a single file for LLM prompts
    15 projects | news.ycombinator.com | 8 Sep 2024
    Until I saw this post, I wasn't aware of any of those.

    What makes his better? Since you're asking, I tried these and here's my verdict:

    - [files-to-prompt](https://github.com/simonw/files-to-prompt) (from the GOAT simonw)

  • Anthropic Introduces Claude Projects
    1 project | news.ycombinator.com | 25 Jun 2024
    My https://github.com/simonw/files-to-prompt tool might also be useful here, for turning a bunch of different files into a single file to upload.
  • A note from our sponsor - Nutrient
    www.nutrient.io | 19 Feb 2025
    Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries. Learn more →

Stats

Basic files-to-prompt repo stats
12
1,092
7.0
6 days ago

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that Python is
the 2nd most popular programming language
based on number of references?