Comparison
code2prompt vs codecompanion.nvim
Verdict
code2prompt: code2prompt is primarily Rust; codecompanion.nvim is Lua. codecompanion.nvim: codecompanion.nvim is primarily Lua; code2prompt is Rust.
Markdown twin · code2prompt alternatives · codecompanion.nvim alternatives
GraphCanon updated Sep 20, 2026
vs
Trust & integrity
| Signal | code2prompt | codecompanion.nvim |
|---|---|---|
| Maintenance | Very active (1d since push) As of Sep 20, 2026 · github_public_v1 | Very active (0d since push) As of Sep 20, 2026 · github_public_v1 |
| Provenance | Not a fork · Personal account As of Sep 20, 2026 · github_public_v1 | Not a fork · Personal account As of Sep 20, 2026 · github_public_v1 |
| OSV dependency advisories | No lockfile (source not queried) As of Jul 11, 2026 · osv@v1 | No lockfile (source not queried) As of Jul 15, 2026 · osv@v1 |
| deps.dev advisories | Not queried deps.dev@v1 | Not queried deps.dev@v1 |
| OpenSSF Scorecard | Not queried openssf-scorecard@v1 | Not queried openssf-scorecard@v1 |
Tagline
- code2prompt
- CLI tool to convert codebase into LLM prompt
- codecompanion.nvim
- :rocket: Getting Started
Stars
- code2prompt
- 7.7k
- codecompanion.nvim
- 6.9k
Forks
- code2prompt
- 446
- codecompanion.nvim
- 457
Open issues
- code2prompt
- 16
- codecompanion.nvim
- 15
Language
- code2prompt
- Rust
- codecompanion.nvim
- Lua
Adopt for
- code2prompt
- -
- codecompanion.nvim
- Unverified catalog guidance: AI coding plugin for Neovim in Lua with Apache license and support for various LLMs.
Persona
- code2prompt
- -
- codecompanion.nvim
- -
Runtime
- code2prompt
- -
- codecompanion.nvim
- -
License
- code2prompt
- MIT
- codecompanion.nvim
- Apache-2.0
Last pushed
- code2prompt
- Sep 18, 2026
- codecompanion.nvim
- Sep 19, 2026
Categories
- code2prompt
- Developer Tools, LLM Frameworks
- codecompanion.nvim
- Developer Tools, LLM Frameworks
Trust and health
Days since push
- code2prompt
- 1d
- codecompanion.nvim
- 0d
Open issues (recorded)
- code2prompt
- 16
- codecompanion.nvim
- 15
Stars delta
- code2prompt
- +169 (30d)
- codecompanion.nvim
- +70 (30d)
Open issues delta
- code2prompt
- -4 (30d)
- codecompanion.nvim
- +1 (30d)
Full report
- code2prompt
- Trust report
- codecompanion.nvim
- Trust report
Choose code2prompt if…
- code2prompt is primarily Rust; codecompanion.nvim is Lua.
- License: code2prompt is MIT, codecompanion.nvim is Apache-2.0.
- code2prompt operates as a self-hosted CLI tool, allowing for local data processing that is important for users with confidentiality requirements or those who wish to avoid cloud dependency.
- Pricing: The code2prompt tool is available under MIT license free of monetary charge. However, premium support or advanced features might incur costs if provided by the development team in future updates..
- Tags unique to code2prompt: ai, chatgpt, claude, cli.
- Unverified catalog guidance: When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.
When NOT to use code2prompt
- Unverified catalog guidance: In situations requiring real-time interaction or analysis of codebases due to the static nature of its prompt generation process, as this might not cater to agile or evolving project requirements.
- Unverified catalog guidance: If you are in need of a tool beyond simple CLI operation and desire an integrated development environment (IDE) plugin for more interactive and continuous assistance.
Choose codecompanion.nvim if…
- codecompanion.nvim is primarily Lua; code2prompt is Rust.
- License: codecompanion.nvim is Apache-2.0, code2prompt is MIT.
- Tags unique to codecompanion.nvim: agent-client-protocol, ai-coding, anthropic, claude-code.
- codecompanion.nvim has Docker configuration in its repository.
- Unverified catalog guidance: When you are a Neovim user seeking AI-driven code completion that integrates smoothly into your editor setup.
When NOT to use codecompanion.nvim
- Unverified catalog guidance: Avoid if your coding involves non-Lua languages and you do not require or support the specific LLMs handled by this plugin.
- Unverified catalog guidance: This tool may not be suitable for developers who prefer code companion tools with broader language or LLM compatibility outside Neovim.
Explore
Sources
Every stat on this page traces to a dated GitHub sync, license file, enrichment field, or trust scan.
- GitHub stars (mufeedvh/code2prompt) · observed Sep 20, 2026
- GitHub forks (mufeedvh/code2prompt) · observed Sep 20, 2026
- Last push (mufeedvh/code2prompt) · observed Sep 18, 2026
- License file (MIT) · observed Sep 20, 2026
- Decision facts (enrichment) · observed Jul 17, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
- GitHub stars (olimorris/codecompanion.nvim) · observed Sep 20, 2026
- GitHub forks (olimorris/codecompanion.nvim) · observed Sep 20, 2026
- Last push (olimorris/codecompanion.nvim) · observed Sep 19, 2026
- License file (Apache-2.0) · observed Sep 20, 2026
- Decision facts (enrichment) · observed Jul 17, 2026
- Trust scan (lockfile / OSV) · observed Jul 15, 2026
GitHub stars on cards: code2prompt 7.7k · codecompanion.nvim 6.9k (synced Sep 20, 2026).
Common questions
- What is the difference between code2prompt and codecompanion.nvim?
- code2prompt: CLI tool to convert codebase into LLM prompt. codecompanion.nvim: :rocket: Getting Started. See the comparison table for recorded GitHub metadata and shared categories.
- When should I choose code2prompt over codecompanion.nvim?
- For code2prompt, compare these recorded points with codecompanion.nvim: code2prompt is primarily Rust; codecompanion.nvim is Lua; License: code2prompt is MIT, codecompanion.nvim is Apache-2.0; code2prompt operates as a self-hosted CLI tool, allowing for local data processing that is important for users with confidentiality requirements or those who wish to avoid cloud dependency; Pricing: The code2prompt tool is available under MIT license free of monetary charge. However, premium support or advanced features might incur costs if provided by the development team in future updates.; Tags unique to code2prompt: ai, chatgpt, claude, cli; Unverified catalog guidance: When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.
- When should I choose codecompanion.nvim over code2prompt?
- For codecompanion.nvim, compare these recorded points with code2prompt: codecompanion.nvim is primarily Lua; code2prompt is Rust; License: codecompanion.nvim is Apache-2.0, code2prompt is MIT; Tags unique to codecompanion.nvim: agent-client-protocol, ai-coding, anthropic, claude-code; codecompanion.nvim has Docker configuration in its repository; Unverified catalog guidance: When you are a Neovim user seeking AI-driven code completion that integrates smoothly into your editor setup.
- When should I avoid code2prompt?
- Unverified catalog guidance: In situations requiring real-time interaction or analysis of codebases due to the static nature of its prompt generation process, as this might not cater to agile or evolving project requirements. Unverified catalog guidance: If you are in need of a tool beyond simple CLI operation and desire an integrated development environment (IDE) plugin for more interactive and continuous assistance.
- When should I avoid codecompanion.nvim?
- Unverified catalog guidance: Avoid if your coding involves non-Lua languages and you do not require or support the specific LLMs handled by this plugin. Unverified catalog guidance: This tool may not be suitable for developers who prefer code companion tools with broader language or LLM compatibility outside Neovim.
- Is code2prompt or codecompanion.nvim more popular on GitHub?
- code2prompt has more recorded GitHub stars (7,678 vs 6,862). Stars measure visibility, not whether either tool fits your constraints.
- Which licenses are recorded for code2prompt and codecompanion.nvim?
- code2prompt: MIT. codecompanion.nvim: Apache-2.0. Check each repository's current license and terms before use. Public GitHub hosting alone does not establish open-source licensing.
- Where can I find alternatives to code2prompt or codecompanion.nvim?
- GraphCanon lists candidates at code2prompt alternatives and codecompanion.nvim alternatives (code2prompt markdown twin, codecompanion.nvim markdown twin). The discovery order uses stored relationship proposals and shared categories; it is not a verified replacement ranking.
- Is there a machine-readable version of this comparison?
- Yes. The markdown twin at this comparison mirrors this page for agents and LLM crawlers, with the same stats table and FAQ answers.
- Which is better maintained, code2prompt or codecompanion.nvim?
- code2prompt: Very active. codecompanion.nvim: Very active. Compare maintenance labels, days since push, and release cadence in the trust section below - stars alone do not measure maintenance.
- Where are the full trust reports for code2prompt and codecompanion.nvim?
- GraphCanon publishes per-repo trust reports with dated maintenance, provenance, and scan summaries: code2prompt trust report; codecompanion.nvim trust report.