5

codecat

A lightning-fast CLI tool that bundles your entire codebase into a single, clean Markdown file. Perfect for feeding context to LLMs, streamlining code reviews, and creating portable project archives.

Why codecat?

When working on projects or collaborating with large language models like GPT‑4, it helps to present the entire codebase as one cohesive document. codecat is a Python-powered CLI tool that does exactly that—aggregating your files into a single, beautifully formatted Markdown snapshot—ideal for code reviews, AI ingestion, documentation, or archiving. It’s designed to be ultra‑fast, scalable, and easy to use.

What Makes It Shine

  • Blazing Speed: Multi‑threaded scanning, smart binary detection, and optimized handling of large projects ensure fast performance.
  • Rich CLI Experience: Powered by Typer and Rich, codecat offers colorful progress bars, code‑block syntax highlighting, and live statistics.
  • Flexible & Configurable: Supports glob patterns, .codecat_config.json, and command‑line overrides to include/exclude whatever you need.
  • Markdown-Ready Output: Automatically escapes code fences, collects all files into a single .md, and provides a clean snapshot—perfect for sharing or AI context.

Ideal For

  • AI Development: Package your entire repo into one document for LLM prompts.
  • Code Reviews: Share readable snapshots with your team.
  • Documentation Snapshots: Archive codebase versions easily.
  • Quick Analysis: Generate insight-rich stats and file breakdowns.

Get Started

codecat is a powerful addition for any developer who wants to quickly capture their full project structure with style and precision. If you're interested, check it out on GitHub and explore its README for detailed usage and advanced config.