Comparison
code2prompt vs codecompanion.nvim
Verdict
Pick code2prompt when code2prompt is primarily Rust; codecompanion.nvim is Lua; pick codecompanion.nvim when codecompanion.nvim is primarily Lua; code2prompt is Rust.
Markdown twin · code2prompt alternatives · codecompanion.nvim alternatives
GraphCanon updated Aug 27, 2026
9views this month
Trust & integrity
| Signal | code2prompt | codecompanion.nvim |
|---|---|---|
| Maintenance | Steady (58d since push) As of Aug 27, 2026 · github_public_v1 | Very active (1d since push) As of Aug 13, 2026 · github_public_v1 |
| Provenance | Not a fork · Personal account As of Aug 27, 2026 · github_public_v1 | Not a fork · Personal account As of Aug 13, 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.6k
- codecompanion.nvim
- 6.8k
Forks
- code2prompt
- 437
- codecompanion.nvim
- 444
Open issues
- code2prompt
- 21
- codecompanion.nvim
- 14
Language
- code2prompt
- Rust
- codecompanion.nvim
- Lua
Adopt for
- code2prompt
- -
- codecompanion.nvim
- 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
- Jun 29, 2026
- codecompanion.nvim
- Aug 12, 2026
Categories
- code2prompt
- Developer Tools, LLM Frameworks
- codecompanion.nvim
- Developer Tools, LLM Frameworks
Trust and health
Maintenance
- code2prompt
- Steady (60%)
- codecompanion.nvim
- Very active (96%)
Days since push
- code2prompt
- 58d
- codecompanion.nvim
- 1d
Open issues (now)
- code2prompt
- 21
- codecompanion.nvim
- 14
Stars delta
- code2prompt
- +110 (30d)
- codecompanion.nvim
- Unknown
Open issues delta
- code2prompt
- +1 (30d)
- codecompanion.nvim
- Unknown
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.
- When you aim to structure and deliver your entire codebase into an LLM for comprehensive documentation or refactoring guidance.
When NOT to use code2prompt
- 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.
- 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 ships Docker support for self-hosted deployment.
- When you are a Neovim user seeking AI-driven code completion that integrates smoothly into your editor setup.
When NOT to use codecompanion.nvim
- Avoid if your coding involves non-Lua languages and you do not require or support the specific LLMs handled by this plugin.
- 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 Aug 27, 2026
- GitHub forks (mufeedvh/code2prompt) · observed Aug 27, 2026
- Last push (mufeedvh/code2prompt) · observed Jun 29, 2026
- License file (MIT) · observed Aug 27, 2026
- Decision facts (enrichment) · observed Jul 17, 2026
- Trust scan (lockfile / OSV) · observed Jul 11, 2026
- GitHub stars (olimorris/codecompanion.nvim) · observed Aug 13, 2026
- GitHub forks (olimorris/codecompanion.nvim) · observed Aug 13, 2026
- Last push (olimorris/codecompanion.nvim) · observed Aug 12, 2026
- License file (Apache-2.0) · observed Aug 13, 2026
- Decision facts (enrichment) · observed Jul 17, 2026
- Trust scan (lockfile / OSV) · observed Jul 15, 2026
GitHub stars on cards: code2prompt 7.6k · codecompanion.nvim 6.8k (synced Aug 27, 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 live GitHub stats and shared categories.
- When should I choose code2prompt over codecompanion.nvim?
- Choose code2prompt over codecompanion.nvim when 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; 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?
- Choose codecompanion.nvim over code2prompt when 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 ships Docker support for self-hosted deployment; When you are a Neovim user seeking AI-driven code completion that integrates smoothly into your editor setup.
- When should I avoid code2prompt?
- 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. 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?
- Avoid if your coding involves non-Lua languages and you do not require or support the specific LLMs handled by this plugin. 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 GitHub stars (7,619 vs 6,792). Stars measure visibility, not whether either tool fits your constraints.
- Are code2prompt and codecompanion.nvim open source?
- Yes - both are open-source projects on GitHub (code2prompt: MIT, codecompanion.nvim: Apache-2.0).
- Where can I find alternatives to code2prompt or codecompanion.nvim?
- GraphCanon lists graph-backed alternatives at code2prompt alternatives and codecompanion.nvim alternatives (code2prompt markdown twin, codecompanion.nvim markdown twin), ranked by typed relationship edges rather than popularity votes.
- 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: Steady. 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.