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. https://github.com/mufeedvh/code2prompt https://github.com/yamadashy/repomix
  2. …exists. Good work! From a rough glance it looks pretty similar to another tool that I've been using https://github.com/mufeedvh/code2prompt
  3. …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
  4. …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 -…
  5. …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](…
  6. Sounds a bit like code2prompt - https://github.com/mufeedvh/code2prompt
  7. 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 #…
  8. 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.