Hacker GitHub

← All repos

mufeedvh/code2prompt

View on GitHub ↗ ★ 7,745 Rust

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

14 mentions on Hacker News by 10 people: 6 stories, 8 comments · first 2024-03-11 · latest 2026-05-28

Mentions per year 14 mentions · busiest year 2024 (9)
20082026
  1. ▲ 1
    code2prompt: Convert any folder into a single LLM prompt
    story by SweetSoftPillow · 2026-05-28 · 0 comments
  2. https://github.com/mufeedvh/code2prompt https://github.com/yamadashy/repomix
  3. …exists. Good work! From a rough glance it looks pretty similar to another tool that I've been using https://github.com/mufeedvh/code2prompt
  4. ▲ 1
    Mufeedvh/code2prompt:A CLI tool to convert your codebase in a single LLM prompt
    story by ulrischa · 2025-01-16 · 1 comment
  5. ▲ 2
    Ask HN: How do you load your code base as context window in ChatGPT?
    story by alfonsodev · 2025-01-07 · 2 comments
  6. ▲ 1
    Code2prompt
    story by handfuloflight · 2024-12-17 · 0 comments
  7. ▲ 1
    Show HN: Source to Prompt- Turn your code into an LLM prompt with more features
    story by eigenvalue · 2024-12-16 · 0 comments
  8. …repo2txt: https://repo2txt.simplebasedomain.com/ code2prompt: https://github.com/mufeedvh/code2prompt repomix: https://github.com/yamadashy/repomix ingest: https://github.com/sammcj/ingest 1filellm: https://github.com/ji
  9. …no option to specify files to include, must work backwards with ignore option - [code2prompt]( https://github.com/mufeedvh/code2prompt ) --> It always puts the output to the paste buffer even if you specify output file -…
  10. …https://github.com/simonw/files-to-prompt ) (from the GOAT simonw) - [code2prompt]( https://github.com/mufeedvh/code2prompt ) - https://gh-repo-dl.cottonash.com/ - [1filellm]( https://github.com/jimmc414/1filellm ) - [repopack](…
  11. Sounds a bit like code2prompt - https://github.com/mufeedvh/code2prompt
  12. I use code2prompt ( https://github.com/mufeedvh/code2prompt ) with the following zsh wrapper: function code2prompt() { # wrap the code2prompt command in a function that sets a number of default excludes #…
  13. This would be good to have in the README.md, I've submitted a PR with your comment here: https://github.com/mufeedvh/code2prompt/pull/1 :) I could see this tool being useful for a few of my use cases, thank you.
  14. ▲ 4
    Show HN: Code2prompt – Generate LLM prompts from your codebase
    story by mufeedvh · 2024-03-11 · 7 comments