Practical overview
When it fits
Use Codebase Digest when you want to collect and format local project context for later analysis, especially when controlling included paths, report depth, or output format matters.
Who it is for
- Developers who need a structured snapshot of a codebase before asking an LLM to analyze or explain it.
- Teams preparing project overviews or consolidated source context for code review, documentation work, or codebase learning.
Documented uses
- Map a project's directory structure and inspect file or code-size metrics.
- Estimate token counts before preparing source material for an LLM.
- Consolidate text files into one output for code understanding or review.
- Exclude selected files and directories, or choose a report format and traversal depth.
Requirements & limits
- It is a CLI rather than a hosted LLM chat interface; the output is used with a separate model workflow.
- Custom ignore patterns can be combined with defaults, or defaults can be disabled.
- The CLI can omit contents, set a maximum traversal depth, write to a named file, and copy output to the clipboard.
- The README states a default maximum text content size of 10,240 KB.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Create a Markdown snapshot of a project
Generate a depth-limited Markdown overview and consolidated project output.
Before you start
- Python command-line tool installed with pip install codebase-digest, or installed from a source checkout using its requirements file.
- A project directory to analyze.
Steps
Change to the project directory or provide its path as the cdigest argument.
Run cdigest /path/to/my_project -d 3 -o markdown to choose a maximum depth and Markdown output.
Expected outcome
Codebase Digest produces a Markdown-formatted project overview; its output can include text-file contents unless content is excluded.
Guide limitations
- The README documents a default maximum text content size of 10,240 KB.
- Codebase Digest prepares output for LLM analysis; the documented command does not run an LLM analysis.
Exclude selected paths from a codebase snapshot
Analyze a project while omitting specified files or folders.
Before you start
- Python command-line tool installed.
- A project directory and the file or folder patterns to omit.
Steps
Run cdigest /path/to/my_project with the --ignore option.
Add patterns as arguments, for example: --ignore "*.log" "temp_folder" "config.ini".
Expected outcome
The output excludes paths matching the supplied ignore patterns, alongside default ignore patterns unless defaults are disabled.
Guide limitations
- Patterns can use wildcards; the README also describes .cdigestignore for project-specific patterns.
- Use --no-default-ignores if the intention is to use only custom patterns.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 15 November 2026
- Original website title
- kamilstanuch/codebase-digest · Official homepage title · retained in its source language

