mufeedvh/code2prompt
58.8
Adequate · 14 November 2026
9.7k
lines of production code
Rust
primary language
5
measurements over time
What this system is
Features
Added code2prompt skill for efficient codebase exploration
A new 'code2prompt' skill has been added to the skills directory, providing instructions for using the code2prompt CLI to explore codebases. The skill includes a template asset (code-map.hbs) for generating structured entity maps and guides users on installing the CLI, mapping unfamiliar areas, and reading selected context together to reduce agent round trips.
skills · high confidence
Added example projects for history notes, recipes, and Node.js apps
The website now includes three new example project structures in the assets library: history notes (covering medieval, renaissance, and WWII topics with revision goals), a recipe manager (with pantry ingredients and recipes for pasta, pizza, salad, and soup), and a basic Node.js application (processing JSON user data). Each example includes source files, prompts, and question definitions to demonstrate content organization and code processing capabilities.
website/src/assets/examples · high confidence
Initial Astro site structure with base and blog layouts
The website now uses Astro, introducing a BaseLayout that sets up the global HTML shell, metadata, favicon, sitemap link, and includes jQuery and Prism.js for syntax highlighting. A new BlogPostLayout provides a styled template for individual blog posts, displaying the title, date, author, and description while rendering post content with prose styling.
website/src/layouts · high confidence
Initial project scaffolding and documentation
This change establishes the initial structure of the code2prompt project. It introduces a default configuration file (.c2pconfig) with settings for output, file patterns, and user variables, alongside an AGENTS.md guide defining contributor rules and verification skills. The repository is populated with comprehensive documentation, including a main README.md (with English and Spanish versions) detailing installation via Cargo, Homebrew, and pip, as well as usage for the CLI, Python SDK, and MCP server. Additionally, an MCP server installation guide (llms-install.md) and an expanded .gitignore covering multiple operating systems and build artifacts are added.
(repo-wide) · high confidence
Initial website landing page with Astro components
The website now features a new landing page built with Astro, including a Header with a scroll indicator, a Footer, and several content sections (Section0 through Section4) that explain Code2Prompt's features, usage (CLI, SDK, MCP), and community links. The page uses Tailwind CSS for styling and includes dynamic example loading in Section0.
website/src/components · high confidence
Initial website public assets and syntax highlighting theme
The website now includes its core public assets, establishing the brand identity with a CNAME file for code2prompt.dev and a new SVG favicon. Additionally, syntax highlighting for code blocks is enabled via a new Prism.js CSS file, applying the 'atom-dark' theme to style code snippets with specific colors for keywords, comments, and strings.
website/public · high confidence
Intelligent file processing for CSV, TSV, JSONL, and Jupyter Notebooks
The file processor module now extracts structured schemas and samples instead of raw content for CSV, TSV, JSONL, and Jupyter Notebook files to optimize LLM token usage. CSV and TSV processors extract column headers and one sample row, while JSONL processors extract field names and one sample line. Jupyter Notebook processing is configurable, allowing users to set the maximum number of code cells to include, and to optionally include cell outputs and markdown cells. A default text processor handles other file types using encoding detection via chardetng.
_crates/code2prompt-core/src/file\processor · high confidence
Introduce entity-level code maps and configurable file processors
The core library now supports extracting structural entities (functions, classes, methods) from source files via the optional \entity-map\ feature, exposing them to templates as \FileEntry.entities\ and a top-level \code\_map\ for compact codebase outlines. Additionally, file-type processors (such as for Jupyter notebooks) are now configurable through \FileProcessorsConfig\, allowing users to customize how specific file types are handled during prompt generation.
crates/code2prompt-core/src · high confidence
Introduce native Python bindings for code2prompt
This change adds the \code2prompt-python\ crate, providing native Python bindings for the \code2prompt\_core\ Rust library. Users can now install the \code2prompt\_rs\ package via pip to interact with the core API using a session-based model (\Code2PromptSession\) that supports file selection, pattern matching, and prompt generation. The bindings expose configuration options such as output format, tokenization, and file processing, and are compatible with Python 3.11 and newer.
crates/code2prompt-python · high confidence
Introduce template editing UI with validation and variable management
The template widget area now provides a dedicated interface for managing templates, featuring a three-column layout that includes a template editor with syntax validation (highlighting errors and missing variables), a variable manager for viewing and editing system and user-defined variables, and a picker for selecting between default and custom templates. This change adds the \TemplateWidget\ and its sub-components (\TemplateEditorWidget\, \TemplateVariableWidget\, \TemplatePickerWidget\) to handle the full lifecycle of template creation and configuration within the application.
crates/code2prompt/src/widgets/template · high confidence
Introduces a reactive template editor with variable management and picker
The template editing workflow in the TUI has been restructured into a reactive, multi-panel interface. Users can now edit template content with real-time syntax validation (checking for balanced braces and valid Handlebars syntax), automatically detect template variables, and manage them via a dedicated variable panel that distinguishes between system, user-defined, and missing variables. A new template picker allows selection from built-in defaults or custom user files, with the editor state automatically syncing variables when templates change or are loaded.
crates/code2prompt/src/model/template · high confidence
New TUI widget components for file selection, output, settings, and statistics
The application now includes a dedicated widgets module providing a complete terminal user interface (TUI) using Ratatui. Users can navigate and select files via a tree view with search and filter patterns, view generated prompts with scrolling and copy/save options, adjust configuration settings through a grouped list interface, and analyze code statistics via overview, extension-based histograms, and token distribution maps. These components replace previous state management approaches by reading directly from the central Model, ensuring a consistent and interactive experience for code analysis tasks.
crates/code2prompt/src/widgets · high confidence
New statistics view with navigation and aggregation
The TUI now includes a dedicated Statistics tab that lets users cycle through three views—Overview, Token Map, and Extensions—using next/prev navigation. The Overview view shows selected and total file counts, while the Extensions view displays token distribution aggregated by file extension, sourced from the codebase analysis.
crates/code2prompt/src/model/statistics · high confidence
Python SDK exposes code analysis configuration and formatting options
The Python SDK now provides Python-native classes for configuring code analysis behavior, including \IpynbProcessorConfig\ to control Jupyter notebook processing (max code cells, output inclusion, markdown inclusion) and configuration for output formats (Markdown, JSON, XML), tokenizers, token formats, and file sorting methods.
crates/code2prompt-python/src · high confidence
Website assets updated with new SVGs and marquee styles
The website's public assets now include new SVG images for AI providers (Claude, Deepseek, Gemini, Groq, Mistral, Ollama, OpenAI, Qwen) and an architecture diagram, alongside new CSS for a scrolling marquee component and overlay images.
website/public/assets · high confidence
Website documentation and assets updated
The website now includes a new light-mode logo asset and a comprehensive set of documentation pages in English, German, Spanish, and French. These pages cover the Code2Prompt CLI usage, the interactive Terminal User Interface (TUI), and the \.c2pconfig\ file configuration, providing users with guides on how to automate prompt generation workflows and use the TUI's selection, settings, statistics, template, and output tabs. Also in this area: 1 commit (0 fixes) modifying website.
website/src/content/docs/ja, website/src/content/docs/ru, website/src/content/docs/zh · medium confidence · unverified
Behavioural changes
11 commits (0 fixes) modifying website/src/content/docs/docs/tutorials
A change to existing behaviour in website/src/content/docs/docs/tutorials — 11 commits, 5 files: “website brokenlink + ultimate installation guide”; “website update”; “docs: drop removed --include-priority from the filter tutorial”; and 8 more.
website/src/content/docs/docs/tutorials · medium confidence · unverified
12 commits (1 fix) modifying website/src/content/docs/de
A change to existing behaviour in website/src/content/docs/de — 12 commits (1 fix), 19 files: “automatic translation”; “fix images”; “docs: drop the removed \--exclude-from-tree\ flag from how-to examples”; and 9 more.
website/src/content/docs/de · medium confidence · unverified
12 commits (1 fix) modifying website/src/content/docs/es
A change to existing behaviour in website/src/content/docs/es — 12 commits (1 fix), 19 files: “automatic translation”; “fix images”; “docs: drop the removed \--exclude-from-tree\ flag from how-to examples”; and 8 more.
website/src/content/docs/es · medium confidence · unverified
12 commits (1 fix) modifying website/src/content/docs/fr
A change to existing behaviour in website/src/content/docs/fr — 12 commits (1 fix), 19 files: “automatic translation”; “docs: drop the removed \--exclude-from-tree\ flag from how-to examples”; “fix the path”; and 9 more.
website/src/content/docs/fr · medium confidence · unverified
12 commits (2 fixes) modifying website/src/content/docs/docs
A change to existing behaviour in website/src/content/docs/docs — 12 commits (2 fixs), 2 files: “revert to ok local state”; “astro doc init”; “without /”; and 9 more.
website/src/content/docs/docs · medium confidence · unverified
4 commits (0 fixes) modifying website/src/content/docs/blog
A change to existing behaviour in website/src/content/docs/blog — 4 commits, 1 file: “BLOG”; “ce qu'il ne faut pas faire en prod”; “blogpost retouche”; and 1 more.
website/src/content/docs/blog · medium confidence · unverified
6 commits (0 fixes) modifying website/src/content/docs/docs/explanations
A change to existing behaviour in website/src/content/docs/docs/explanations — 6 commits, 3 files: “update doc”; “glob pattern explanation update”; “website cleaned”; and 3 more.
website/src/content/docs/docs/explanations · medium confidence · unverified
8 commits (0 fixes) modifying website/src/content/docs/docs/how\_to
A change to existing behaviour in website/src/content/docs/docs/how\_to — 8 commits, 5 files: “docs: add homebrew installation”; “docs: drop the removed \--exclude-from-tree\ flag from how-to examples”; “website brokenlink + ultimate installation guide”; and 5 more.
_website/src/content/docs/docs/how\to · medium confidence · unverified
Centralized TUI display formatting logic
The view layer has been refactored to consolidate all formatting and display logic into a dedicated module, separating it from the model and widgets. This change introduces a new \formatters\ module that provides pure functions for generating display structures, such as organizing settings into groups (Output Format, Sorting & Organization, Tokenizer & Encoding, Git Integration, File Selection) and mapping configuration values to their UI representations. Users benefit from a cleaner separation of concerns, which improves maintainability and ensures that display logic is isolated from business logic.
crates/code2prompt/src/view · high confidence
Introduces Elm-style command system and refactors TUI state management
The application's terminal UI now uses a pure Model-View-Update architecture where side effects (like running analysis, copying to clipboard, saving files, or refreshing the file tree) are handled via a new \Cmd\ enum rather than direct mutations. This change introduces a centralized \Model\ struct and a comprehensive \Message\ enum to manage state transitions for tabs, file tree navigation, settings, and template editing. The file tree display has been refactored to use a hierarchical \DisplayFileNode\ structure that respects gitignore patterns and supports search mode, while settings are now managed through a typed \SettingKey\ enum that allows toggling options like line numbers, output format, and tokenizer type.
crates/code2prompt/src/model · high confidence
Introduces unified configuration layering and Linux clipboard persistence
The code2prompt CLI now supports loading settings from local (.c2pconfig) and global (\~/.config/code2prompt/.c2pconfig) TOML files, with command-line arguments overriding config file values to provide a consistent, layered configuration experience. On Linux, the tool now spawns a background clipboard daemon to ensure generated prompts remain in the system clipboard after the application exits, resolving previous issues where clipboard content was lost. Additionally, the TUI now allows users to start with all files deselected via the new --deselected flag, and the CLI provides a visual token map to display file token usage hierarchically.
crates/code2prompt/src · high confidence
Website migrated to Astro with Starlight documentation theme
The website has been rebuilt using Astro and the Starlight documentation theme, replacing the previous implementation. This change introduces a new static site generation workflow, enabling multi-language support for English, French, German, Spanish, Chinese, Japanese, and Russian. The new site includes a blog feature via the Starlight Blog plugin, mathematical rendering support, and a structured sidebar navigation for tutorials, explanations, and how-to guides. Configuration files for pnpm, TypeScript, and Astro have been added to support this new stack.
website · high confidence
Test coverage
Added comprehensive integration and unit tests for code2prompt; Added comprehensive test coverage for code2prompt-core; Initial test suite for Python bindings.
Dependencies
Initial dependency lockfiles and manifest definitions for code2prompt v4.3.0
This change introduces the initial dependency management files for the code2prompt project, establishing the v4.3.0 release baseline. It adds \Cargo.lock\ and \Cargo.toml\ files for the Rust workspace (including \code2prompt-core\, \code2prompt\, and \code2prompt-python\ crates) and \package.json\ and \pnpm-lock.yaml\ for the Astro-based website. These files define the specific versions of core dependencies such as \clap\, \ratatui\, \pyo3\, \astro\, and \tailwindcss\, ensuring reproducible builds for both the CLI tool and the documentation site.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 64 → 59 (-4.8)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.4) — scores are not directly comparable.
Lenses
- Code Health 62 → 62 (-0.6)
- Architecture 96 → 96 (+0.0)
- Maturity 68 → 68 (-0.1)
- Readiness 57 → 57 (-0.8)
- Security 69 → 52 (-16.9)
- Performance 100 → 100 (+0.0)
Resolved (9)
- Duplicated block (5 lines × 2) (crates/code2prompt/src/widgets/statistics_overview.rs)
- Duplicated block (8 lines × 2) (crates/code2prompt-core/src/git.rs)
- Duplicated block (8 lines × 2) (crates/code2prompt-core/src/git.rs)
- Duplicated block (9 lines × 2) (crates/code2prompt/src/config.rs)
- Edited copy of a member (25 corresponding lines) (crates/code2prompt-core/src/git.rs)
- Hotspot: crates/code2prompt/src/main.rs (crates/code2prompt/src/main.rs)
- Inverted test pyramid
- Medium vulnerability: [GHSA redacted] (Cargo.lock)
- No ADRs found
New (18)
- Duplicated block (5 lines × 7) (crates/code2prompt/src/widgets/file_selection.rs)
- Duplicated block (8 lines × 2) (crates/code2prompt-core/src/git.rs)
- Duplicated block (8 lines × 3) (crates/code2prompt-core/src/git.rs)
- Duplicated block (8 lines × 3) (crates/code2prompt/src/widgets/statistics_by_extension.rs)
- Edited copies of one member (3 members, 14+ corresponding lines) (crates/code2prompt-core/src/file_processor/csv.rs)
- Edited copy of a member (18 corresponding lines) (crates/code2prompt/src/model/mod.rs)
- Edited copy of a member (25 corresponding lines) (crates/code2prompt-core/src/git.rs)
- Edited copy of a member (28 corresponding lines) (crates/code2prompt-python/src/python.rs)
- Medium advisory (unsound): RUSTSEC-2026-0486 (Cargo.lock)
- Medium vulnerability: RUSTSEC-2026-0418 (Cargo.lock)
- Members sharing a duplicated core (4 members, 50+ identical tokens) (crates/code2prompt/src/widgets/file_selection.rs)
- No ADRs found (crates/code2prompt/Cargo.toml)
- Orphaned file (crates/code2prompt-core/src/entity_map.rs)
- Orphaned files with no living knowledge
- Outdated: globset
- Outdated: ignore
- Outdated: log
- Outdated: unicode-width
Changes since last survey
- 4 commits — 4 feature/other, 0 fixes
By area
- (repo) — 3 commits
- .github/workflows — 1 commit
Notable commits
- change: Merge pull request #343 from linbingquan/dev
- change: Merge pull request #346 from dcadolph/docs-include-priority
- change: Merge pull request #347 from mufeedvh/dependabot/github_actions/main/astral-sh/setup-uv-10.3.2
- change: build(deps): bump astral-sh/setup-uv from 9.0.0 to 10.3.2
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
mufeedvh/code2prompt was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 14 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit d762d9bbd0b837b8217329e12b36f1df9bfdbf5f — the exact code this score is about.
- Scored under rubric-2026.11.4 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.65+preprod-e1a3b69fc8ee.