DirDigest is a developer tool that generates structured digests of your codebase, optimized for AI tools like ChatGPT, Claude, and GitHub Copilot. Instead of copy-pasting files one by one, DirDigest creates a single, well-organized document that gives AI assistants full context of your project.
Why Do You Need a Codebase Digest?
When working with AI coding assistants, context is everything. Without seeing your full codebase, AI tools give generic answers that don't fit your project. DirDigest solves this by:
Combining all files into a single structured document with clear separators
Adding a file tree so the AI understands your project structure
Counting tokens so you stay within AI context limits
Filtering noise — auto-excludes node_modules, .git, __pycache__, and other clutter
How to Use This Free Online Tool
Simply drag and drop your project folder onto the page, or paste your code files using --- filename --- as a separator. Choose your output format (Markdown, XML, Plain Text, or JSON), set your token limit, and click "Generate Digest." Copy the result and paste it into ChatGPT, Claude, or any AI tool.
Supported Output Formats
Markdown — Best for ChatGPT and Claude. Includes syntax highlighting hints and file headers.
XML — Structured format preferred by some AI frameworks and APIs.
Plain Text — Maximum compatibility, smallest size.
JSON — Programmatic access, great for building custom AI pipelines.
DirDigest Free vs Pro
This free online tool handles small-to-medium projects perfectly. For larger codebases and advanced features, check out DirDigest Pro CLI:
Process entire directories with a single command: dirdigest ./src
Smart file splitting when digests exceed token limits
Real-time token counting with GPT-4 and Claude cost estimates
Respects your .gitignore automatically
Shell integration with convenient aliases
CI/CD pipeline support for automated context generation