DISCOVERED IN HACKER NEWS

Code2prompt

Code2prompt – Generate LLM prompts from your codebase

Artificial intelligence
2Recommendation signals
3Sources
2025-02-15Latest mention

Why does HN talk about it?

Automatically selected excerpts in their original language. Read the full discussion for context.

@megadragon9
From a rough glance it looks pretty similar to another tool that I've been using https://github.com/mufeedvh/code2prompt https://github.com/mufeedvh/code2prompt
Read the full discussion
@smcleod
I use code2prompt (https://github.com/mufeedvh/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 # https://github.com/mufeedvh/code2prompt/ local arguments excludeFiles excludeFolders templatesFolder excludeExtensions templatesFolder="${HOME}/git/code2prompt/templates" excludeFiles=".editorconfig,.eslintignore,.eslintrc,tsconfig.json,.gitignore,.npmrc,LICENSE,esbuild.config.mjs,manifest.json,package-lock.json,\ version-bump.mjs,versions.json,yarn.lock,CONTRIBUTING.md,CHANGELOG.md,SECURITY.md,.nvmrc,.e…
Read the full discussion
@mufeedvhShow HN
Show HN: Code2prompt – Generate LLM prompts from your codebase
Read the full discussion