code2prompt
AGENTS.md7.7k starsChanged 3 months agoMITView on GitHub
Project-specific skills live in .agents/skills/. These contributor skills use metadata.internal: true to stay out of public Skills CLI discovery. The installable user skill lives in skills/code2prompt/. A change can require several verification skills. Root cargo test does not exercise the Python bindings.
Trending
Quiet since May.about the whole repository
Who's talking about mufeedvh/code2prompt
- @github-trending.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 mufeedvh / code2prompt ⭐ 2,915 (+156) 🗒 Rust A CLI tool to convert …”Bluesky · Jan 13, 2025 · 6 likes
- @rusttrending.bsky.social“mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, …”Bluesky · Jan 16, 2025 · 5 likes
- @rahulrane.bsky.social“It isn't a website but I find github.com/mufeedvh/cod... to be much better with token counting and other …”Bluesky · Dec 9, 2024 · 5 likes
- @rusttrending.bsky.social“mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, …”Bluesky · Dec 12, 2024 · 4 likes
- A Hacker News story“Show HN: Code2prompt – Generate LLM prompts from your codebase”Hacker News · Mar 11, 2024 · 4 points
The biggest 5 of 34 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 34
Talked about on GitHub, Bluesky and Hacker News (34 times).
On GitHub · 15
- Aug 18, 2025Miscellaneous set of tools — UfoMiao/zcf2 reactions · 1 comment
- Jan 24, 2025Q: Would GitIngest be good for coder bots? — coderamp-labs/gitingest1 reaction · 9 comments
- Sep 19, 2024code2prompt v2.0.0 — NixOS/nixpkgs1 reaction · 6 comments
- Apr 9, 2024Include code2prompt — ad-si/cai1 reaction · 1 comment
- Dec 11, 2025code2prompt 4.2.0 — Homebrew/homebrew-core0 reactions · 1 comment
10 more on GitHub
- Dec 7, 2025code2prompt: 1.1.0 -> 4.0.2 — NixOS/nixpkgs0 reactions · 4 comments
- Nov 13, 2025code2prompt, yek: add page — tldr-pages/tldr0 reactions · 4 comments
- Nov 8, 2025Let's document: Code2Prompt (and repomap tools) — tldr-pages/tldr0 reactions
- Sep 16, 2025code2prompt 4.0.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 29, 2025LFX mentorship (2025/term3): Rust Coder for Claude Code — WasmEdge/WasmEdge0 reactions · 8 comments
- Jun 10, 2025Take a look at similiar projects and compare — DefinitelyNotSimon13/tokenize0 reactions
- Mar 20, 2025Server Submission: Code2prompt — cline/mcp-marketplace0 reactions
- Jan 10, 2025repo prompt — nikivdev/tools0 reactions
- Dec 26, 2024Codegate Workspaces — stacklok/codegate0 reactions · 3 comments
- Jun 8, 2024Package request: code2prompt — NixOS/nixpkgs0 reactions
On Bluesky · 15
- Jan 13, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 mufeedvh / code2prompt ⭐ 2,915 (+156) 🗒 Rust A CLI tool to convert your codebase into a single LLM… — @github-trending.bsky.social6 likes and reposts
- Jan 16, 2025mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social5 likes and reposts
- Dec 9, 2024It isn't a website but I find github.com/mufeedvh/cod... to be much better with token counting and other features. — @rahulrane.bsky.social5 likes and reposts
- Dec 12, 2024mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social4 likes and reposts
- Apr 14, 2025mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social1 likes and repost
10 more on Bluesky
- Mar 29, 2025mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social1 likes and repost
- Mar 4, 2025mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social1 likes and repost
- Feb 17, 2025mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social1 likes and repost
- Jan 16, 2025I recently noticed this github.com/mufeedvh/cod... #rust CLI app with #python bindings. I use LLMs for code help often but it's onerous to… — @owen7ba.bsky.social1 likes and repost
- Nov 28, 2024I took inspiration for the scanner from this python project : Code2Prompt github.com/mufeedvh/cod... I'm 100% sure you can use an LLM to… — @stephanjanssen.besays it tested it1 likes and repost
- Nov 1, 2024Love the idea of giving it some documentation. That seems like a great reason to maintain documention in the repo! I’ve been using this a… — @laneparton.com1 likes and repost · 1 reply
- Oct 1, 2024#code2prompt: #CLI tool converts codebases to #LLM prompts with source tree, templating & token counting 📊 Features: • Customizable… — @michabbb.bsky.social1 likes and repost
- Sep 23, 2024mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social1 likes and repost
- Jul 12, 2024mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social1 likes and repost
- Jul 10, 2024mufeedvh / code2prompt: A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt templating, and token… — @rusttrending.bsky.social1 likes and repost
On Hacker News · 4
- Mar 11, 2024Show HN: Code2prompt – Generate LLM prompts from your codebase4 points · 7 comments
- May 28, 2026code2prompt: Convert any folder into a single LLM prompt1 point
- Jan 16, 2025Mufeedvh/code2prompt:A CLI tool to convert your codebase in a single LLM prompt1 point · 1 comment
- Dec 17, 2024Code2prompt1 point
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository7 other files it gives its agents.
- code2prompt-conventionsSkill
- documentationSkill
- verify-cliSkill
- verify-coreSkill
- verify-pythonSkill
- verify-websiteSkill
- code2promptSkill
The file
We split this AGENTS.md into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 9
Follow existing code2prompt patterns before generic best practices.
- Very specific: line 10
Put reusable product logic in code2prompt-core.
- Very specific: line 11
Keep CLI/TUI concerns in code2prompt.
- Distinctive: line 12
Keep Python bindings thin: delegate behavior to the core.
- Distinctive: line 14
Keep the website as a consumer of product behavior, not a second implementation.
- Distinctive: line 15
Prefer small changes and existing dependencies.
- Distinctive: line 19
Do not claim completion until the relevant verification skill passes.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
code2prompt agent guide
Project-specific skills live in .agents/skills/.
These contributor skills use metadata.internal: true to stay out of public
Skills CLI discovery. The installable user skill lives in skills/code2prompt/.
Rules
- Follow existing code2prompt patterns before generic best practices.
- Put reusable product logic in
code2prompt-core. - Keep CLI/TUI concerns in
code2prompt. - Keep Python bindings thin: delegate behavior to the core.
Code2PromptSessioncoordinates configuration, selection, and loadedSessionData.- Keep the website as a consumer of product behavior, not a second implementation.
- Prefer small changes and existing dependencies.
- Preserve public behavior unless the task explicitly changes it.
- Bug fixes should include a regression test when practical.
- Comments should explain non-obvious intent, constraints, or tradeoffs, not narrate code.
- Do not claim completion until the relevant verification skill passes.
Skills
- Implementation/refactoring →
code2prompt-conventions crates/code2prompt-core/**→verify-corecrates/code2prompt/**→verify-clicrates/code2prompt-python/**→verify-pythonwebsite/**→verify-website- Public behavior/docs/comments →
documentation
A change can require several verification skills. Root cargo test does not exercise
the Python bindings.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

